soap-client

Problem using WSDL service from Python, it is my client code or the server?

I'm trying to write a Python client for a a WSDL service. I'm using the Suds library to handle the soap messages. When I try to call the service, I get a suds exception: <rval /> not mapped to message part. If I set the retxml suds option I get XML which looks OK to me. Is the problem with the client code? Am I missing some flag which w...

Modifying PHP / SOAP code to add HTTP Header in all requests

I;ve inherited some php SOAP code and due to changes in the service we are using, I need to modify to "add an authorization in the HTTP headers of all requests". I'm not sure what to do and if its even possible. Part of the relevant code looks like this: function soap_connect() { $soap_options = array( ...

getting Uncaught SoapFault exception when using soap client

Hello, PHP Version: 5.3.3 I'm using the SOAP extension to pull data from a web api. Below you can see my connection details. When it gets to line 3 I get an error: Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://www.global1.autotask.net/atservices/1.2/atws.wsdl' : failed to load ...

Does jmeter timeout SOAP requests

While sending WebService(SOAP) requests, I occasionally receive the response below, and always for requests that take more then 60 seconds to complete. Thread Name: Test Group A 1-1 Sample Start: 2010-08-24 11:56:23 MDT Load time: 60186 Latency: 0 Size in bytes: 0 Sample Count: 1 Error Count: 1 Response code: 000 ...

SoapClient: how to pass multiple elements with same name?

Hello! I have following code: $telnums = array(10, 20, 30); $obj = new StdClass(); $obj->telnums = new StdClass(); foreach ($telnums as $telnum) { $obj->telnums = $telnum; } call_user_func(array($this->client, 'createDomain'), new SoapVar($obj, SOAP_ENC_OBJECT)); There $this->client is an instance of SoapClient class. And it ge...

SOAP Error When Using GeoCoder

I have a webpage that uses Google Maps API to show a location of a business. It was previously working fine, but recently I noticed that the page now has a SOAP error: Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://geocoder.us/dist/eg/clients/GeoCoderPHP.wsdl' : failed ...

How do you make Node.js talk to a SOAP service?

I can't seem to find any examples on this. I see a listing on github for Node that says "Newspaper Club – Uses node.js for wrapping a nasty SOAP interface to InDesign Server.", but I don't see any code. Thank you. EDIT: I'm guessing that I could just find any javascript/SOAP kit and port it to Node. Any suggestions on a good one? ...

How to load test a SOAP interface (are SOAP function calls atomic)?

A server offers a SOAP function call interface. Hundreds, perhaps a few thousand, of PCs call that function. I need to load test this using a single PC. At the moment I just have a for loop. Is that good enough? If not how can I make the test more realistic? I had thought of threading, but if the SOAP function call is atomic then that ...

PHP SoapClient unable to work with https WS

hello, i have a problem working with PHP SoapClient with a WS (WSDL) that contains https. my PHP version is 5.2.5. before you ask, yes, i am using PHP's Soap and openSSL extentions. the URL i am trying to reach is: https://id3check.gb.co.uk/gbportalinternational/aspx/id3check_1b.asmx?WSDL the code i am using: $url = "https://id3check....

PHP SOAP tutorial?

I need to write a SOAP client using PHP 5.3. The WSDL for the service is reasonably complicated. I can't find a PHP SOAP tutorial anywhere that walks through how to do this - I haven't found any that use the 5.3 SoapClient and explain how to construct SoapVars and SoapParams for complex data types. Is this the best library to use? I'm ...

Bind SoapClient request to a specific IP

Hi, I need to implement a webservice where the SoapServer requires me to send data using a specific IP at the SoapClient machine which have a bunch of different IPs. Problem is, how to force PHP to send that request using this specific IP? PHP documentation on SOAP is really poor. Thanks. With halfdan's answer i was able to fix the...

SOAP request namespaces .NET

When my client makes a request via web service, the generated SOAP message looks like this: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org /2001/XMLSchema"><soap:Body><myMethod xmlns="htt...

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 to properly map those entities to PHP classes using the SoapClient() "classmaps" option....

PHP webservice SOAPClient error

Hello, I have a webserivce and just doing simple thing to call webservice in SOAP Client i.e. $client = new SoapClient("http://test.unistream.com/wcflib/service.svc?WSDL"); It says SOAP-ERROR: Parsing WSDL: 'IWebService_GetCountries_InputMessage' already defined web service is http://test.unistream.com/wcflib/service.svc?WSDL ...

How to cache php soapclient responses ?

I know that you can cache the WSDL but is there a way to cache the soap responses through configuration of the php soapclient? Obviously, we could "cache" ourselves by constructing some tables in a database and running a cron. This will take much more effort and I am wondering if there is a way to specify caching abilities of the exp...

Visual Studio 2010 SOAP service reference returns only null values

A client generated using Visual Studio 2010's 'Add Service Reference' tool returns a null value for calls to any remote function. The server is a Perl CGI script (SOAP::Transport::HTTP::CGI) that I know is functioning correctly through testing with other clients. I used POD::WSDL to generate the WSDL file that the 'Add Service Reference'...

Can PHP5 SOAP generate multiple namespaces?

I'm trying to send a PHP SOAP request that requires the following format: <?xml version="1.0"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:S...

Help SOAP PHP Error VersionMismatch

Hello I have the following code : $enllaç = "http://preproduccio.www14.gencat.cat/jov_titus/AppJava/services/EscolesWebService?wsdl"; $aOptions = array( 'location' => $enllaç, 'uri' => 'http://tempuri.org/', 'soap_version' => SOAP_1_2 ); try { $client = new SoapClient($enllaç, $aOptions); $param = array('LoginInfo' =...

consume a php soap service from C#

Hi I have made a simple web service wsdl: <wsdl:definitions name='mysum' > <wsdl:types> <xsd:schema xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.my-uni-project.info/joomla/components/com_jv_vm_soa/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="mysu...

Why is PHP's SoapClient creating a different namespace for the header than the body?

I'm trying to communicate with the eWay server and had everything working until we ended up needing to switch to a different API. The problem is that SoapClient is creating a different namespace for the header (that includes the authentication) then from the body, which, obviously, doesn't get me any results. Instead, I get eWay's server...