|
Re: Problem in Structure variables: msg#00126php.nusoap.general
The current version of NuSOAP does not overlook some errors that the version I used to write the sample did. In hellowsdl2client.php, the line $result = $client->call('hello', array('name' => $person)); needs to be $result = $client->call('hello', array('person' => $person)); in order to correctly match the WSDL for the service. Scott Nichol Do not send e-mail directly to this e-mail address, because it is filtered to accept only mail from specific mail lists. ----- Original Message ----- From: "Pothapragada Siddartha" <siddartha@xxxxxxxxxxxxxxxxxx> To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> Sent: Tuesday, May 25, 2004 2:44 PM Subject: [Nusoap-general] Problem in Structure variables > Hello, > I have downloaded the source zip file. I also tried to implement > the example as given in the website.But there seems to be a problem.(in > hellowsdl2.php , hellowsdl2client.php). > The variables passed as structure variables in this example > ($person['firstname'],$person['age'] and $person['gender']) are not > printed on the browser. Can you please tell me why?? > > > i.e; Hello ??? It is nice to meet a ??? year old ??? > > I have also pasted the DEBUG info below:- > > > > Result > Array > ( > [greeting] => Hello, . It is nice to meet a year old . > [winner] => > ) > Request > POST /hellowsdl2.php HTTP/1.0 > User-Agent: NuSOAP/0.6.7 (1.75) > Host: localhost > Content-Type: text/xml; charset=ISO-8859-1 > SOAPAction: "urn:hellowsdl2#hello" > Content-Length: 536 > > <?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:si="http://soapinterop.org/xsd" > xmlns:tns="urn:hellowsdl2"><SOAP-ENV:Body><tns:hello > xmlns:tns="urn:hellowsdl2"><person > xsi:nil="true"/></tns:hello></SOAP-ENV:Body></SOAP-ENV:Envelope> > Response > HTTP/1.1 200 OK > Date: Tue, 25 May 2004 18:23:38 GMT > Server: NuSOAP Server v0.6.7 > X-Powered-By: PHP/4.3.3 > X-SOAP-Server: NuSOAP/0.6.7 (1.75) > Content-Length: 709 > Connection: close > Content-Type: text/xml; charset=ISO-8859-1 > > <?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:si="http://soapinterop.org/xsd" > xmlns:tns="urn:hellowsdl2"><SOAP-ENV:Body><ns1:helloResponse > xmlns:ns1="urn:hellowsdl2"><return > xsi:type="tns:SweepstakesGreeting"><greeting xsi:type="xsd:string">Hello, . > It is nice to meet a year old .</greeting><winner > xsi:type="xsd:boolean">false</winner></return></ns1:helloResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> > Debug > soapclient: instantiating wsdl class with doc: > http://localhost/hellowsdl2.php?wsdl > soapclient: wsdl debug... > wsdl: initial wsdl URL: http://localhost/hellowsdl2.php?wsdl > wsdl: getting WSDL http(s) URL http://localhost/hellowsdl2.php?wsdl > wsdl: transport debug data... > soap_transport_http: scheme = http > soap_transport_http: host = localhost > soap_transport_http: path = /hellowsdl2.php > soap_transport_http: query = wsdl > soap_transport_http: entered send() with data of length: 0 > soap_transport_http: connect connection_timeout 0, response_timeout 30, > scheme http, host localhost, port 80 > soap_transport_http: calling fsockopen with host localhost > soap_transport_http: socket connected > soap_transport_http: wrote data to socket, length = 106 > soap_transport_http: read line of 17 bytes: HTTP/1.1 200 OK > soap_transport_http: read line of 37 bytes: Date: Tue, 25 May 2004 18:23:38 > GMT > soap_transport_http: read line of 32 bytes: Server: Apache/2.0.47 (Fedora) > soap_transport_http: read line of 25 bytes: X-Powered-By: PHP/4.3.3 > soap_transport_http: read line of 19 bytes: Connection: close > soap_transport_http: read line of 44 bytes: Content-Type: text/xml; > charset=ISO-8859-1 > soap_transport_http: read line of 2 bytes: > soap_transport_http: found end of headers after length 176 > soap_transport_http: want to read content to EOF > soap_transport_http: read buffer of 2211 bytes > soap_transport_http: read to EOF > soap_transport_http: read body of length 2211 > soap_transport_http: received a total of 2387 bytes of data from server > soap_transport_http: closed socket > soap_transport_http: end of send() > > xmlschema: xmlschema class instantiated, inside constructor > xmlschema: <urn:hellowsdl2> processing named complexType Person > xmlschema: <urn:hellowsdl2> processing typed element firstname of type > http://www.w3.org/2001/XMLSchema:string > xmlschema: <urn:hellowsdl2> processing typed element age of type > http://www.w3.org/2001/XMLSchema:int > xmlschema: <urn:hellowsdl2> processing typed element gender of type > http://www.w3.org/2001/XMLSchema:string > xmlschema: <urn:hellowsdl2> processing named complexType SweepstakesGreeting > xmlschema: <urn:hellowsdl2> processing typed element greeting of type > http://www.w3.org/2001/XMLSchema:string > xmlschema: <urn:hellowsdl2> processing typed element winner of type > http://www.w3.org/2001/XMLSchema:boolean > wsdl: msg helloRequest: found part person: person,urn:hellowsdl2:Person > wsdl: msg helloResponse: found part return: > return,urn:hellowsdl2:SweepstakesGreeting > wsdl: portType hellowsdl2PortType operation: hello > wsdl: current binding: hellowsdl2Binding of portType: > urn:hellowsdl2:hellowsdl2PortType > wsdl: current binding operation: hello > wsdl: current service: hellowsdl2 > wsdl: current port: hellowsdl2Port > wsdl: post-parse data gathering for hello > > soapclient: got 1 operations from wsdl http://localhost/hellowsdl2.php?wsdl > soapclient: call: hello, Array, , , , rpc, encoded; endpointType: wsdl > soapclient: name -> hello > soapclient: binding -> hellowsdl2Binding > soapclient: endpoint -> http://localhost/hellowsdl2.php > soapclient: soapAction -> urn:hellowsdl2#hello > soapclient: style -> rpc > soapclient: input -> Array > soapclient: output -> Array > soapclient: transport -> http://schemas.xmlsoap.org/soap/http > soapclient: documentation -> > soapclient: serializing param array for WSDL operation hello > soapclient: wsdl debug: > wsdl: in serializeRPCParameters with operation hello, direction input and 1 > param(s), and xml schema version http://www.w3.org/2001/XMLSchema > wsdl: array(9) { > ["name"]=> > string(5) "hello" > ["binding"]=> > string(17) "hellowsdl2Binding" > ["endpoint"]=> > string(31) "http://localhost/hellowsdl2.php" > ["soapAction"]=> > string(20) "urn:hellowsdl2#hello" > ["style"]=> > string(3) "rpc" > ["input"]=> > array(5) { > ["use"]=> > string(7) "encoded" > ["namespace"]=> > string(14) "urn:hellowsdl2" > ["encodingStyle"]=> > string(41) "http://schemas.xmlsoap.org/soap/encoding/" > ["message"]=> > string(12) "helloRequest" > ["parts"]=> > array(1) { > ["person"]=> > string(21) "urn:hellowsdl2:Person" > } > } > ["output"]=> > array(5) { > ["use"]=> > string(7) "encoded" > ["namespace"]=> > string(14) "urn:hellowsdl2" > ["encodingStyle"]=> > string(41) "http://schemas.xmlsoap.org/soap/encoding/" > ["message"]=> > string(13) "helloResponse" > ["parts"]=> > array(1) { > ["return"]=> > string(34) "urn:hellowsdl2:SweepstakesGreeting" > } > } > ["transport"]=> > string(36) "http://schemas.xmlsoap.org/soap/http" > ["documentation"]=> > string(0) "" > } > > wsdl: use=encoded > wsdl: got 1 part(s) > wsdl: have arrayStruct parameters > wsdl: serializing part "person" of type "urn:hellowsdl2:Person" > wsdl: calling serializeType w/null param > wsdl: in serializeType: person, urn:hellowsdl2:Person, , encoded, > wsdl: got a prefixed type: Person, urn:hellowsdl2 > xmlschema: <urn:hellowsdl2> in getTypeDef, found complexType Person > wsdl: typedef, name: Person > wsdl: typedef, typeClass: complexType > wsdl: typedef, phpType: struct > wsdl: typedef, compositor: all > wsdl: typedef, elements: Array > wsdl: serializeType: uqType: Person, ns: urn:hellowsdl2, phptype: struct, > arrayType: > > soapclient: wrapping RPC request with encoded method element > soapclient: endpoint: http://localhost/hellowsdl2.php, soapAction: > urn:hellowsdl2#hello, namespace: urn:hellowsdl2, style: rpc, use: encoded > soapclient: SOAP message length: 536 contents: <?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:si="http://soapinterop.org/xsd" > xmlns:tns="urn:hellowsdl2"><SOAP-ENV:Body><tns:hello > xmlns:tns="urn:hellowsdl2"><person > xsi:nil="true"/></tns:hello></SOAP-ENV:Body></SOAP-ENV:Envelope> > soapclient: transporting via HTTP > soapclient: sending message, length: 536 > soapclient: transport debug data... > soap_transport_http: scheme = http > soap_transport_http: host = localhost > soap_transport_http: path = /hellowsdl2.php > soap_transport_http: entered send() with data of length: 536 > soap_transport_http: connect connection_timeout 0, response_timeout 30, > scheme http, host localhost, port 80 > soap_transport_http: calling fsockopen with host localhost > soap_transport_http: socket connected > soap_transport_http: wrote data to socket, length = 720 > soap_transport_http: read line of 17 bytes: HTTP/1.1 200 OK > soap_transport_http: read line of 37 bytes: Date: Tue, 25 May 2004 18:23:38 > GMT > soap_transport_http: read line of 30 bytes: Server: NuSOAP Server v0.6.7 > soap_transport_http: read line of 25 bytes: X-Powered-By: PHP/4.3.3 > soap_transport_http: read line of 36 bytes: X-SOAP-Server: NuSOAP/0.6.7 (1.75) > soap_transport_http: read line of 21 bytes: Content-Length: 709 > soap_transport_http: read line of 19 bytes: Connection: close > soap_transport_http: read line of 44 bytes: Content-Type: text/xml; > charset=ISO-8859-1 > soap_transport_http: read line of 2 bytes: > soap_transport_http: found end of headers after length 231 > soap_transport_http: want to read content of length 709 > soap_transport_http: read buffer of 709 bytes > soap_transport_http: read body of length 709 > soap_transport_http: received a total of 940 bytes of data from server > soap_transport_http: closed socket > soap_transport_http: end of send() > > soapclient: got response, length: 709 type: text/xml; charset=ISO-8859-1 > soapclient: Entering parseResponse() for data of length 709 and type > text/xml; charset=ISO-8859-1 > soapclient: Got response encoding: ISO-8859-1 > soapclient: Use encoding: ISO-8859-1 when creating soap_parser > soapclient: soap_parser: Entering soap_parser(), length=709, > encoding=ISO-8859-1 > soap_parser: found root struct helloResponse, pos 2 > soap_parser: inside buildVal() for return(pos 3) of type SweepstakesGreeting > soap_parser: inside buildVal() for helloResponse(pos 2) of type struct > soap_parser: parsed successfully, found root struct: 2 of name helloResponse > > soapclient: sent message successfully and got a(n) array back > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Nusoap-general mailing list > Nusoap-general@xxxxxxxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/nusoap-general > ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id?66&op=click |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Problem in Structure variables: 00126, Pothapragada Siddartha |
|---|---|
| Next by Date: | htaccess login credentials: 00126, Jan Horsman |
| Previous by Thread: | Problem in Structure variablesi: 00126, Pothapragada Siddartha |
| Next by Thread: | htaccess login credentials: 00126, Jan Horsman |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |