logo       

Re: Problem with SOAP envelope?: msg#00090

php.nusoap.general

Subject: Re: Problem with SOAP envelope?

When using the NuSOAP soapclient::call() method, I can't seem to
get the debug data from the server, even after trying to turn it on. I
am curious, does the server always turn the value in the SOAP env
body into an array? I looked at the code and that appears to be the
case. However, why is my data used as XML when I use the NuSOAP
client but used as an associative array when I send the data via HTTP
POST?
That just seems too odd...

Chris

> array when submitted via HTTP post. The following is the debug
> data. As you can see, when it does the "var_dump()", the data is
> an array.
>
> <!--
>
> soap_server: entering parse_request() on 12:47 2004-04-27
> soap_server: Accept:
>
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=
> 0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1
> soap_server: Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> soap_server: Accept-Encoding: gzip,deflate
> soap_server: Accept-Language: en-us,en;q=0.5
> soap_server: Connection: keep-alive
> soap_server: Content-Length: 3530
> soap_server: Content-Type: application/x-www-form-urlencoded
> soap_server: Host: eazypro.wild.net
> soap_server: Keep-Alive: 300
> soap_server: Referer:
> http://eazypro.wild.net/interactive/cron_scripts/test/test_soap_post.php
> soap_server: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
> rv:1.6) Gecko/20040206 Firefox/0.8
> soap_server: got character encoding: UTF-8
> soap_server: parser debug:
> soap_parser: Entering soap_parser(), length=2493, encoding=UTF-8
> soap_parser: found root struct PolicyInterfaceWebService, pos 2
> soap_parser: inside buildVal() for UserRecord(pos 5) of type
> soap_parser: inside buildVal() for AttachedEndorsements(pos 30) of type
> soap_parser: inside buildVal() for AttachedEndorsements(pos 35) of type
> soap_parser: inside buildVal() for AttachedEndorsements(pos 40) of type
> soap_parser: inside buildVal() for AttachedEndorsements(pos 45) of type
> soap_parser: inside buildVal() for IntegrusEPLLitePolicyInterface(pos 4)
of
> type
> soap_parser: inside buildVal() for sXMLString(pos 3) of type string
> soap_parser: inside buildVal() for PolicyInterfaceWebService(pos 2) of
type
> struct
> soap_parser: parsed successfully, found root struct: 2 of name
> PolicyInterfaceWebService
>
> soap_server: method name: PolicyInterfaceWebService
> soap_server: calling parser->get_response()
> soap_server: leaving parse_request() on 12:47 2004-04-27
> soap_server: entering invoke_method
> soap_server: method 'PolicyInterfaceWebService' exists
> soap_server: params var dump array(1) {
> ["sXMLString"]=>
> array(1) {
> ["IntegrusEPLLitePolicyInterface"]=>
> array(16) {
> [0]=>
> array(13) {
> ["firstname"]=>
> string(4) "Test"
> ["lastname"]=>
> string(4) "User"
> ["company"]=>
> string(31) "Zed Zed Webservice Test Company"
> ["address1"]=>
> string(9) "Address 1"
> ["address2"]=>
> string(9) "Address 2"
> ["city"]=>
> string(4) "City"
> ["state"]=>
> string(5) "State"
> ["country"]=>
> string(13) "United States"
> ["zip"]=>
> string(5) "70433"
> ["phone"]=>
> string(10) "1231231234"
> ["fax"]=>
> string(10) "1231231235"
> ["email"]=>
> string(14) "chris@xxxxxxxx"
> ["billing_email"]=>
> string(14) "chris@xxxxxxxx"
> }
> [1]=>
> string(11) "Corporation"
> [2]=>
> string(6) "444220"
> [3]=>
> string(6) "Retail"
> [4]=>
> string(49) "Nurseries, Garden Centers, and Farm Supply Stores"
> [5]=>
> string(2) "25"
> [6]=>
> string(2) "10"
> [7]=>
> string(3) "Yes"
> [8]=>
> string(2) "No"
> [9]=>
> string(2) "No"
> [10]=>
> string(15) "Full Prior Acts"
> [11]=>
> string(2) "No"
> [12]=>
> array(4) {
> ["endorsement_type"]=>
> string(10) "additional"
> ["premium"]=>
> string(4) "3.14"
> ["premium_due"]=>
> string(4) "3.14"
> ["endorsement_body"]=>
> string(35) "Test Additional Premium Endorsement"
> }
> [13]=>
> array(4) {
> ["endorsement_type"]=>
> string(4) "text"
> ["premium"]=>
> string(1) "0"
> ["premium_due"]=>
> string(1) "0"
> ["endorsement_body"]=>
> string(21) "Test Text Endorsement"
> }
> [14]=>
> array(4) {
> ["endorsement_type"]=>
> string(10) "additional"
> ["premium"]=>
> string(4) "3.14"
> ["premium_due"]=>
> string(4) "3.14"
> ["endorsement_body"]=>
> string(35) "Test Additional Premium Endorsement"
> }
> [15]=>
> array(4) {
> ["endorsement_type"]=>
> string(6) "return"
> ["premium"]=>
> string(4) "3.14"
> ["premium_due"]=>
> string(4) "3.14"
> ["endorsement_body"]=>
> string(31) "Test Return Premium Endorsement"
> }
> }
> }
> }
>
> soap_server: calling 'PolicyInterfaceWebService' with params
> soap_server: calling method using call_user_func_array()
> soap_server: response var dumpstring(328) "<?xml version="1.0"
> encoding="UTF-8"?>
> <WebServiceResult>
> <NewFailureMessages>
> <FailureMessage>[errormessage] : Start tag expected, '<' not found
> <br />
> [line] : 1<br />
> [col] : 1<br />
> [directory] : /tmp<br />
> [file] : /tmp/a0493d0c91bf3d47b9daa58575448b88.xml<br />
> </FailureMessage>
> </NewFailureMessages>
> </WebServiceResult>
> "
>
> soap_server: leaving invoke_method: called method
PolicyInterfaceWebService,
> received <?xml version="1.0" encoding="UTF-8"?>
> <WebServiceResult>
> <NewFailureMessages>
> <FailureMessage>[errormessage] : Start tag expected, '<' not found
> <br />
> [line] : 1<br />
> [col] : 1<br />
> [directory] : /tmp<br />
> [file] : /tmp/a0493d0c91bf3d47b9daa58575448b88.xml<br />
> </FailureMessage>
> </NewFailureMessages>
> </WebServiceResult>
> of typestring
> soap_server: Entering serialize_return
> soap_server: got a(n) string from method
> soap_server: serializing return value
> soap_server: in serialize_val: <?xml version="1.0" encoding="UTF-8"?>
> <WebServiceResult>
> <NewFailureMessages>
> <FailureMessage>[errormessage] : Start tag expected, '<' not found
> <br />
> [line] : 1<br />
> [col] : 1<br />
> [directory] : /tmp<br />
> [file] : /tmp/a0493d0c91bf3d47b9daa58575448b88.xml<br />
> </FailureMessage>
> </NewFailureMessages>
> </WebServiceResult>
> , return, , , , , encoded
> soap_server: return val: string(472) "<return
xsi:type="xsd:string">&lt;?xml
> version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
> &lt;WebServiceResult&gt;
> &lt;NewFailureMessages&gt;
> &lt;FailureMessage&gt;[errormessage] : Start tag expected,
&apos;&lt;&apos;
> not found
> &lt;br /&gt;
> [line] : 1&lt;br /&gt;
> [col] : 1&lt;br /&gt;
> [directory] : /tmp&lt;br /&gt;
> [file] : /tmp/a0493d0c91bf3d47b9daa58575448b88.xml&lt;br /&gt;
> &lt;/FailureMessage&gt;
> &lt;/NewFailureMessages&gt;
> &lt;/WebServiceResult&gt;
> </return>"
>
> soap_server: serializing response
> soap_server: Leaving serialize_return
> soap_server: Enter send_response
>
> -->
>
> Chris
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
> For a limited time only, get FREE Ground shipping on all orders of $35
> or more. Hurry up and shop folks, this offer expires April 30th!
> http://www.thinkgeek.com/freeshipping/?cpg=12297
> _______________________________________________
> Nusoap-general mailing list
> Nusoap-general@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/nusoap-general
>




-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise