Questions tagged [soap-client]

An application that calls upon a SOAP server.

A SOAP client is any application that calls upon a server.

Example SOAP Clients

2272 questions
21
votes
3 answers

Spring-WS client not setting SOAPAction header

I'm sending a SOAP request and the server is complaining that the SOAPAction header is empty. I think I'm setting it right, but obviously I'm not. Wireshark shows it's not set. @Test public void testLogin() throws Exception { StringBuffer…
Steve L
  • 783
  • 3
  • 8
  • 15
20
votes
5 answers

How to add HTTP Header to SOAP Client

Can someone answer me if it is possible to add HTTP header to soap client web-service calls. After surfing Internet the only thin I found was how to add SOAP header. The code looks like this: var client =new…
kappie
  • 201
  • 1
  • 2
  • 4
19
votes
1 answer

How to optimize WCF CreateFactory in System.ServiceModel.ChannelFactory?

My current implementation is utilizing the ClientBase class to create a channel for WCF calls made to a third party API. This third party API requires a X509Certificate2 certificate as well as ClientCredentials to be authenticated. public class…
Andreas Savva
  • 201
  • 1
  • 3
19
votes
4 answers

WSP0075: Policy assertion "TransportBinding" was evaluated as "UNKNOWN". Why?

I am a client to a SOAP service I do not control (implemented in .NET). The service provides a WSDL. I use Apache CXF to generate the java client from the WSDL (specifically, I am using the cxf-codegen-plugin for Maven, which uses wsdl2java under…
Francis Avila
  • 31,233
  • 6
  • 58
  • 96
19
votes
1 answer

What is the difference between SoapServer features option

I am reading the documentation for php class SoapServer but found nothing about description of options which will be passed in SoapServer constructor: There is also a features option which can be set to SOAP_WAIT_ONE_WAY_CALLS,…
itnelo
  • 1,053
  • 2
  • 18
  • 29
18
votes
7 answers

How to pass an array into a PHP SoapClient call

Using PHP and SoapClient. I need to pass the following XML into a soap request - i.e. multiple 's within . 2011-01-01
Colin
  • 784
  • 2
  • 8
  • 21
17
votes
6 answers

How to send multiple asynchronous requests to different web services?

I need to send multiple requests to many different web services and receive the results. The problem is that, if I send the requests one by one it takes so long as I need to send and process all individually. I am wondering how I can send all the…
J888
  • 1,944
  • 8
  • 42
  • 76
17
votes
1 answer

Where to download and how to install JAX-WS wsimport tools?

Can somebody tell me where to download and how to install JAX-WS wsimport tools? I need to download it and install it. Actually I want to consume SOAP webservices in my code, and I need JAX-WS wsimport tool for that. My google search has not helped…
user2882662
  • 535
  • 1
  • 6
  • 18
16
votes
3 answers

Constructor not being called from SOAP response object

I'm communicating with a SOAP API using PHP's SOAPClient class. One of the options there lets you remap the types specified in the WSDL file with your own classes: The classmap option can be used to map some WSDL types to PHP classes. This option…
gen_Eric
  • 223,194
  • 41
  • 299
  • 337
15
votes
5 answers

How can I get all amazon category products?

How can I get all amazon products from an existing category? With the API, I can browse 10 pages and get for each page 10 products. The category has 502348 products, and I would like to get them all. Here is my code: Amazon Product Advertising API…
Yan
  • 1,424
  • 4
  • 21
  • 44
15
votes
3 answers

"Object reference not set to an instance of an object" error connecting to SOAP server from PHP

I'm making my first attempt to connect to a SOAP server from PHP, and I'm not understanding how to log in and get the data I need. The service I'm trying to connect to is the Hawley USA service http://hawleyusa.com/thcServices/StoreServices.asmx). …
wonder95
  • 3,825
  • 8
  • 45
  • 74
15
votes
1 answer

Calling SOAP with Golang

I am new to golang and trying make a soap call with gowsdl . I have generated the wsdl code and installed it as a package. I am however struggling to understand the syntax for call the method from it. When I examine the package, this is what I…
0xsegfault
  • 2,899
  • 6
  • 28
  • 58
15
votes
4 answers

custom soapfault resolver triggering but not finding SoapFault in SoapBody

My Spring Web Service Client has this custom resolver to catch SoapFaults: public class MySoapFaultResolver extends SoapFaultMessageResolver implements FaultMessageResolver { private static Logger logger = Logger.getLogger(…
user1201168
  • 415
  • 6
  • 19
14
votes
1 answer

Using Magento API to get Products

I'm using the Magento API to get product data for products from a certain category from another domain. I have made the API call etc... The code I'm currently using to get the product data looks like this: $productList = $client->call($session,…
Adam Moss
  • 5,582
  • 13
  • 46
  • 64
14
votes
1 answer

Using PHP SoapClient classmap option with WSDL containing an element and complexType with the same name

I've encountered a few different WSDL files that contain an element and a complexType with the same name. For example, http://soap.search.msn.com/webservices.asmx?wsdl has two entities named "SearchResponse": In this scenario, I can't figure out how…
stereoscott
  • 13,309
  • 4
  • 33
  • 34