webservice-client

web service proxy setting

梦想与她 提交于 2020-01-01 03:23:27
问题 In c# 4.0, I have a web service called ManufacturerContactDetails. I am calling that web service from a windows app using the following: var ws = new ManufacturerContactDetailsWebServiceSoapClient(); ContactDetails cd = ws.GetContactDetails("Google"); However, I would like to set the web proxy server that the soap client uses. I've had a look for a ws.Proxy property but it doesn't exist. I don't want to use the one from internet explorer. How do I set the web proxy server to use? 回答1: Create

How to pass a DateTime value to a WebMethod (ASMX)

丶灬走出姿态 提交于 2019-12-30 04:23:53
问题 I have a WebMethod with a parameter defined as DateTime. When I call that webservice, I get this error: at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializePrimitiveObject() at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeDictionary(Int32 depth) at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) at

JAX WS client cannot authenticate

只愿长相守 提交于 2019-12-30 03:09:11
问题 I'm trying to consume a secure (HTTPS schema) web-service with help of standard JAVA 7 JAX WS tools. This web-service requires authentication. I have already successfully added certificate to my local java keystore. All needed classes I've generated from WSDL file with help of wsimport tool. Now I am trying to use the following call to run a simple test: public class ReportingWebServiceTest { static ReportingServiceService service; static ReportingService port; @BeforeClass public static void

How to use the webservice-client classes generated with Eclipse?

元气小坏坏 提交于 2019-12-30 02:01:28
问题 I used eclipse Helios to create a Web Service Client for consuming an axis 1.4 web service. It generated 2 packages: 1 - datamodel. 2 - client. Inside client package there are 5 classes: 1- ServiceName 2- ServiceNameProxy 3- ServiceNameService 4- ServiceNameServiceLocator 5- ServiceNameSoapBindingStub I need to Know what are these ? AND How to call the web service methods with parameters? Thanks in advance 回答1: I am very new to Web Services and I can't give a good explanation of what those

Logging request/response with Apache CXF as XML

时光怂恿深爱的人放手 提交于 2019-12-28 05:14:23
问题 Is it possible to log the request/response as XML using CXF, ideally to a separate file so I can monitor what an application is doing? 回答1: Add the following to your endpoints and clients: <jaxws:features> <bean class="org.apache.cxf.feature.LoggingFeature" /> </jaxws:features> This will log everything to the server log. If you want to log them elsewhere, then look at the source code of the built-in CXF LoggingInInterceptor and LoggingOutInterceptor. You can follow the pattern they use to

ASMX consume as WCF service and additional argumnet of method is HEADER, what should pass for HEADER

那年仲夏 提交于 2019-12-25 02:41:14
问题 I had consumed ASMX service in vs 2008. and at that time, calling method is look as below: PostTravelData(TravelTransaction) //NOTE: property - "TOKENID" was set before calling to this method. Now, I have used same ASMX service into VS2012 and added as service reference so, it consumed as WCF service. NOw, in method signature has one additional argumnet called - "HEADER". so signature looks as below: PostTravelData(Header,TravelTransaction OUT TravelTransactionResponse) Please suggest me what

Error WSE012 (Action Missing) when consuming WSE webservice

谁说我不能喝 提交于 2019-12-25 02:19:19
问题 For a small project I need to use (consume) an external (secure) webservice. This webservice uses SOAP1.2 protocol with WSE extention (username + password) I use VB (VS2008) and added the Service Reference, customized the app.config to use wsHttpBinding rather than basicHttpBinding One of the public Functions of the webservice is called searchByName(String, String)As System.Xml.XmlElement In code I first initialize the security; wsTST.ClientCredentials.UserName.UserName = "mycompanyname"

Creating webservice and client with JBossWS using Complex objects as arguments and return types

喜欢而已 提交于 2019-12-24 20:27:12
问题 I am developing a WebService and Client for it using JBoss 5.1.0GA. The JBossWs stack was already preinstalled with the binary that I downloaded and as I understand it is JBossWs 3.1.2GA I have developed a web service using this setup and have also created a client successfully. This is what I have. A pojo web service deployed as a war file. @WebService public class Service{ @WebMethod public CompleObj getConfiguration() { CompleObj oConf = new CompleObj (); for (int i = 0; i < 10; i++) {

Null Pointer Exception in WSDServiceFactory - Apache CXF libs

不问归期 提交于 2019-12-24 17:53:05
问题 I have an problem with my code. The WSDL file was parsed by wsdl2java from apache cxf. Now I'm trying to get connection with web service but still I'm getting null pointer exception. Exception in thread "main" java.lang.NullPointerException at org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:92) at org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:203) at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:147) at org.apache.cxf.jaxws.spi

Intercepting and forwarding client certificate to webservice

旧城冷巷雨未停 提交于 2019-12-24 11:54:06
问题 I have a web application (gwt) that is running on a tomcat application server. This web application consumes several web services (login, application data transfer, queries, etc.). The web service client on the tomcat is implemented as apache axis2 web service client. For user log on I provide a form in the web application with username and password. This data are transmitted via web service to authenticate the user. It is planned to change the hole authentication mechanism to client