We have a very simple nusoap_client which we use to ensure that our web service is alive and kicking.
We use NuSOAP version 0.9.5.

So, here is the client:

$client = new nusoap_client("https://X.X.X.X/Something.php?wsdl",true);
$client->setCurlOption(CURLOPT_HTTPHEADER, array("Host: nameofthe.namebased.virtualhost")); $client->setCurlOption(CURLOPT_RETURNTRANSFER, 1);

$param = array("xml" => "", "username" => "user", "password" => "555");

$result = $client->call("DaService", array("Request" => $param));

echo '

Request

' . htmlspecialchars($client->request, ENT_QUOTES) . '
';
echo '

Response

' . htmlspecialchars($client->response, ENT_QUOTES) . '
';
echo '

Debug

' . htmlspecialchars($client->getDebug(), ENT_QUOTES) . '
';

Here's the service:

// Create an instance of the server
$server = new soap_server;

// Initialize WSDL support
$server->configureWSDL('Something', 'urn:Something');

// Put the WSDL schema types in the namespace with the tns prefix
$server->wsdl->schemaTargetNamespace = 'urn:Something';

// Register the data structures used by the service
$server->wsdl->addComplexType(
'Request',
'complexType',
'struct',
'all',
'',
array(
'username' => array('name' => 'username','type' => 'xsd:string'),
'password' => array('name' => 'password','type' => 'xsd:string'),
'secretkey' => array('name' => 'secretkey','type' => 'xsd:string'),
'magazinedbid' => array('name' => 'magazinedbid','type' => 'xsd:string'),
'xml' => array('name' => 'xml','type' => 'xsd:string')

)

);

$server->wsdl->addComplexType(
'Response',
'complexType',
'struct',
'all',
'',
array(
'xml' => array('name' => 'xml', 'type' => 'xsd:string'),
'result' => array('name' => 'result', 'type' => 'xsd:string')
)
);

// Register the methods to expose
$server->register('DaService', // method name
array('Request' => 'tns:Request'), // input parameters
array('Response' => 'tns:Response'), // output parameters
'urn:Something', // namespace
'urn:Something#DaService', // soapaction
'rpc', // style
'encoded', // use
'Returns a list of foo' // documentation
);

// This is the method
function GetMagazineData($input) {
...
returns valid xml stuff...
}

When I test the service the result is this:

Request

POST /Something.php?wsdl HTTP/1.0
Host: 127.0.0.1
User-Agent: NuSOAP/0.9.5 (1.123)
Content-Type: text/xml; charset=ISO-8859-1
SOAPAction: "urn:Something#DaService"
Content-Length: 684

<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 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:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:Something"><SOAP-ENV:Body><tns:DaService xmlns:tns="urn:Something"><Request xsi:type="tns:Request"><username xsi:type="xsd:string">user</username><password xsi:type="xsd:string">555</password><xml xsi:type="xsd:string"></xml></Request></tns:DaService></SOAP-ENV:Body></SOAP-ENV:Envelope>

Response

HTTP/1.1 500 Internal Server Error
Date: Wed, 10 Jul 2013 12:15:29 GMT
Server: Apache/2.2.15 (CentOS)
X-Powered-By: PHP/5.3.3
X-SOAP-Server: NuSOAP/0.9.5 (1.123)
Content-Length: 700
Connection: close
Content-Type: text/xml; charset=ISO-8859-1

<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 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:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body><SOAP-ENV:Fault><faultcode xsi:type="xsd:string">SOAP-ENV:Client</faultcode><faultactor xsi:type="xsd:string"></faultactor><faultstring xsi:type="xsd:string">Operation '' is not defined in the WSDL for this service</faultstring><detail xsi:type="xsd:string"></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>

Debug

