Questions tagged [webservice-client]

An application which calls on and consumes the response of a web service.

An application which calls on and consumes the response of a web service.

1128 questions
246
votes
25 answers

WebService Client Generation Error with JDK8

I need to consume a web service in my project. I use NetBeans so I right-clicked on my project and tried to add a new "Web Service Client". Last time I checked, this was the way to create a web service client. But it resulted in an AssertionError,…
a.b
  • 9,414
  • 5
  • 26
  • 22
189
votes
8 answers

Client to send SOAP request and receive response

Trying to create a C# client (will be developed as a Windows service) that sends SOAP requests to a web service (and gets the results). From this question I saw this code: protected virtual WebRequest CreateRequest(ISoapMessage soapMessage) { …
Data-Base
  • 8,418
  • 36
  • 74
  • 98
102
votes
21 answers

javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake during web service communicaiton

I am getting javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake exception when I try to do HTTPS Post of a web service through internet. But same code works for other internet hosted web services. I tried many…
user3216923
  • 1,021
  • 2
  • 8
  • 4
83
votes
4 answers

Java Webservice Client (Best way)

I have a third party WSDL, I need to write code in Java for a web service client to invoke the operations in the third party WSDL. Right now, I have generated the client stub using the WSDL2JAVA tool from Axis and used the XMLbeans for data binding.…
Java Guy
  • 3,391
  • 14
  • 49
  • 55
50
votes
4 answers

JAXWS — how to change the endpoint address

How can I dynamically change the address which my JAXWS client is using? This client was generated by wsimport.
Kico Lobo
  • 4,374
  • 4
  • 35
  • 48
45
votes
5 answers

Content is not allowed in Prolog SAXParserException

I am trying to call a web service but facing a strange behavior. we have a web-service running on my server but the code is not open to us so can not see what going on behind the wall The owner of the service have exposed web based test client UI…
Umesh Awasthi
  • 23,407
  • 37
  • 132
  • 204
43
votes
7 answers

Error consuming webservice, content type "application/xop+xml" does not match expected type "text/xml"

I'm having a weird issue when consuming a webservice for a product that my company has bought. The product is called Campaign Commander and it's made by a company called Email Vision. We're trying to use the "Data Mass Update SOAP API". Whenever I…
Doctor Jones
  • 21,196
  • 13
  • 77
  • 99
42
votes
5 answers

HttpDelete with body

I'm attempting to use an HttpDelete object to invoke a web service's delete method. The web service's code parses JSON from the message's body. However, I'm failing to understand how to add a body to an HttpDelete object. Is there a way to do…
Andrew
  • 20,756
  • 32
  • 99
  • 177
34
votes
4 answers

Is this JAX-WS client call thread safe?

Since initialization of the WS client service and port takes ages I like to initialize them once at startup and reuse the same instance of the port. Initalization would look something like this: private static RequestContext requestContext =…
user871611
  • 3,307
  • 7
  • 51
  • 73
31
votes
2 answers

Do you know of any free SOAP webservices (for tutorial purpose)

Only for tutorial purpose, I would like to try to use a free SOAP web services available. Which ones come to your mind ? The business implied behind is not important/relevant: Only the ease of access (free access), and simplicity of the service…
Stephane Rolland
  • 38,876
  • 35
  • 121
  • 169
31
votes
9 answers

Why does a SOAP message have to be sent over HTTP?

Below is a demo SOAP request message: HTTP/1.1 200 OK Content-Type: text/xml; charset="utf-8" Content-Length: nnnn
smwikipedia
  • 61,609
  • 92
  • 309
  • 482
29
votes
5 answers

Getting java.lang.ClassNotFoundException: com.sun.xml.internal.ws.spi.ProviderImpl despite the dependencies are defined

Despite that I have defined the related dependencies as I have added below, getting the java.lang.ClassNotFoundException: com.sun.xml.internal.ws.spi.ProviderImpl exception when my app makes a call to the web service.
talha06
  • 6,206
  • 21
  • 92
  • 147
27
votes
3 answers

Post data and retrieve the response using PHP Curl?

I'm very new to working with web services, and so I'm finding this pretty confusing. If I have a URL I'm trying to post some JSON data to, I understand how to do this using the CURL PHP method. What I'm wondering is, if I do this, and the URL has…
Elliot
  • 13,580
  • 29
  • 82
  • 118
27
votes
4 answers

Web service client given WSDL

I am trying to create a web service client in Java. I am not aware of how to do it. This is a URL for WSDL: https://testservices.gatewayedi.com/PayerList/payerlist.asmx?wsdl This is the WSDL:
user506518
  • 271
  • 2
  • 4
  • 4
26
votes
6 answers

Logging request/response with Apache CXF as XML

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?
irishguy
  • 671
  • 1
  • 9
  • 24
1
2 3
75 76