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
14
votes
1 answer

PHP SoapClient not handling abstract and substitutionGroup attributes in WSDL

I'm sending a call to Canada Post using their supplied wsdl which contains a section like this:
14
votes
5 answers

PHP SoapClient: SoapFault exception Could not connect to host

using this code I make soap requests $client = new SoapClient('http://example.com/soap/wsdl'); try { $result = $client->myMethod(); } catch (Exception $e) { echo $e->getMessage(); } Sometimes (once out of ten), an exception is…
Simone Nigro
  • 4,717
  • 2
  • 37
  • 72
14
votes
5 answers

Checking a URL is valid (from php soap client)

I am writing a web app which will allow the user to specify a URL for a SoapClient. I wanted to validate that php can connect to the client when the user submits a form. I thouhgt I could do this via try catch or set_error_handler (or some…
Jeremy French
  • 11,707
  • 6
  • 46
  • 71
13
votes
5 answers

SoapClient set custom HTTP Header

I am doing some work writing a PHP-based SOAP client application that uses the SOAP libraries native to PHP5. I need to send a an HTTP cookie and an additional HTTP header as part of the request. The cookie part is no problem: Code: $client = new…
user308891
  • 131
  • 1
  • 1
  • 3
13
votes
2 answers

WS-Trust not authenticating with PHP

It's doing my head in.... What am i missing here... must be something with the timestamp, because when i play with those i get different errors... I've got the following envelope (which is how the provider gave it to me to use) But it keepis giving…
renevdkooi
  • 1,515
  • 1
  • 17
  • 42
12
votes
3 answers

PHP Soapclient in Laravel 5

I want to use php's built in SoapClient class in laravel 5 I tried using it directly is shows error saying Class 'App\Http\Controllers\SoapClient' not found. I tried adding SoapClient in aliases array in config/app.php like this 'SoapClient' =>…
Akshay Khale
  • 8,151
  • 8
  • 50
  • 58
12
votes
1 answer

how to ignore self signed certificate error node.js soap.js

I have created a soap client in node.js using soap.js.Soap communication is done over https. When I try to connect I keep getting this error { [Error: self signed certificate] code: 'DEPTH_ZERO_SELF_SIGNED_CERT' } Below is my code var url =…
Sarfaraz Khan
  • 2,166
  • 2
  • 14
  • 29
12
votes
1 answer

How to swap SOAP calls to cURL, to work within allow_url_fopen limitation?

I've recently had a problem where the SOAP calls to the ID3Global/address service suddenly stopped working(they previously worked fine). I believe it has something to do with the hosting provider turning off allow_url_fopen on our server which now…
daniel blythe
  • 946
  • 2
  • 16
  • 44
12
votes
4 answers

Are there any lightweight alternatives to gSOAP?

I've tried using gSOAP for accessing a web service (e.g. using supplied WSDL to generate C stubs and then using them in an app). However, I've found that the generated .c and object files is quite big (several megabytes), which is a problem in…
che
  • 12,097
  • 7
  • 42
  • 71
12
votes
6 answers

How to generate a PHP soap client code?

Is there a way to generate a PHP Soap Client from a WSDL file? I mean something like wsdl.exe or svcutil.exe in .net, that generates code for a class that can be the client of a service, not something like: $WSDL = new SOAP_WSDL($wsdl_url);…
Meidan Alon
  • 3,074
  • 7
  • 45
  • 63
12
votes
1 answer

soap:Envelope SOAP-ENV:Envelope PHP

I'm trying to login to an API using built-in soap functions of PHP. I got a result like this. [LoginResult]=> false, [ErrorMsg] => Login failed with the reason : The security object is invalid This is what required by the API provider.
Midhun KM
  • 1,647
  • 1
  • 21
  • 31
11
votes
2 answers

SOAP WS-Addressing property with Wss4jSecurityInterceptor with Java

Hi I create code for consume SOAP service, For Authentication Header I used Wss4jSecurityInterceptor for set Header information. I am getting fail response like below Exception in thread "main"…
Piyush Ghediya
  • 1,754
  • 1
  • 14
  • 17
11
votes
1 answer

What is the difference between SoapVar and SoapParam?

In PHP, we have SoapVar and SoapParam classes. I've been confused long enough, since there is no decent documentation of them on php.net. Today I was surprised to find out that those lines will produce the exact same result in the XML…
Robo Robok
  • 21,132
  • 17
  • 68
  • 126
11
votes
3 answers

PHP SOAP Transferring Files

I am trying to learn how to transfer files (.zip files) between a client and server using PHP and SOAP. Currently I have a set up that looks something like this: require('libraries/nusoap/nusoap.php'); $server = new…
user293313
  • 227
  • 1
  • 2
  • 10
11
votes
3 answers

UPS Test Tracking Numbers (is there a such thing?)

I finally got the UPS tracking API to work. Or atleast I think I do. It is giving me a 'invalid tracking number' response. My problem right now is I have no packages to track. Does anyone know of any resources that allow me to test fake orders from…
numerical25
  • 10,524
  • 36
  • 130
  • 209