php-groups.com | Post Question | Search | About | Groups | Contact | Register | Login


New in This Group

[SOAP] PHP Web Service:Uncaught SoapFault exception
1/3/2010 4:49:26 PM

[SOAP] migrate SOAP function from PHP4 to PHP5
11/30/2009 5:23:06 PM

[SOAP] SOAP_SINGLE_ELEMENT_ARRAYS doesn't work
11/27/2009 10:12:34 AM

HTML Form Generation From WSDL
11/19/2009 10:39:16 AM

E_ERROR in SoapClient
7/30/2009 10:26:52 AM

Locate tphe Male G Spot For Body Shaking Orgasmms
6/21/2009 12:25:04 AM

__soapCall
6/2/2009 8:07:19 PM

PHP SOAP namespace issue
4/23/2009 5:23:40 PM

RE: Inconsitant data
3/31/2009 3:04:58 PM

Inconsitant data
3/31/2009 3:04:14 PM

Problem with getting value from SoapResponse Reply

Group: php.soap Subscribe Posted:5/26/2009 5:24:06 PM Replies:0 Views:14 Items(0)
Hi,

I've the problem that the SOAP Extension does not seem to parse the
response correctly. A small example:
I call a Webservice using a WSDL:
$objClient = new SoapClient(
"mywsdl.wsdl"
,array(
'trace'=>1
,'encoding'=>'ISO-8859-1'
,'location'=>'http://SOAPURL'
)
);
and I call a function supplying the required parameters:
$objResult = $objClient->execute(
array(
'context'=> $this->arrContext
,'input'=> $arrInput
,'output'=> $arrOutput
)
);

The XML-SOAP-Response contains a paramter:
<SESSION_TOKEN xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:nil="false">819118e2f0f2f1f6f2e1</SESSION_TOKEN>

Problem: The resulting Soap-Object does NOT contain the parameter
value - the SESSION_TOKEN member is just NULL.

The previous version of the webservice returned the response in a different way:
<p828:SESSION_TOKEN>819118e2f0f2f1f6f2e1</p828:SESSION_TOKEN>
This kind of answer is parsed correctly by PHP - the Soap-Object
containts the SESSION_TOKEN member with the corresponding value.

Why is the value not parsed from the new response? Looks for me like a
PHP bug, as the response looks like a valid structure. Any hints?
darkserv...@gmail.com (Dark Servant)
5/26/2009 5:24:06 PM





Reply:
| or Email(not shown): Name: | Register | Login

Alert me when someone responds to this posting.











Newest Articles

note 97095 added to soapclient.soapclient
4/1/2010 5:58:19 AM

note 97094 added to function.sqlite-changes
4/1/2010 5:06:46 AM

note 97093 added to function.sqlite-changes
4/1/2010 5:06:21 AM

note 97092 added to ref.xmlrpc
4/1/2010 4:52:18 AM

note 97091 added to function.var-export
4/1/2010 3:32:03 AM