2013-07-10 15:15:29.223769 nusoap_client: ctor wsdl=1 timeout=0 response_timeout=30
endpoint=string(44) "https://127.0.0.1/Something.php?wsdl"
endpointIPNULL
2013-07-10 15:15:29.223991 nusoap_client: will use lazy evaluation of wsdl from https://127.0.0.1/Something.php?wsdl
2013-07-10 15:15:29.224018 nusoap_client: setCurlOption option=10023, value=
array(1) {
[0]=>
string(21) "Host: host.com"
}
2013-07-10 15:15:29.224045 nusoap_client: setCurlOption option=19913, value=
int(1)
2013-07-10 15:15:29.224087 nusoap_client: call: operation=DaService, namespace=http://tempuri.org, soapAction=, rpcParams=, style=rpc, use=encoded, endpointType=wsdl
params=array(1) {
["Request"]=>
array(3) {
["xml"]=>
string(0) ""
["username"]=>
string(7) "user"
["password"]=>
string(8) "555"
}
}
headers=bool(false)
2013-07-10 15:15:29.224123 nusoap_client: instantiating wsdl class with doc: https://127.0.0.1/Something.php?wsdl
2013-07-10 15:15:29.224169 wsdl: ctor wsdl= timeout=0 response_timeout=30
2013-07-10 15:15:29.224196 wsdl: parse and process WSDL path=
2013-07-10 15:15:29.224232 wsdl: setCredentials username= authtype= certRequest=
array(0) {
}
2013-07-10 15:15:29.224255 wsdl: parse and process WSDL path=https://127.0.0.1/Something.php?wsdl
2013-07-10 15:15:29.224276 wsdl: parse WSDL at path=https://127.0.0.1/Something.php?wsdl
2013-07-10 15:15:29.224299 wsdl: getting WSDL http(s) URL https://127.0.0.1/Something.php?wsdl
2013-07-10 15:15:29.224346 soap_transport_http: ctor url=https://127.0.0.1/Something.php?wsdl use_curl= curl_options:
array(2) {
[10023]=>
array(1) {
[0]=>
string(21) "Host: host.com"
}
[19913]=>
int(1)
}
2013-07-10 15:15:29.224381 soap_transport_http: parsed URL scheme = https
2013-07-10 15:15:29.224399 soap_transport_http: parsed URL host = 127.0.0.1
2013-07-10 15:15:29.224413 soap_transport_http: parsed URL path = /Something.php
2013-07-10 15:15:29.224427 soap_transport_http: parsed URL query = wsdl
2013-07-10 15:15:29.224446 soap_transport_http: set header Host: 127.0.0.1
2013-07-10 15:15:29.224493 soap_transport_http: set header User-Agent: NuSOAP/0.9.5 (1.123)
2013-07-10 15:15:29.224516 soap_transport_http: set header Accept-Encoding: gzip, deflate
2013-07-10 15:15:29.224533 soap_transport_http: set header Connection: close
2013-07-10 15:15:29.224550 soap_transport_http: entered send() with data of length: 0
2013-07-10 15:15:29.224570 soap_transport_http: connect connection_timeout 0, response_timeout 30, scheme https, host 127.0.0.1, port 443
2013-07-10 15:15:29.224601 soap_transport_http: connect using cURL
2013-07-10 15:15:29.224692 soap_transport_http: setCurlOption option=10002, value=
string(48) "https://127.0.0.1:443/Something.php?wsdl"
2013-07-10 15:15:29.224734 soap_transport_http: setCurlOption option=52, value=
int(1)
2013-07-10 15:15:29.224757 soap_transport_http: setCurlOption option=42, value=
int(1)
2013-07-10 15:15:29.224775 soap_transport_http: setCurlOption option=19913, value=
int(1)
2013-07-10 15:15:29.224794 soap_transport_http: setCurlOption option=13, value=
int(30)
2013-07-10 15:15:29.224812 soap_transport_http: set cURL SSL verify options
2013-07-10 15:15:29.224827 soap_transport_http: setCurlOption option=64, value=
int(0)
2013-07-10 15:15:29.224844 soap_transport_http: setCurlOption option=81, value=
int(0)
2013-07-10 15:15:29.224864 soap_transport_http: cURL connection set up
2013-07-10 15:15:29.224885 soap_transport_http: HTTP request: GET /Something.php?wsdl HTTP/1.1
2013-07-10 15:15:29.224902 soap_transport_http: HTTP header: Host: 127.0.0.1
2013-07-10 15:15:29.224916 soap_transport_http: HTTP header: User-Agent: NuSOAP/0.9.5 (1.123)
2013-07-10 15:15:29.224930 soap_transport_http: HTTP header: Accept-Encoding: gzip, deflate
2013-07-10 15:15:29.224943 soap_transport_http: HTTP header: Connection: close
2013-07-10 15:15:29.224961 soap_transport_http: Skip cURL header Host: 127.0.0.1
2013-07-10 15:15:29.224986 soap_transport_http: Skip cURL header Connection: close
2013-07-10 15:15:29.225004 soap_transport_http: setCurlOption option=10023, value=
array(2) {
[0]=>
string(32) "User-Agent: NuSOAP/0.9.5 (1.123)"
[1]=>
string(30) "Accept-Encoding: gzip, deflate"
}
2013-07-10 15:15:29.225027 soap_transport_http: set cURL HTTP headers
2013-07-10 15:15:29.225044 soap_transport_http: setCurlOption option=10023, value=
array(1) {
[0]=>
string(21) "Host: host.com"
}
2013-07-10 15:15:29.225064 soap_transport_http: setCurlOption option=19913, value=
int(1)
2013-07-10 15:15:29.225083 soap_transport_http: set cURL payload
2013-07-10 15:15:29.225101 soap_transport_http: send and receive with cURL
2013-07-10 15:15:29.249454 soap_transport_http: No cURL error, closing cURL
2013-07-10 15:15:29.249522 soap_transport_http: found proper separation of headers and document
2013-07-10 15:15:29.249545 soap_transport_http: cleaned data, stringlen: 3422
2013-07-10 15:15:29.249586 soap_transport_http: No Content-Encoding header
2013-07-10 15:15:29.249604 soap_transport_http: end of send()
2013-07-10 15:15:29.249651 wsdl: got WSDL URL
2013-07-10 15:15:29.249669 wsdl: Parse WSDL
2013-07-10 15:15:29.249955 wsdl: Parsing WSDL schema
2013-07-10 15:15:29.250004 nusoap_xmlschema: nusoap_xmlschema class instantiated, inside constructor
2013-07-10 15:15:29.250105 nusoap_xmlschema: <urn:Something> import namespace http://schemas.xmlsoap.org/soap/encoding/
2013-07-10 15:15:29.250182 nusoap_xmlschema: <urn:Something> import namespace http://schemas.xmlsoap.org/wsdl/
2013-07-10 15:15:29.250252 nusoap_xmlschema: <urn:Something> processing named complexType Request
2013-07-10 15:15:29.250340 nusoap_xmlschema: <urn:Something> processing typed element username of type http://www.w3.org/2001/XMLSchema:string
2013-07-10 15:15:29.250368 nusoap_xmlschema: <urn:Something> add element username to complexType Request
2013-07-10 15:15:29.250402 nusoap_xmlschema: <urn:Something> done processing element username
2013-07-10 15:15:29.250459 nusoap_xmlschema: <urn:Something> processing typed element password of type http://www.w3.org/2001/XMLSchema:string
2013-07-10 15:15:29.250484 nusoap_xmlschema: <urn:Something> add element password to complexType Request
2013-07-10 15:15:29.250517 nusoap_xmlschema: <urn:Something> done processing element password
2013-07-10 15:15:29.250573 nusoap_xmlschema: <urn:Something> processing typed element secretkey of type http://www.w3.org/2001/XMLSchema:string
2013-07-10 15:15:29.250598 nusoap_xmlschema: <urn:Something> add element secretkey to complexType Request
2013-07-10 15:15:29.250665 nusoap_xmlschema: <urn:Something> done processing element secretkey
2013-07-10 15:15:29.250736 nusoap_xmlschema: <urn:Something> processing typed element magazinedbid of type http://www.w3.org/2001/XMLSchema:string
2013-07-10 15:15:29.250763 nusoap_xmlschema: <urn:Something> add element magazinedbid to complexType Request
2013-07-10 15:15:29.250799 nusoap_xmlschema: <urn:Something> done processing element magazinedbid
2013-07-10 15:15:29.250856 nusoap_xmlschema: <urn:Something> processing typed element xml of type http://www.w3.org/2001/XMLSchema:string
2013-07-10 15:15:29.250881 nusoap_xmlschema: <urn:Something> add element xml to complexType Request
2013-07-10 15:15:29.250913 nusoap_xmlschema: <urn:Something> done processing element xml
2013-07-10 15:15:29.250960 nusoap_xmlschema: <urn:Something> done processing complexType Request
2013-07-10 15:15:29.251002 nusoap_xmlschema: <urn:Something> array(6) {
["name"]=>
string(7) "Request"
["typeClass"]=>
string(11) "complexType"
["phpType"]=>
string(6) "struct"
["simpleContent"]=>
string(5) "false"
["compositor"]=>
string(3) "all"
["elements"]=>
array(5) {
["username"]=>
array(3) {
["name"]=>
string(8) "username"
["type"]=>
string(39) "http://www.w3.org/2001/XMLSchema:string"
["form"]=>
string(11) "unqualified"
}
["password"]=>
array(3) {
["name"]=>
string(8) "password"
["type"]=>
string(39) "http://www.w3.org/2001/XMLSchema:string"
["form"]=>
string(11) "unqualified"
}
["secretkey"]=>
array(3) {
["name"]=>
string(9) "secretkey"
["type"]=>
string(39) "http://www.w3.org/2001/XMLSchema:string"
["form"]=>
string(11) "unqualified"
}
["magazinedbid"]=>
array(3) {
["name"]=>
string(12) "magazinedbid"
["type"]=>
string(39) "http://www.w3.org/2001/XMLSchema:string"
["form"]=>
string(11) "unqualified"
}
["xml"]=>
array(3) {
["name"]=>
string(3) "xml"
["type"]=>
string(39) "http://www.w3.org/2001/XMLSchema:string"
["form"]=>
string(11) "unqualified"
}
}
}

