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
23
votes
6 answers

NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces

Trying to retrieve the SOAP body from a SOAP response, but getting this error: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces. Document doc =…
Java Guy
  • 3,391
  • 14
  • 49
  • 55
23
votes
2 answers

Add a GET parameter to a POST request with RestSharp

I want to make a POST request to a URL like this: http://localhost/resource?auth_token=1234 And I want to send JSON in the body. My code looks something like this: var client = new RestClient("http://localhost"); var request = new…
leninyee
  • 346
  • 1
  • 2
  • 7
22
votes
2 answers

How to merge common parts of WSDL and XSD from different services?

I have to interact with a set of web-services that each come with their own WSDL and XSD. The XSD are sometimes merged in a single file sometimes spread along multiple files (20-30). However, from experience I know that most of the message…
Newtopian
  • 7,543
  • 4
  • 48
  • 71
21
votes
5 answers

Add SOAP header object using pure JAX-WS

I'm trying to implement simple web service client for PayPal Express Checkout API using JAX WS. PayPal Express Checkout API provides WSDL file, from which I was able to generate Java classes using CXF's wsdl2java utility. From authentication…
Yuriy Nakonechnyy
  • 3,742
  • 4
  • 29
  • 41
20
votes
4 answers

SOAPFaultException "MustUnderstand headers (oasis-200401-wss-wssecurity-secext-1.0.xsd) are not understood"

I try to get information from web service that uses PasswordText WSS type. Firstly, I test it using soapUI and successfully got data. Then I implemented authentication on Java, writing SecurityHandler: public final class SecurityHandler implements…
Marboni
  • 2,399
  • 3
  • 25
  • 42
20
votes
4 answers

How to add header to SOAP request?

I try to invoke HTTPS SOAP web service through java code: URL url = new URL("https://somehost:8181/services/"SomeService?wsdl"); QName qname = new QName("http://services.somehost.com/", "SomeService"); Service service =…
kostepanych
  • 2,229
  • 9
  • 32
  • 47
19
votes
4 answers

Apache CXF client loads fine in Eclipse but standalone jar throws NullpointerException in WSDLServiceFactory

My goal is to create a Web Service client that runs in a standalone jar with all the dependencies using mvn assembly:single I generated the client using CXF codegen wsdl2java, creating a @WebServiceClient called NetBanxAutostatementService For the…
André Ricardo
  • 3,051
  • 7
  • 23
  • 32
18
votes
2 answers

Using a C# Service Reference SOAP Client with different Endpoint URIs

I have a SOAP Webservice that is available on multiple servers, thus having multiple endpoints. I want to avoid adding multiple Service References (C# SOAP Port Clients) with different names just to talk to this services, since the API is exactly…
beberlei
  • 4,297
  • 1
  • 23
  • 25
17
votes
2 answers

Changing the default XML namespace prefix generated with JAXWS

I am using JAXWS to generate a WebService client for a Java Application we're building. When JAXWS build its XMLs to use in SOAP protocol, it generates the following namespace prefix:
Pablo Santa Cruz
  • 176,835
  • 32
  • 241
  • 292
16
votes
0 answers

SOAP port uses a non-standard SOAP 1.2 binding

I am using the jaxws maven plugin to generate webservices access classes. During the generation the following warning is printed: [WARNING] SOAP port "MyServicePort" uses a non-standard SOAP 1.2 binding. line XXX of http://...?wsdl By adding an…
Lonzak
  • 9,334
  • 5
  • 57
  • 88
15
votes
1 answer

How to use T4 to generate two files at the same time from one template?

I am having a case in which I need to generate two CSharp code files with pretty the same code but different namespace of the input and output types of the methods. In fact each file is for a specific country and the types come from country specific…
Rez.Net
  • 1,354
  • 2
  • 19
  • 28
14
votes
3 answers

Generic WebService (SOAP) client library for C++

I'm looking for a simple C++ WebService Client Library that can be easily linked into my application. Preferably this library: can be used to access any SOAP WebService (so I can pass the URL, the WebService name, the WebService method and all the…
Patrick
  • 23,217
  • 12
  • 67
  • 130
14
votes
5 answers

JAXBException: not a valid property on class

We have an application which needs to consume an external web service. To do this we have generated the set of Java artifacts from the WSDL via Maven using the wsdl2java goal provided by the cxf-codegen-plugin plugin. In the application we want to…
chrishern
  • 302
  • 2
  • 6
  • 15
14
votes
3 answers

How do I create a web/wcf service client in C++?

I'm using NSIS to build an installer and as part of that installer I get the details for a WCF Service (i.e. Url, User Name and Password). I need to validate these details. In C# I create a Service Reference and simply do the following: var proxy =…
ChrisF
  • 134,786
  • 31
  • 255
  • 325
12
votes
1 answer

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

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-…
Abu Muhammad
  • 1,185
  • 5
  • 20
  • 29
1
2
3
75 76