Re: SOAP Client - return null value
| From: | Filip Serewa | Date: | Sat, 21 Aug 2004 22:52:36 +0000 |
| Subject: | Re: SOAP Client - return null value | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-1599@lists.php.net to get a copy of this message | ||
Hi
Problem:
code:
$wsdl = new
SoapClient(http://wsrp.netunitysoftware.com/WSRPTestService/WSRPTestService.
asmx?Operation=WSDL
,array('trace' => 1));
$news = $wsdl->register($RegistrationData_Type);
var_dump($news);
soap request:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="urn:oasis:names:tc:wsrp:v1:types">
<SOAP-ENV:Body>
<ns1:register><ns1:consumerName>name</ns1:consumerName>
<ns1:consumerAgent>test.1.0</ns1:consumerAgent>
<ns1:methodGetSupported>0</ns1:methodGetSupported>
<ns1:consumerModes>wsrp:view</ns1:consumerModes>
<ns1:consumerModes>wsrp:edit</ns1:consumerModes>
<ns1:consumerWindowStates>wsrp:view</ns1:consumerWindowStates>
<ns1:consumerWindowStates>wsrp:edit</ns1:consumerWindowStates>
</ns1:register>
</SOAP-ENV:Body></SOAP-ENV:Envelope>
soap response:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<registerResponse xmlns="urn:oasis:names:tc:wsrp:v1:types">
<registrationHandle>1f9c4223-ce73-4cdf-b24f-fdd15d2066ad</registrationHandle
>
</registerResponse>
</soap:Body>
</soap:Envelope>
result:
NULL
Any idea why the result is NULL? "registrationHandle" has value so where is
the
problem? Bug maybe?
--
pozdrawiam
Filip Serewa
www.mobi.delfnet.pl