#29842 [Fbk->Opn]: soapclient return null value
| From: | mobi at delfnet dot pL | Date: | Thu, 26 Aug 2004 21:49:18 +0000 |
| Subject: | #29842 [Fbk->Opn]: soapclient return null value | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-65307@lists.php.net to get a copy of this message | ||
ID: 29842
User updated by: mobi at delfnet dot pL
Reported By: mobi at delfnet dot pL
-Status: Feedback
+Status: Open
Bug Type: SOAP related
Operating System: Win2000 SP4
-PHP Version: 5CVS-2004-08-25 (dev)
+PHP Version: 5CVS-2004-08-26 (dev)
Assigned To: dmitry
New Comment:
In my code above should be:
print_r($wsdl->register($RegistrationData));
//not $RegistrationData_Type
I have tried php5-win32-200408261830.zip snapshot and the return value
is still null.
Previous Comments:
------------------------------------------------------------------------
[2004-08-26 14:58:09] derick@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
Please try a snapshot dated AFTER Aug 26, 2004 13:00 GMT from
snaps.php.net then.
------------------------------------------------------------------------
[2004-08-26 14:53:11] dmitry@php.net
I cannot reproduce the bug.
I got "Consumer Name Parameter Missing" exception.
I hope, this is the same bug as #29844 that is just fixed in CVS.
------------------------------------------------------------------------
[2004-08-25 20:55:40] mobi at delfnet dot pL
Description:
------------
SOAP result is null (wsdl file is correct and WebService works).
The following pice of code explain the problem:
Reproduce code:
---------------
$wsdl = new
SoapClient('http://wsrp.netunitysoftware.com/WSRPTestService/WSRPTestService.asmx?Operation=WSDL',array('trace'
=> 1));
$RegistrationData =
array("consumerName" => "test",
"consumerAgent" => "test.1.0",
"methodGetSupported" => false,
"consumerModes" => array('wsrp:view','wsrp:edit'),
"consumerWindowStates" => array('wsrp:view','wsrp:edit'),
"consumerUserScopes" => array(),
"customUserProfileData" => array(),
"registrationProperties" => array(),
"extensions" => array());
print_r($wsdl->register($RegistrationData_Type));
Expected result:
----------------
SOAP RESULT:
<?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>
print:
Array
(
[registrationHandle] => 1f9c4223-ce73-4cdf-b24f-fdd15d2066ad
)
Actual result:
--------------
SOAP RESULT:
the same as bottom
print:
NULL
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29842&edit=1