NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
invocation prob. plz help *solved*


Joined: 18 Aug 2005
Posts: 5
Reply with quote
Heya.

I'm trying to invoke a method of my (testrun) web application using php & nuSoap, but it doesn't seem to work. Here's the WSDL-content of the web service:

Quote:
<?xml version="1.0" encoding="UTF-8" ?>
- <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="urn:TestWebService/wsdl" xmlns:ns2="urn:TestWebService/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" name="TestWebService" targetNamespace="urn:TestWebService/wsdl">
- <types>
+ <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="urn:TestWebService/types" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="urn:TestWebService/types">
- <complexType name="calling">
- <sequence>
<element name="String_1" type="string" nillable="true" />
<element name="String_2" type="string" nillable="true" />
<element name="String_3" type="string" nillable="true" />
</sequence>
</complexType>
- <complexType name="callingResponse">
- <sequence>
<element name="result" type="string" nillable="true" />
</sequence>
</complexType>
- <complexType name="simpleMethod">
<sequence />
</complexType>
- <complexType name="simpleMethodResponse">
- <sequence>
<element name="result" type="string" nillable="true" />
</sequence>
</complexType>
<element name="calling" type="tns:calling" />
<element name="callingResponse" type="tns:callingResponse" />
<element name="simpleMethod" type="tns:simpleMethod" />
<element name="simpleMethodResponse" type="tns:simpleMethodResponse" />
</schema>
</types>
- <message name="TestWebServiceSEI_calling">
<part name="parameters" element="ns2:calling" />
</message>
- <message name="TestWebServiceSEI_callingResponse">
<part name="result" element="ns2:callingResponse" />
</message>
- <message name="TestWebServiceSEI_simpleMethod">
<part name="parameters" element="ns2:simpleMethod" />
</message>
- <message name="TestWebServiceSEI_simpleMethodResponse">
<part name="result" element="ns2:simpleMethodResponse" />
</message>
- <portType name="TestWebServiceSEI">
- <operation name="calling">
<input message="tns:TestWebServiceSEI_calling" />
<output message="tns:TestWebServiceSEI_callingResponse" />
</operation>
- <operation name="simpleMethod">
<input message="tns:TestWebServiceSEI_simpleMethod" />
<output message="tns:TestWebServiceSEI_simpleMethodResponse" />
</operation>
</portType>
- <binding name="TestWebServiceSEIBinding" type="tns:TestWebServiceSEI">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
- <operation name="calling">
<soap:operation soapAction="" />
- <input>
<soap:body use="literal" />
</input>
- <output>
<soap:body use="literal" />
</output>
</operation>
- <operation name="simpleMethod">
<soap:operation soapAction="" />
- <input>
<soap:body use="literal" />
</input>
- <output>
<soap:body use="literal" />
</output>
</operation>
</binding>
- <service name="TestWebService">
- <port name="TestWebServiceSEIPort" binding="tns:TestWebServiceSEIBinding">
<soap:address location="http://fsal:8082/WebApp/TestWebService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />
</port>
</service>
</definitions>


As you can see, there are two methods provided. The php-file for invokation looks like this (focused on the substantial part):

Quote:
$client = new soapclient('http://localhost:8082/WebApp/TestWebService?WSDL', true);
// Check for an error
$err = $client->getError();
if ($err) {
// Display the error
echo '<h2>Constructor error</h2><pre>' . $err . '</pre>';

}
// Call the SOAP method
$parameters = array('String_1' => 'txt', 'String_2' => 'txt', 'String_3' => 'txt');
$result = $client->call('calling', $parameters);


It should result in $result containing a string, but actually it only leads to buggy nowhere. I'm sure the web service works just fine, I've tested it with a Java client.

Here's some exception info, just in case...

Quote:
2005-05-10 22:14:40.205834 soapclient: faultcode = env:Client<br>
2005-05-10 22:14:40.205943 soapclient: faultstring = JAXRPCTIE01: Ausnahmefehler beim Bearbeiten der Anforderung: Nicht erkannter Vorgang: parameters<br>