2013-07-10 15:15:29.251051 nusoap_xmlschema: <urn:Something> processing named complexType Response
2013-07-10 15:15:29.251138 nusoap_xmlschema: <urn:Something> processing typed element xml of type http://www.w3.org/2001/XMLSchema:string
2013-07-10 15:15:29.251165 nusoap_xmlschema: <urn:Something> add element xml to complexType Response
2013-07-10 15:15:29.251198 nusoap_xmlschema: <urn:Something> done processing element xml
2013-07-10 15:15:29.251254 nusoap_xmlschema: <urn:Something> processing typed element result of type http://www.w3.org/2001/XMLSchema:string
2013-07-10 15:15:29.251280 nusoap_xmlschema: <urn:Something> add element result to complexType Response
2013-07-10 15:15:29.251313 nusoap_xmlschema: <urn:Something> done processing element result
2013-07-10 15:15:29.251358 nusoap_xmlschema: <urn:Something> done processing complexType Response
2013-07-10 15:15:29.251390 nusoap_xmlschema: <urn:Something> array(6) {
["name"]=>
string(8) "Response"
["typeClass"]=>
string(11) "complexType"
["phpType"]=>
string(6) "struct"
["simpleContent"]=>
string(5) "false"
["compositor"]=>
string(3) "all"
["elements"]=>
array(2) {
["xml"]=>
array(3) {
["name"]=>
string(3) "xml"
["type"]=>
string(39) "http://www.w3.org/2001/XMLSchema:string"
["form"]=>
string(11) "unqualified"
}
["result"]=>
array(3) {
["name"]=>
string(6) "result"
["type"]=>
string(39) "http://www.w3.org/2001/XMLSchema:string"
["form"]=>
string(11) "unqualified"
}
}
}

