Questions tagged [soapserver]
154 questions
20
votes
4 answers
Producing SOAP webservices with spring-ws with Soap v1.2 instead of the default v1.1
I am currently working on Spring soap server project. I started off with the Getting Started guide from Spring here http://spring.io/guides/gs/producing-web-service/ to build a basic SOAP service.
The default SOAP protocol is SOAP v1.1. Is there a…

Dexter
- 1,621
- 3
- 18
- 38
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
10
votes
2 answers
Zend Framework 2 SOAP AutoDiscover and complex types
I'm preparing the SOAP server and generating my WSDL using the follow code:
//(... Controller action code ...)
if (key_exists('wsdl', $params)) {
$autodiscover = new AutoDiscover();
$autodiscover->setClass('WebServiceClass')
…

leticia
- 2,390
- 5
- 30
- 41
8
votes
3 answers
Creating PHP SOAP service from given WSDL
This may come across as a terribly lazy question, but I assure you it is not. I have tried for days to get this working but I just cannot.
I have been given a WSDL file and I need to create a SOAP service for it in PHP. Could any one tell me what…

mikedhart
- 413
- 2
- 4
- 14
7
votes
4 answers
SoapServer, fault on handle() - Procedure not set
So the error is:
PHP Fatal error: Procedure 'sup:set_availability' not present in XMLSoapServer.php
I am receiving this error on my development environment (MAMP).
This is caused by an invalid XML string, in wich the 'sup' namespace isn't…

Rob Gordijn
- 6,381
- 1
- 22
- 29
7
votes
1 answer
How return custom XML response in soapServer response?
I am setting up a SOAP webservice which takes XML input and has to return custom XML output.
All this is defined in a WSDL. I apply soapServer for this (until someone says it has bugs preventing me from achieving my goal :-)).
I haven't been able…

Maestro13
- 3,656
- 8
- 42
- 72
5
votes
2 answers
Extending php SoapClient for siteminder authentication
Short Version
I want to extend SoapClient so it does this internally when accessing the WSDL:
curl -L -E /location/of/cert.pem -c /tmp/location/of/cookie.jar https://web-service-provider/servicename?wsdl
Long Version
I've got a SOAP request similar…

denormalizer
- 2,186
- 3
- 24
- 36
5
votes
1 answer
How to send out plain XML in SOAP response?
I'm using PHP SoapServer class and try to put plain XML inside the body of the SOAP response.
Case 1:
My WSDL has
I encode the response
return new SoapVar($my_xml,XSD_ANYXML)
PHP SoapClient…

tok
- 909
- 1
- 10
- 21
4
votes
1 answer
PHP SoapVar Object Attribute?
Does anyone have any clue as to how I can add an attribute to a SoapVar object? It seems like it would be simple, but I can't get it to take/work.
I've looked at the PHP docs and at the following stackoverflow question:
Documentation on…

jjwdesign
- 3,272
- 8
- 41
- 66
4
votes
1 answer
Add xmlns value to Symfony2 SoapServer response
We have built a SOAP Service to receive a request however the response given needs to include an additional value and we don't know how to add it.
We need to add xmlns="http://some-url.co.uk/" into this: so that it…

user1077250
- 155
- 2
- 14
4
votes
1 answer
PHP SoapClient : What is NS2
I'm New to webservices i'm trying to call webservice with soapClient() and it's generating Request XML which is not in expected format
Below is expected format of request XML

Kathir Selvan
- 43
- 1
- 4
4
votes
3 answers
How to get started node-soap
I try to make soap-server with node.js using node-soap.
I have wsdl like

Eakkapat Pattarathamrong
- 450
- 1
- 7
- 13
4
votes
3 answers
Structuring PHP array for use in SOAP with WSDL
I am writing a SoapServer with PHP 5.2 to return a list of vacancies to another application. My WSDL doc requires a complex type along the lines of:
…

johan
- 41
- 2
4
votes
4 answers
PHP Soap Server How to know called method
In PHP I would like to know what will be the method called by SOAP. Here is a sample to understand...
$soapserver = new SoapServer();
$soapserver->setClass('myClass');
$soapserver->handle();
What I would like to know is the name of the method that…

Guile
- 1,473
- 1
- 12
- 20
3
votes
0 answers
how to return custom types with php soap server?
I'm in with PHP SoapServer working in non-wsdl mode. I have the server set up to handle the data and return a response using setClass(). I tried returning an associative array, but that translates into SOAP maps with items, keys and values. I'd like…

Reese
- 1,746
- 1
- 17
- 40