So what's the problem?

Using the NuSoap-wizard led to the following code which doesn't work too.

Quote:
// Nusoap library 'nusoap.php' should be available through include_path directive
require_once('nusoap.php');

// set the URL or path to the WSDL document
$wsdl = "http://localhost:8082/WebApp/TestWebService?WSDL";

// instantiate the SOAP client object
$soap = new soapclient($wsdl,"wsdl");

// get the SOAP proxy object, which allows you to call the methods directly
$proxy = $soap->getProxy();

// set parameter parameters (calling)
$parameters = array(String_1=>"txt",String_2=>"txt",String_3=>"txt");

// get the result, a native PHP type, such as an array or string
$result = $proxy->calling($parameters);


Thanks in advance for your help.
View user's profileFind all posts by seniorkaozSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7875
Reply with quote
Quote:
I'm sure the web service works just fine, I've tested it with a Java client

If Java calls Java correctly even through a web services (soap) protocol, it does not mean the web service works just fine or nusoap does not work.
To get whole the picture, would you please submit Java sources too?
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 18 Aug 2005
Posts: 5
Reply with quote
I don't have access to the java - files right now, maybe some more debug-information could help:

Quote:
2005-05-11 00:33:34.647390 soapclient: instantiating wsdl class with doc: http://localhost:8082/WebApp/TestWebService?WSDL
2005-05-11 00:33:34.648055 wsdl: initial wsdl URL: http://localhost:8082/WebApp/TestWebService?WSDL
2005-05-11 00:33:34.648274 wsdl: getting WSDL http(s) URL http://localhost:8082/WebApp/TestWebService?WSDL
2005-05-11 00:33:34.649382 soap_transport_http: scheme = http
2005-05-11 00:33:34.649565 soap_transport_http: host = localhost
2005-05-11 00:33:34.649682 soap_transport_http: port = 8082
2005-05-11 00:33:34.649788 soap_transport_http: path = /WebApp/TestWebService
2005-05-11 00:33:34.649900 soap_transport_http: query = WSDL
2005-05-11 00:33:34.650263 soap_transport_http: entered send() with data of length: 0
2005-05-11 00:33:34.650444 soap_transport_http: connect connection_timeout 0, response_timeout 30, scheme http, host localhost, port 8082
2005-05-11 00:33:34.650572 soap_transport_http: calling fsockopen with host localhost connection_timeout 0
2005-05-11 00:33:34.662786 soap_transport_http: set response timeout to 30
2005-05-11 00:33:34.663946 soap_transport_http: socket connected
2005-05-11 00:33:34.664238 soap_transport_http: HTTP request: GET /WebApp/TestWebService?WSDL HTTP/1.1
2005-05-11 00:33:34.664385 soap_transport_http: HTTP header: Host: localhost:8082
2005-05-11 00:33:34.664504 soap_transport_http: HTTP header: User-Agent: NuSOAP/0.7.1 (1.91)
2005-05-11 00:33:34.664619 soap_transport_http: HTTP header: Accept-Encoding: gzip, deflate
2005-05-11 00:33:34.664731 soap_transport_http: HTTP header: Connection: close
2005-05-11 00:33:34.664860 soap_transport_http: HTTP header: Content-Length: 0
2005-05-11 00:33:34.665144 soap_transport_http: wrote data to socket, length = 169
2005-05-11 00:33:40.928177 soap_transport_http: read line of 17 bytes: HTTP/1.1 200 OK
2005-05-11 00:33:40.928446 soap_transport_http: read line of 27 bytes: X-Powered-By: Servlet/2.4
2005-05-11 00:33:40.928586 soap_transport_http: read line of 24 bytes: Content-Type: text/xml
2005-05-11 00:33:40.928725 soap_transport_http: read line of 37 bytes: Date: Tue, 10 May 2005 22:33:40 GMT
2005-05-11 00:33:40.928869 soap_transport_http: read line of 44 bytes: Server: Sun-Java-System/Application-Server
2005-05-11 00:33:40.929009 soap_transport_http: read line of 19 bytes: Connection: close
2005-05-11 00:33:40.929149 soap_transport_http: read line of 2 bytes:
2005-05-11 00:33:40.929404 soap_transport_http: found end of headers after length 170
2005-05-11 00:33:40.929934 soap_transport_http: want to read content to EOF
2005-05-11 00:33:40.930702 soap_transport_http: read buffer of 3307 bytes
2005-05-11 00:33:41.013237 soap_transport_http: read buffer of 0 bytes
2005-05-11 00:33:41.013485 soap_transport_http: read to EOF
2005-05-11 00:33:41.013591 soap_transport_http: read body of length 3307
2005-05-11 00:33:41.013740 soap_transport_http: received a total of 3477 bytes of data from server
2005-05-11 00:33:41.014178 soap_transport_http: closed socket
2005-05-11 00:33:41.014405 soap_transport_http: No Content-Encoding header
2005-05-11 00:33:41.014545 soap_transport_http: end of send()
2005-05-11 00:33:41.014773 wsdl: got WSDL URL
2005-05-11 00:33:41.014871 wsdl: Parse WSDL
2005-05-11 00:33:41.016656 wsdl: Parsing WSDL schema
2005-05-11 00:33:41.017050 XMLSchema: xmlschema class instantiated, inside constructor
2005-05-11 00:33:41.018562 XMLSchema: <urn:TestWebService/types> processing named complexType calling
2005-05-11 00:33:41.019380 XMLSchema: <urn:TestWebService/types> processing typed element String_1 of type string
2005-05-11 00:33:41.019554 XMLSchema: <urn:TestWebService/types> used default namespace to make type http://www.w3.org/2001/XMLSchema:string
2005-05-11 00:33:41.019898 XMLSchema: <urn:TestWebService/types> done processing element String_1
2005-05-11 00:33:41.023243 XMLSchema: <urn:TestWebService/types> processing typed element String_2 of type string
2005-05-11 00:33:41.023485 XMLSchema: <urn:TestWebService/types> used default namespace to make type http://www.w3.org/2001/XMLSchema:string
2005-05-11 00:33:41.023870 XMLSchema: <urn:TestWebService/types> done processing element String_2
2005-05-11 00:33:41.024462 XMLSchema: <urn:TestWebService/types> processing typed element String_3 of type string
2005-05-11 00:33:41.024748 XMLSchema: <urn:TestWebService/types> used default namespace to make type http://www.w3.org/2001/XMLSchema:string
2005-05-11 00:33:41.025064 XMLSchema: <urn:TestWebService/types> done processing element String_3
2005-05-11 00:33:41.025421 XMLSchema: <urn:TestWebService/types> done processing complexType calling
2005-05-11 00:33:41.025850 XMLSchema: <urn:TestWebService/types> processing named complexType callingResponse
2005-05-11 00:33:41.026624 XMLSchema: <urn:TestWebService/types> processing typed element result of type string
2005-05-11 00:33:41.026791 XMLSchema: <urn:TestWebService/types> used default namespace to make type http://www.w3.org/2001/XMLSchema:string
2005-05-11 00:33:41.027115 XMLSchema: <urn:TestWebService/types> done processing element result
2005-05-11 00:33:41.027423 XMLSchema: <urn:TestWebService/types> done processing complexType callingResponse
2005-05-11 00:33:41.027863 XMLSchema: <urn:TestWebService/types> processing named complexType simpleMethod
2005-05-11 00:33:41.028468 XMLSchema: <urn:TestWebService/types> done processing complexType simpleMethod
2005-05-11 00:33:41.028850 XMLSchema: <urn:TestWebService/types> processing named complexType simpleMethodResponse
2005-05-11 00:33:41.029591 XMLSchema: <urn:TestWebService/types> processing typed element result of type string
2005-05-11 00:33:41.029774 XMLSchema: <urn:TestWebService/types> used default namespace to make type http://www.w3.org/2001/XMLSchema:string
2005-05-11 00:33:41.030095 XMLSchema: <urn:TestWebService/types> done processing element result
2005-05-11 00:33:41.030731 XMLSchema: <urn:TestWebService/types> done processing complexType simpleMethodResponse
2005-05-11 00:33:41.031335 XMLSchema: <urn:TestWebService/types> processing typed element calling of type urn:TestWebService/types:calling
2005-05-11 00:33:41.031692 XMLSchema: <urn:TestWebService/types> done processing element calling
2005-05-11 00:33:41.032196 XMLSchema: <urn:TestWebService/types> processing typed element callingResponse of type urn:TestWebService/types:callingResponse
2005-05-11 00:33:41.032527 XMLSchema: <urn:TestWebService/types> done processing element callingResponse
2005-05-11 00:33:41.033033 XMLSchema: <urn:TestWebService/types> processing typed element simpleMethod of type urn:TestWebService/types:simpleMethod
2005-05-11 00:33:41.033401 XMLSchema: <urn:TestWebService/types> done processing element simpleMethod
2005-05-11 00:33:41.033910 XMLSchema: <urn:TestWebService/types> processing typed element simpleMethodResponse of type urn:TestWebService/types:simpleMethodResponse
2005-05-11 00:33:41.034352 XMLSchema: <urn:TestWebService/types> done processing element simpleMethodResponse
2005-05-11 00:33:41.034599 wsdl: Parsing WSDL schema done
2005-05-11 00:33:41.035424 wsdl: msg TestWebServiceSEI_calling: found part parameters: parameters,urn:TestWebService/types:calling
2005-05-11 00:33:41.036160 wsdl: msg TestWebServiceSEI_callingResponse: found part result: result,urn:TestWebService/types:callingResponse
2005-05-11 00:33:41.036876 wsdl: msg TestWebServiceSEI_simpleMethod: found part parameters: parameters,urn:TestWebService/types:simpleMethod
2005-05-11 00:33:41.037580 wsdl: msg TestWebServiceSEI_simpleMethodResponse: found part result: result,urn:TestWebService/types:simpleMethodResponse
2005-05-11 00:33:41.038311 wsdl: portType TestWebServiceSEI operation: calling
2005-05-11 00:33:41.039338 wsdl: portType TestWebServiceSEI operation: simpleMethod
2005-05-11 00:33:41.041060 wsdl: current binding: TestWebServiceSEIBinding of portType: urn:TestWebService/wsdl:TestWebServiceSEI
2005-05-11 00:33:41.041876 wsdl: current binding operation: calling
2005-05-11 00:33:41.043478 wsdl: current binding operation: simpleMethod
2005-05-11 00:33:41.045195 wsdl: current service: TestWebService
2005-05-11 00:33:41.045792 wsdl: current port: TestWebServiceSEIPort
2005-05-11 00:33:41.047871 wsdl: Parsing WSDL done
2005-05-11 00:33:41.048284 wsdl: post-parse data gathering for calling
2005-05-11 00:33:41.048650 wsdl: post-parse data gathering for simpleMethod
2005-05-11 00:33:41.049176 soapclient: got 2 operations from wsdl http://localhost:8082/WebApp/TestWebService?WSDL
2005-05-11 00:33:41.049455 soapclient: call: operation=calling, namespace=http://tempuri_org, soapAction=, rpcParams=, style=rpc, use=encoded, endpointType=wsdl
params=array(3) {
["String_1"]=>
string(5) "Willi"
["String_2"]=>
string(3) "Bla"
["String_3"]=>
string(3) "Bla"
}
headers=bool(false)
2005-05-11 00:33:41.049756 soapclient: found operation
opData=array(9) {
["name"]=>
string(7) "calling"
["binding"]=>
string(24) "TestWebServiceSEIBinding"
["endpoint"]=>
string(38) "http://fsal:8082/WebApp/TestWebService"
["soapAction"]=>
string(0) ""
["input"]=>
array(3) {
["use"]=>
string(7) "literal"
["message"]=>
string(25) "TestWebServiceSEI_calling"
["parts"]=>
array(1) {
["parameters"]=>
string(32) "urn:TestWebService/types:calling"
}
}
["output"]=>
array(3) {
["use"]=>
string(7) "literal"
["message"]=>
string(33) "TestWebServiceSEI_callingResponse"
["parts"]=>
array(1) {
["result"]=>
string(40) "urn:TestWebService/types:callingResponse"
}
}
["style"]=>
string(8) "document"
["transport"]=>
string(36) "http://schemas.xmlsoap.org/soap/http"
["documentation"]=>
string(0) ""
}
2005-05-11 00:33:41.050206 soapclient: serializing param array for WSDL operation calling
2005-05-11 00:33:41.052888 wsdl: in serializeRPCParameters: operation=calling, direction=input, XMLSchemaVersion=http://www.w3.org/2001/XMLSchema
parameters=array(3) {
["String_1"]=>
string(5) "Willi"
["String_2"]=>
string(3) "Bla"
["String_3"]=>
string(3) "Bla"
}
2005-05-11 00:33:41.053210 wsdl: opData:
array(9) {
["name"]=>
string(7) "calling"
["binding"]=>
string(24) "TestWebServiceSEIBinding"
["endpoint"]=>
string(38) "http://fsal:8082/WebApp/TestWebService"
["soapAction"]=>
string(0) ""
["input"]=>
array(3) {
["use"]=>
string(7) "literal"
["message"]=>
string(25) "TestWebServiceSEI_calling"
["parts"]=>
array(1) {
["parameters"]=>
string(32) "urn:TestWebService/types:calling"
}
}
["output"]=>
array(3) {
["use"]=>
string(7) "literal"
["message"]=>
string(33) "TestWebServiceSEI_callingResponse"
["parts"]=>
array(1) {
["result"]=>
string(40) "urn:TestWebService/types:callingResponse"
}
}
["style"]=>
string(8) "document"
["transport"]=>
string(36) "http://schemas.xmlsoap.org/soap/http"
["documentation"]=>
string(0) ""
}
2005-05-11 00:33:41.053507 wsdl: have 1 part(s) to serialize
2005-05-11 00:33:41.053667 wsdl: have 3 parameter(s) provided as arrayStruct to serialize
2005-05-11 00:33:41.053804 wsdl: serializing part "parameters" of type "urn:TestWebService/types:calling"
2005-05-11 00:33:41.053923 wsdl: calling serializeType w/null param
2005-05-11 00:33:41.054104 wsdl: in serializeType: name=parameters, type=urn:TestWebService/types:calling, use=literal, encodingStyle=, unqualified=qualified
value=NULL
2005-05-11 00:33:41.054539 wsdl: in serializeType: got a prefixed type: calling, urn:TestWebService/types
2005-05-11 00:33:41.054738 wsdl: in getTypeDef: type=calling, ns=urn:TestWebService/types
2005-05-11 00:33:41.054863 wsdl: in getTypeDef: have schema for namespace urn:TestWebService/types
2005-05-11 00:33:41.055041 XMLSchema: <urn:TestWebService/types> in getTypeDef, found complexType calling
2005-05-11 00:33:41.055217 wsdl: in serializeType: found typeDef
typeDef=array(5) {
["name"]=>
string(7) "calling"
["typeClass"]=>
string(11) "complexType"
["phpType"]=>
string(6) "struct"
["compositor"]=>
string(8) "sequence"
["elements"]=>
array(3) {
["String_1"]=>
array(4) {
["name"]=>
string(8) "String_1"
["type"]=>
string(39) "http://www.w3.org/2001/XMLSchema:string"
["nillable"]=>
string(4) "true"
["form"]=>
string(11) "unqualified"
}
["String_2"]=>
array(4) {
["name"]=>
string(8) "String_2"
["type"]=>
string(39) "http://www.w3.org/2001/XMLSchema:string"
["nillable"]=>
string(4) "true"
["form"]=>
string(11) "unqualified"
}
["String_3"]=>
array(4) {
["name"]=>
string(8) "String_3"
["type"]=>
string(39) "http://www.w3.org/2001/XMLSchema:string"
["nillable"]=>
string(4) "true"
["form"]=>
string(11) "unqualified"
}
}
}
2005-05-11 00:33:41.055553 wsdl: in serializeType: uqType: calling, ns: urn:TestWebService/types, phptype: struct, arrayType:
2005-05-11 00:33:41.055713 wsdl: in serializeType: returning: <parameters/>
2005-05-11 00:33:41.055847 wsdl: serializeRPCParameters returning: <parameters/>
2005-05-11 00:33:41.056284 soapclient: endpoint=http://fsal:8082/WebApp/TestWebService, soapAction=, namespace=http://tempuri_org, style=document, use=literal, encodingStyle=
2005-05-11 00:33:41.056413 soapclient: SOAP message length=415 contents (max 1000 bytes)=<?xml version="1.0" encoding="ISO-8859-1"?><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:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:si="http://soapinterop.org/xsd" xmlns:ns3625="http://tempuri_org"><SOAP-ENV:Body><parameters/></SOAP-ENV:Body></SOAP-ENV:Envelope>
2005-05-11 00:33:41.056599 soapclient: transporting via HTTP
2005-05-11 00:33:41.057528 soapclient: sending message, length=415
2005-05-11 00:33:41.056852 soap_transport_http: scheme = http
2005-05-11 00:33:41.056966 soap_transport_http: host = fsal
2005-05-11 00:33:41.057077 soap_transport_http: port = 8082
2005-05-11 00:33:41.057184 soap_transport_http: path = /WebApp/TestWebService
2005-05-11 00:33:41.057673 soap_transport_http: entered send() with data of length: 415
2005-05-11 00:33:41.057836 soap_transport_http: connect connection_timeout 0, response_timeout 30, scheme http, host fsal, port 8082
2005-05-11 00:33:41.057957 soap_transport_http: calling fsockopen with host fsal connection_timeout 0
2005-05-11 00:33:41.067031 soap_transport_http: set response timeout to 30
2005-05-11 00:33:41.067257 soap_transport_http: socket connected
2005-05-11 00:33:41.067526 soap_transport_http: HTTP request: POST /WebApp/TestWebService HTTP/1.0
2005-05-11 00:33:41.067671 soap_transport_http: HTTP header: Host: fsal:8082
2005-05-11 00:33:41.067792 soap_transport_http: HTTP header: User-Agent: NuSOAP/0.7.1 (1.91)
2005-05-11 00:33:41.067904 soap_transport_http: HTTP header: Content-Type: text/xml; charset=ISO-8859-1
2005-05-11 00:33:41.068017 soap_transport_http: HTTP header: SOAPAction: ""
2005-05-11 00:33:41.068132 soap_transport_http: HTTP header: Content-Length: 415
2005-05-11 00:33:41.068783 soap_transport_http: wrote data to socket, length = 586
2005-05-11 00:33:41.158765 soap_transport_http: read line of 36 bytes: HTTP/1.1 500 Internal Server Error
2005-05-11 00:33:41.159041 soap_transport_http: read line of 27 bytes: X-Powered-By: Servlet/2.4
2005-05-11 00:33:41.159185 soap_transport_http: read line of 16 bytes: SOAPAction: ""
2005-05-11 00:33:41.159326 soap_transport_http: read line of 38 bytes: Content-Type: text/xml;charset=utf-8
2005-05-11 00:33:41.159467 soap_transport_http: read line of 37 bytes: Date: Tue, 10 May 2005 22:33:40 GMT
2005-05-11 00:33:41.159620 soap_transport_http: read line of 44 bytes: Server: Sun-Java-System/Application-Server
2005-05-11 00:33:41.159761 soap_transport_http: read line of 19 bytes: Connection: close
2005-05-11 00:33:41.159901 soap_transport_http: read line of 2 bytes:
2005-05-11 00:33:41.160188 soap_transport_http: found end of headers after length 219
2005-05-11 00:33:41.163880 soap_transport_http: want to read content to EOF
2005-05-11 00:33:41.164686 soap_transport_http: read buffer of 513 bytes
2005-05-11 00:33:41.182960 soap_transport_http: read buffer of 0 bytes
2005-05-11 00:33:41.183205 soap_transport_http: read to EOF
2005-05-11 00:33:41.183309 soap_transport_http: read body of length 513
2005-05-11 00:33:41.183423 soap_transport_http: received a total of 732 bytes of data from server
2005-05-11 00:33:41.183831 soap_transport_http: closed socket
2005-05-11 00:33:41.184059 soap_transport_http: No Content-Encoding header
2005-05-11 00:33:41.184198 soap_transport_http: end of send()
2005-05-11 00:33:41.184569 soapclient: got response, length=513 type=text/xml;charset=utf-8
2005-05-11 00:33:41.184711 soapclient: Entering parseResponse() for data of length 513 and type text/xml;charset=utf-8
2005-05-11 00:33:41.184850 soapclient: Got response encoding: utf-8
2005-05-11 00:33:41.185006 soapclient: Use encoding: UTF-8 when creating soap_parser
2005-05-11 00:33:41.185505 soap_parser: Charset from HTTP Content-Type matches encoding from XML declaration
2005-05-11 00:33:41.185637 soap_parser: Entering soap_parser(), length=513, encoding=UTF-8
2005-05-11 00:33:41.188431 soap_parser: found root struct Fault, pos 2
2005-05-11 00:33:41.189502 soap_parser: inside buildVal() for Fault(pos 2) of type struct
2005-05-11 00:33:41.190260 soap_parser: parsed successfully, found root struct: 2 of name Fault
2005-05-11 00:33:41.190900 soapclient: sent message successfully and got a(n) array
return=array(2) {
["faultcode"]=>
string(10) "env:Client"
["faultstring"]=>
string(96) "JAXRPCTIE01: Ausnahmefehler beim Bearbeiten der Anforderung: Nicht erkannter Vorgang: parameters"
}
2005-05-11 00:33:41.191333 soapclient: got fault
2005-05-11 00:33:41.191516 soapclient: faultcode = env:Client<br>
2005-05-11 00:33:41.191630 soapclient: faultstring = JAXRPCTIE01: Ausnahmefehler beim Bearbeiten der Anforderung: Nicht erkannter Vorgang: parameters<br>
View user's profileFind all posts by seniorkaozSend private message