2013-07-10 15:15:29.251425 wsdl: Parsing WSDL schema done
2013-07-10 15:15:29.251511 wsdl: msg DaServiceRequest: found part (with type) Request: Request,urn:Something:Request
2013-07-10 15:15:29.251595 wsdl: msg DaServiceResponse: found part (with type) Response: Response,urn:Something:Response
2013-07-10 15:15:29.251743 wsdl: msg SaveMagazineSubscriptionRequest: found part (with type) Request: Request,urn:Something:Request
2013-07-10 15:15:29.251828 wsdl: msg SaveMagazineSubscriptionResponse: found part (with type) Response: Response,urn:Something:Response
2013-07-10 15:15:29.251897 wsdl: portType SomethingPortType operation: DaService
2013-07-10 15:15:29.252030 wsdl: portType SomethingPortType operation: SaveMagazineSubscription
2013-07-10 15:15:29.252186 wsdl: current binding: SomethingBinding of portType: urn:Something:SomethingPortType
2013-07-10 15:15:29.252269 wsdl: current binding operation: DaService
2013-07-10 15:15:29.252449 wsdl: current binding operation: SaveMagazineSubscription
2013-07-10 15:15:29.252666 wsdl: current service: Something
2013-07-10 15:15:29.252722 wsdl: current port: SomethingPort
2013-07-10 15:15:29.252808 wsdl: Parsing WSDL done
2013-07-10 15:15:29.252847 wsdl: post-parse data gathering for DaService
2013-07-10 15:15:29.252898 wsdl: post-parse data gathering for SaveMagazineSubscription
2013-07-10 15:15:29.252950 nusoap_client: checkWSDL
2013-07-10 15:15:29.252972 wsdl: getOperations for port '' bindingType http://schemas.xmlsoap.org/wsdl/soap/
2013-07-10 15:15:29.252987 wsdl: getOperations checking port SomethingPort bindingType http://schemas.xmlsoap.org/wsdl/soap/
2013-07-10 15:15:29.253001 wsdl: getOperations found port SomethingPort bindingType http://schemas.xmlsoap.org/wsdl/soap/
2013-07-10 15:15:29.253025 nusoap_client: got 2 operations from wsdl https://127.0.0.1/Something.php?wsdl for binding type soap
2013-07-10 15:15:29.253045 nusoap_client: found operation
opData=array(9) {
["name"]=>
string(15) "DaService"
["binding"]=>
string(24) "SomethingBinding"
["endpoint"]=>
string(49) "https://host.com:443/Something.php"
["soapAction"]=>
string(37) "urn:Something#DaService"
["style"]=>
string(3) "rpc"
["input"]=>
array(5) {
["use"]=>
string(7) "encoded"
["namespace"]=>
string(21) "urn:Something"
["encodingStyle"]=>
string(41) "http://schemas.xmlsoap.org/soap/encoding/"
["message"]=>
string(22) "DaServiceRequest"
["parts"]=>
array(1) {
["Request"]=>
string(29) "urn:Something:Request"
}
}
["output"]=>
array(5) {
["use"]=>
string(7) "encoded"
["namespace"]=>
string(21) "urn:Something"
["encodingStyle"]=>
string(41) "http://schemas.xmlsoap.org/soap/encoding/"
["message"]=>
string(23) "DaServiceResponse"
["parts"]=>
array(1) {
["Response"]=>
string(30) "urn:Something:Response"
}
}
["transport"]=>
string(36) "http://schemas.xmlsoap.org/soap/http"
["documentation"]=>
string(0) ""
}
2013-07-10 15:15:29.253104 nusoap_client: serializing param array for WSDL operation DaService
2013-07-10 15:15:29.253127 wsdl: in serializeRPCParameters: operation=DaService, direction=input, XMLSchemaVersion=http://www.w3.org/2001/XMLSchema, bindingType=soap
parameters=array(1) {
["Request"]=>
array(3) {
["xml"]=>
string(0) ""
["username"]=>
string(7) "user"
["password"]=>
string(8) "555"
}
}
2013-07-10 15:15:29.253162 wsdl: in serializeRPCParameters: opData:
array(9) {
["name"]=>
string(15) "DaService"
["binding"]=>
string(24) "SomethingBinding"
["endpoint"]=>
string(49) "https://host.com:443/Something.php"
["soapAction"]=>
string(37) "urn:Something#DaService"
["style"]=>
string(3) "rpc"
["input"]=>
array(5) {
["use"]=>
string(7) "encoded"
["namespace"]=>
string(21) "urn:Something"
["encodingStyle"]=>
string(41) "http://schemas.xmlsoap.org/soap/encoding/"
["message"]=>
string(22) "DaServiceRequest"
["parts"]=>
array(1) {
["Request"]=>
string(29) "urn:Something:Request"
}
}
["output"]=>
array(5) {
["use"]=>
string(7) "encoded"
["namespace"]=>
string(21) "urn:Something"
["encodingStyle"]=>
string(41) "http://schemas.xmlsoap.org/soap/encoding/"
["message"]=>
string(23) "DaServiceResponse"
["parts"]=>
array(1) {
["Response"]=>
string(30) "urn:Something:Response"
}
}
["transport"]=>
string(36) "http://schemas.xmlsoap.org/soap/http"
["documentation"]=>
string(0) ""
}
2013-07-10 15:15:29.253208 wsdl: have 1 part(s) to serialize using rpc/encoded
2013-07-10 15:15:29.253230 wsdl: have 1 parameter(s) provided as arrayStruct to serialize
2013-07-10 15:15:29.253246 wsdl: serializing part Request of type urn:Something:Request
2013-07-10 15:15:29.253262 wsdl: calling serializeType w/named param
2013-07-10 15:15:29.253277 wsdl: in serializeType: name=Request, type=urn:Something:Request, use=encoded, encodingStyle=, unqualified=qualified
value=array(3) {
["xml"]=>
string(0) ""
["username"]=>
string(7) "user"
["password"]=>
string(8) "555"
}
2013-07-10 15:15:29.253302 wsdl: in serializeType: got a prefixed type: Request, urn:Something
2013-07-10 15:15:29.253320 wsdl: in getTypeDef: type=Request, ns=urn:Something
2013-07-10 15:15:29.253334 wsdl: in getTypeDef: have schema for namespace urn:Something
2013-07-10 15:15:29.253354 nusoap_xmlschema: <urn:Something> in getTypeDef, found complexType Request
2013-07-10 15:15:29.253373 wsdl: in getTypeDef: found type Request
2013-07-10 15:15:29.253387 wsdl: in serializeType: found typeDef
typeDef=array(6) {
["name"]=>
string(7) "Request"
["typeClass"]=>
string(11) "complexType"
["phpType"]=>
string(6) "struct"
["simpleContent"]=>
string(5) "false"
["compositor"]=>
string(3) "all"
["elements"]=>
array(5) {
["username"]=>
array(3) {
["name"]=>
string(8) "username"
["type"]=>
string(39) "http://www.w3.org/2001/XMLSchema:string"
["form"]=>
string(11) "unqualified"
}
["password"]=>
array(3) {
["name"]=>
string(8) "password"
["type"]=>
string(39) "http://www.w3.org/2001/XMLSchema:string"
["form"]=>
string(11) "unqualified"
}
["secretkey"]=>
array(3) {
["name"]=>
string(9) "secretkey"
["type"]=>
string(39) "http://www.w3.org/2001/XMLSchema:string"
["form"]=>
string(11) "unqualified"
}
["magazinedbid"]=>
array(3) {
["name"]=>
string(12) "magazinedbid"
["type"]=>
string(39) "http://www.w3.org/2001/XMLSchema:string"
["form"]=>
string(11) "unqualified"
}
["xml"]=>
array(3) {
["name"]=>
string(3) "xml"
["type"]=>
string(39) "http://www.w3.org/2001/XMLSchema:string"
["form"]=>
string(11) "unqualified"
}
}
}
2013-07-10 15:15:29.253423 wsdl: in serializeType: uqType: Request, ns: urn:Something, phptype: struct, arrayType:
2013-07-10 15:15:29.253441 wsdl: serializeComplexTypeAttributes for XML Schema type urn:Something:Request
2013-07-10 15:15:29.253455 wsdl: no attributes to serialize for XML Schema type urn:Something:Request
2013-07-10 15:15:29.253475 wsdl: in serializeComplexTypeElements for XML Schema type urn:Something:Request
2013-07-10 15:15:29.253490 wsdl: in serializeComplexTypeElements, serialize elements for XML Schema type urn:Something:Request
2013-07-10 15:15:29.253512 wsdl: in serializeType: name=username, type=http://www.w3.org/2001/XMLSchema:string, use=encoded, encodingStyle=, unqualified=unqualified
value=string(7) "user"
2013-07-10 15:15:29.253535 wsdl: in serializeType: got a prefixed type: string, http://www.w3.org/2001/XMLSchema
2013-07-10 15:15:29.253551 wsdl: in serializeType: type namespace indicates XML Schema or SOAP Encoding type
2013-07-10 15:15:29.253575 wsdl: in getTypeDef: type=string, ns=http://www.w3.org/2001/XMLSchema
2013-07-10 15:15:29.253592 wsdl: in getTypeDef: do not have schema for namespace http://www.w3.org/2001/XMLSchema
2013-07-10 15:15:29.253610 wsdl: in serializeType: returning: <username xsi:type="xsd:string">user</username>
2013-07-10 15:15:29.253658 wsdl: in serializeType: name=password, type=http://www.w3.org/2001/XMLSchema:string, use=encoded, encodingStyle=, unqualified=unqualified
value=string(8) "555"
2013-07-10 15:15:29.253681 wsdl: in serializeType: got a prefixed type: string, http://www.w3.org/2001/XMLSchema
2013-07-10 15:15:29.253697 wsdl: in serializeType: type namespace indicates XML Schema or SOAP Encoding type
2013-07-10 15:15:29.253717 wsdl: in getTypeDef: type=string, ns=http://www.w3.org/2001/XMLSchema
2013-07-10 15:15:29.253733 wsdl: in getTypeDef: do not have schema for namespace http://www.w3.org/2001/XMLSchema
2013-07-10 15:15:29.253751 wsdl: in serializeType: returning: <password xsi:type="xsd:string">555</password>
2013-07-10 15:15:29.253767 wsdl: no value provided for complexType element secretkey and element is not nillable, so serialize nothing
2013-07-10 15:15:29.253781 wsdl: no value provided for complexType element magazinedbid and element is not nillable, so serialize nothing
2013-07-10 15:15:29.253799 wsdl: in serializeType: name=xml, type=http://www.w3.org/2001/XMLSchema:string, use=encoded, encodingStyle=, unqualified=unqualified
value=string(0) ""
2013-07-10 15:15:29.253820 wsdl: in serializeType: got a prefixed type: string, http://www.w3.org/2001/XMLSchema
2013-07-10 15:15:29.253835 wsdl: in serializeType: type namespace indicates XML Schema or SOAP Encoding type
2013-07-10 15:15:29.253854 wsdl: in getTypeDef: type=string, ns=http://www.w3.org/2001/XMLSchema
2013-07-10 15:15:29.253870 wsdl: in getTypeDef: do not have schema for namespace http://www.w3.org/2001/XMLSchema
2013-07-10 15:15:29.253887 wsdl: in serializeType: returning: <xml xsi:type="xsd:string"></xml>
2013-07-10 15:15:29.253904 wsdl: in serializeType: returning: <Request xsi:type="tns:Request"><username xsi:type="xsd:string">user</username><password xsi:type="xsd:string">555</password><xml xsi:type="xsd:string"></xml></Request>
2013-07-10 15:15:29.253918 wsdl: serializeRPCParameters returning: <Request xsi:type="tns:Request"><username xsi:type="xsd:string">user</username><password xsi:type="xsd:string">555</password><xml xsi:type="xsd:string"></xml></Request>
2013-07-10 15:15:29.253943 nusoap_client: wrapping RPC request with encoded method element
2013-07-10 15:15:29.253966 nusoap_client: In serializeEnvelope length=253 body (max 1000 characters)=<tns:DaService xmlns:tns="urn:Something"><Request xsi:type="tns:Request"><username xsi:type="xsd:string">user</username><password xsi:type="xsd:string">555</password><xml xsi:type="xsd:string"></xml></Request></tns:DaService> style=rpc use=encoded encodingStyle=http://schemas.xmlsoap.org/soap/encoding/
2013-07-10 15:15:29.253980 nusoap_client: headers:
bool(false)
2013-07-10 15:15:29.253997 nusoap_client: namespaces:
array(2) {
["tns"]=>
string(21) "urn:Something"
["xsd"]=>
string(32) "http://www.w3.org/2001/XMLSchema"
}
2013-07-10 15:15:29.254029 nusoap_client: endpoint=https://host.com:443/Something.php, soapAction=urn:Something#DaService, namespace=urn:Something, style=rpc, use=encoded, encodingStyle=http://schemas.xmlsoap.org/soap/encoding/
2013-07-10 15:15:29.254046 nusoap_client: SOAP message length=684 contents (max 1000 bytes)=<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 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:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:Something"><SOAP-ENV:Body><tns:DaService xmlns:tns="urn:Something"><Request xsi:type="tns:Request"><username xsi:type="xsd:string">user</username><password xsi:type="xsd:string">555</password><xml xsi:type="xsd:string"></xml></Request></tns:DaService></SOAP-ENV:Body></SOAP-ENV:Envelope>
2013-07-10 15:15:29.254069 nusoap_client: transporting via HTTP
2013-07-10 15:15:29.254259 nusoap_client: sending message, length=684
2013-07-10 15:15:29.254093 soap_transport_http: ctor url=https://127.0.0.1/Something.php?wsdl use_curl= curl_options:
array(2) {
[10023]=>
array(1) {
[0]=>
string(21) "Host: host.com"
}
[19913]=>
int(1)
}
2013-07-10 15:15:29.254121 soap_transport_http: parsed URL scheme = https
2013-07-10 15:15:29.254136 soap_transport_http: parsed URL host = 127.0.0.1
2013-07-10 15:15:29.254150 soap_transport_http: parsed URL path = /Something.php
2013-07-10 15:15:29.254163 soap_transport_http: parsed URL query = wsdl
2013-07-10 15:15:29.254183 soap_transport_http: set header Host: 127.0.0.1
2013-07-10 15:15:29.254208 soap_transport_http: set header User-Agent: NuSOAP/0.9.5 (1.123)
2013-07-10 15:15:29.254227 soap_transport_http: set header Content-Type: text/xml; charset=ISO-8859-1
2013-07-10 15:15:29.254243 soap_transport_http: set header SOAPAction: "urn:Something#DaService"
2013-07-10 15:15:29.254278 soap_transport_http: entered send() with data of length: 684
2013-07-10 15:15:29.254297 soap_transport_http: connect connection_timeout 0, response_timeout 30, scheme https, host 127.0.0.1, port 443
2013-07-10 15:15:29.254318 soap_transport_http: connect using cURL
2013-07-10 15:15:29.254344 soap_transport_http: setCurlOption option=10002, value=
string(48) "https://127.0.0.1:443/Something.php?wsdl"
2013-07-10 15:15:29.254370 soap_transport_http: setCurlOption option=52, value=
int(1)
2013-07-10 15:15:29.254389 soap_transport_http: setCurlOption option=42, value=
int(1)
2013-07-10 15:15:29.254408 soap_transport_http: setCurlOption option=19913, value=
int(1)
2013-07-10 15:15:29.254426 soap_transport_http: setCurlOption option=13, value=
int(30)
2013-07-10 15:15:29.254444 soap_transport_http: set cURL SSL verify options
2013-07-10 15:15:29.254458 soap_transport_http: setCurlOption option=64, value=
int(0)
2013-07-10 15:15:29.254476 soap_transport_http: setCurlOption option=81, value=
int(0)
2013-07-10 15:15:29.254495 soap_transport_http: cURL connection set up
2013-07-10 15:15:29.254518 soap_transport_http: set header Content-Length: 684
2013-07-10 15:15:29.254534 soap_transport_http: HTTP request: POST /Something.php?wsdl HTTP/1.0
2013-07-10 15:15:29.254549 soap_transport_http: HTTP header: Host: 127.0.0.1
2013-07-10 15:15:29.254563 soap_transport_http: HTTP header: User-Agent: NuSOAP/0.9.5 (1.123)
2013-07-10 15:15:29.254577 soap_transport_http: HTTP header: Content-Type: text/xml; charset=ISO-8859-1
2013-07-10 15:15:29.254590 soap_transport_http: HTTP header: SOAPAction: "urn:Something#DaService"
2013-07-10 15:15:29.254604 soap_transport_http: HTTP header: Content-Length: 684
2013-07-10 15:15:29.254690 soap_transport_http: Skip cURL header Host: 127.0.0.1
2013-07-10 15:15:29.254715 soap_transport_http: Skip cURL header Content-Length: 684
2013-07-10 15:15:29.254730 soap_transport_http: setCurlOption option=10023, value=
array(3) {
[0]=>
string(32) "User-Agent: NuSOAP/0.9.5 (1.123)"
[1]=>
string(42) "Content-Type: text/xml; charset=ISO-8859-1"
[2]=>
string(51) "SOAPAction: "urn:Something#DaService""
}
2013-07-10 15:15:29.254755 soap_transport_http: set cURL HTTP headers
2013-07-10 15:15:29.254771 soap_transport_http: setCurlOption option=47, value=
int(1)
2013-07-10 15:15:29.254790 soap_transport_http: setCurlOption option=10015, value=
string(684) "<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 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:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:Something"><SOAP-ENV:Body><tns:DaService xmlns:tns="urn:Something"><Request xsi:type="tns:Request"><username xsi:type="xsd:string">user</username><password xsi:type="xsd:string">555</password><xml xsi:type="xsd:string"></xml></Request></tns:DaService></SOAP-ENV:Body></SOAP-ENV:Envelope>"
2013-07-10 15:15:29.254810 soap_transport_http: set cURL POST data
2013-07-10 15:15:29.254825 soap_transport_http: setCurlOption option=10023, value=
array(1) {
[0]=>
string(21) "Host: host.com"
}
2013-07-10 15:15:29.254845 soap_transport_http: setCurlOption option=19913, value=
int(1)
2013-07-10 15:15:29.254864 soap_transport_http: set cURL payload
2013-07-10 15:15:29.254882 soap_transport_http: send and receive with cURL
2013-07-10 15:15:29.276273 soap_transport_http: No cURL error, closing cURL
2013-07-10 15:15:29.276327 soap_transport_http: found proper separation of headers and document
2013-07-10 15:15:29.276354 soap_transport_http: cleaned data, stringlen: 700
2013-07-10 15:15:29.276400 soap_transport_http: No Content-Encoding header
2013-07-10 15:15:29.276418 soap_transport_http: end of send()
2013-07-10 15:15:29.276445 nusoap_client: got response, length=700 type=text/xml; charset=ISO-8859-1
2013-07-10 15:15:29.276461 nusoap_client: Entering parseResponse() for data of length 700 headers:
array(7) {
["date"]=>
string(29) "Wed, 10 Jul 2013 12:15:29 GMT"
["server"]=>
string(22) "Apache/2.2.15 (CentOS)"
["x-powered-by"]=>
string(9) "PHP/5.3.3"
["x-soap-server"]=>
string(20) "NuSOAP/0.9.5 (1.123)"
["content-length"]=>
string(3) "700"
["connection"]=>
string(5) "close"
["content-type"]=>
string(28) "text/xml; charset=ISO-8859-1"
}
2013-07-10 15:15:29.276489 nusoap_client: Got response encoding: ISO-8859-1
2013-07-10 15:15:29.276511 nusoap_client: Use encoding: ISO-8859-1 when creating nusoap_parser
2013-07-10 15:15:29.276570 nusoap_parser: Charset from HTTP Content-Type matches encoding from XML declaration
2013-07-10 15:15:29.276591 nusoap_parser: Entering nusoap_parser(), length=700, encoding=ISO-8859-1
2013-07-10 15:15:29.276768 nusoap_parser: found root struct Fault, pos 2
2013-07-10 15:15:29.277006 nusoap_parser: in buildVal() for Fault(pos 2) of type struct
2013-07-10 15:15:29.277030 nusoap_parser: in buildVal, there are children
2013-07-10 15:15:29.277051 nusoap_parser: in buildVal, adding Java Vector or generic compound type Fault
2013-07-10 15:15:29.277080 nusoap_parser: in buildVal, return:
array(4) {
["faultcode"]=>
&string(15) "SOAP-ENV:Client"
["faultactor"]=>
&string(0) ""
["faultstring"]=>
&string(56) "Operation '' is not defined in the WSDL for this service"
["detail"]=>
&string(0) ""
}
2013-07-10 15:15:29.277129 nusoap_parser: in nusoap_parser ctor, message:
array(7) {
[0]=>
array(9) {
["pos"]=>
int(0)
["children"]=>
string(2) "|1"
["cdata"]=>
string(1) "
"
["depth"]=>
int(0)
["parent"]=>
string(0) ""
["status"]=>
string(8) "envelope"
["name"]=>
string(8) "Envelope"
["attrs"]=>
array(5) {
["SOAP-ENV:encodingStyle"]=>
string(41) "http://schemas.xmlsoap.org/soap/encoding/"
["xmlns:SOAP-ENV"]=>
string(41) "http://schemas.xmlsoap.org/soap/envelope/"
["xmlns:xsd"]=>
string(32) "http://www.w3.org/2001/XMLSchema"
["xmlns:xsi"]=>
string(41) "http://www.w3.org/2001/XMLSchema-instance"
["xmlns:SOAP-ENC"]=>
string(41) "http://schemas.xmlsoap.org/soap/encoding/"
}
["namespace"]=>
string(41) "http://schemas.xmlsoap.org/soap/envelope/"
}
[1]=>
array(9) {
["pos"]=>
int(1)
["children"]=>
string(2) "|2"
["cdata"]=>
string(0) ""
["depth"]=>
int(1)
["parent"]=>
int(0)
["status"]=>
string(4) "body"
["name"]=>
string(4) "Body"
["attrs"]=>
array(0) {
}
["namespace"]=>
string(41) "http://schemas.xmlsoap.org/soap/envelope/"
}
[2]=>
array(11) {
["pos"]=>
int(2)
["children"]=>
string(8) "|3|4|5|6"
["cdata"]=>
string(0) ""
["depth"]=>
int(2)
["parent"]=>
int(1)
["type"]=>
string(6) "struct"
["status"]=>
string(6) "method"
["name"]=>
string(5) "Fault"
["attrs"]=>
array(0) {
}
["namespace"]=>
string(41) "http://schemas.xmlsoap.org/soap/envelope/"
["result"]=>
array(4) {
["faultcode"]=>
&string(15) "SOAP-ENV:Client"
["faultactor"]=>
&string(0) ""
["faultstring"]=>
&string(56) "Operation '' is not defined in the WSDL for this service"
["detail"]=>
&string(0) ""
}
}
[3]=>
array(13) {
["pos"]=>
int(3)
["children"]=>
string(0) ""
["cdata"]=>
string(15) "SOAP-ENV:Client"
["depth"]=>
int(3)
["parent"]=>
int(2)
["status"]=>
string(6) "method"
["name"]=>
string(9) "faultcode"
["attrs"]=>
array(1) {
["xsi:type"]=>
string(10) "xsd:string"
}
["type"]=>
string(6) "string"
["typePrefix"]=>
string(3) "xsd"
["type_namespace"]=>
string(32) "http://www.w3.org/2001/XMLSchema"
["namespace"]=>
string(41) "http://schemas.xmlsoap.org/soap/envelope/"
["result"]=>
&string(15) "SOAP-ENV:Client"
}
[4]=>
array(13) {
["pos"]=>
int(4)
["children"]=>
string(0) ""
["cdata"]=>
string(0) ""
["depth"]=>
int(3)
["parent"]=>
int(2)
["status"]=>
string(6) "method"
["name"]=>
string(10) "faultactor"
["attrs"]=>
array(1) {
["xsi:type"]=>
string(10) "xsd:string"
}
["type"]=>
string(6) "string"
["typePrefix"]=>
string(3) "xsd"
["type_namespace"]=>
string(32) "http://www.w3.org/2001/XMLSchema"
["namespace"]=>
string(41) "http://schemas.xmlsoap.org/soap/envelope/"
["result"]=>
&string(0) ""
}
[5]=>
array(13) {
["pos"]=>
int(5)
["children"]=>
string(0) ""
["cdata"]=>
string(56) "Operation '' is not defined in the WSDL for this service"
["depth"]=>
int(3)
["parent"]=>
int(2)
["status"]=>
string(6) "method"
["name"]=>
string(11) "faultstring"
["attrs"]=>
array(1) {
["xsi:type"]=>
string(10) "xsd:string"
}
["type"]=>
string(6) "string"
["typePrefix"]=>
string(3) "xsd"
["type_namespace"]=>
string(32) "http://www.w3.org/2001/XMLSchema"
["namespace"]=>
string(41) "http://schemas.xmlsoap.org/soap/envelope/"
["result"]=>
&string(56) "Operation '' is not defined in the WSDL for this service"
}
[6]=>
array(13) {
["pos"]=>
int(6)
["children"]=>
string(0) ""
["cdata"]=>
string(0) ""
["depth"]=>
int(3)
["parent"]=>
int(2)
["status"]=>
string(6) "method"
["name"]=>
string(6) "detail"
["attrs"]=>
array(1) {
["xsi:type"]=>
string(10) "xsd:string"
}
["type"]=>
string(6) "string"
["typePrefix"]=>
string(3) "xsd"
["type_namespace"]=>
string(32) "http://www.w3.org/2001/XMLSchema"
["namespace"]=>
string(41) "http://schemas.xmlsoap.org/soap/envelope/"
["result"]=>
&string(0) ""
}
}
2013-07-10 15:15:29.277212 nusoap_parser: parsed successfully, found root struct: 2 of name Fault
2013-07-10 15:15:29.277266 nusoap_client: sent message successfully and got a(n) array
return=array(4) {
["faultcode"]=>
string(15) "SOAP-ENV:Client"
["faultactor"]=>
string(0) ""
["faultstring"]=>
string(56) "Operation '' is not defined in the WSDL for this service"
["detail"]=>
string(0) ""
}
2013-07-10 15:15:29.277294 nusoap_client: got fault
2013-07-10 15:15:29.277313 nusoap_client: faultcode = SOAP-ENV:Client

2013-07-10 15:15:29.277326 nusoap_client: faultactor =

2013-07-10 15:15:29.277340 nusoap_client: faultstring = Operation '' is not defined in the WSDL for this service

2013-07-10 15:15:29.277353 nusoap_client: detail =

So, first everything goes fine... The request sending and SOAP envelope looks all good, but then magically the response is a fault with 'Operation '' is not defined in the WSDL for this service'.

I don't get this at all...

Any help would be appreciated.

P.S. I had to make a little change to nusoap_client class. Added var endpointIP(that stores the endpoint given in constructor) and use that in send function to pass on to soap_transport_http constructor. Otherwise the host is not found at all.

 
Last edit: zanu 2013-07-10