Joined: 18 Aug 2005
Posts: 5
Reply with quote
Testing the Web Service with SOAPScope showed:

This SOAP-Request...

Quote:
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="urn:TestWebService/types" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<tns:calling>
<String_1>teststring</String_1>
<String_2>teststring</String_2>
<String_3>teststring</String_3>
</tns:calling>
</soap:Body>
</soap:Envelope>




...results in this SOAP-Response:

Quote:
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns: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:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns0="urn:TestWebService/types"><env:Body><ns0:callingResponse><result>Some Response String</result></ns0:callingResponse></env:Body></env:Envelope>


So the Web Service does seem to work, doesn't it?
View user's profileFind all posts by seniorkaozSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7875
Reply with quote
the result appears to be in "urn:TestWebService/types" namespace. You may want to try to use this namespace when forming the call too. Hope it helps.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 18 Aug 2005
Posts: 5
Reply with quote
How could this be done using NuSoap? Thnx in advance for your patience. Wink
View user's profileFind all posts by seniorkaozSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7875
Reply with quote
with your own sample, it would be

Code:
$client = new soapclient('http://localhost:8082/WebApp/TestWebService?
...
$result = $client->call('calling', $parameters, $namespace);


I'd also recommend you read this article
http://www.scottnichol.com/nusoapprog.htm
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 18 Aug 2005
Posts: 5
Reply with quote
You were right, it was just a matter of namespace. Maybe the NuSoap Wizard might consider that in the next release? No offense intended, pal, the whole NuSphere project and everything related to it is pretty damn cool anyway. Smile Thanks, again!
View user's profileFind all posts by seniorkaozSend private message
invocation prob. plz help *solved*
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic