#28239 [Opn]: No results returned on SOAP call, no error given
| From: | millz at incogen dot com | Date: | Fri, 30 Apr 2004 19:52:59 +0000 |
| Subject: | #28239 [Opn]: No results returned on SOAP call, no error given | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-59077@lists.php.net to get a copy of this message | ||
ID: 28239
User updated by: millz at incogen dot com
Reported By: millz at incogen dot com
Status: Open
Bug Type: SOAP related
Operating System: Red Hat 9
PHP Version: 5.0.0RC2
New Comment:
the method is called reverser(), not reverse as I sometimes said in my
original report
I did not show the part of the code where $body is print()'d out.
Previous Comments:
------------------------------------------------------------------------
[2004-04-30 21:51:11] millz at incogen dot com
Description:
------------
Making a call to a simple perl-based SOAP service is failing with no
error/exception (the result is null/empty).
I use the nusoap.php package to make the same call and it succeeds.
The soap method reverse returns the reverse of the inputted string.
I am trying to call the reverser method from this WSDL:
http://jabba.incogen.com:8888/soapStringHandler.wsdl
like this (see
code for more details):
$results = $builtinSoap->reverser( "asd" );
I get no result, even though it works via nusoap.php, perl soap
clients, .NET soap clients, etc.
I assume this is just user error, if so I apologize.
Reproduce code:
---------------
$wsdlUrl = 'http://jabba.incogen.com:8888/soapStringHandler.wsdl';
try {
$builtinSoap = new SoapClient( $wsdlUrl );
// print_r( $builtinSoap->__getFunctions() );
$results = $builtinSoap->reverser( "asd" );
if(!$results){print "Got no results from builtin soap!";}
// $builtinSoap->__getLastResponse();
$body .= 'Result returned from web service: <b>' . $results
. '</b>';
} catch (SoapFault $fault) {
trigger_error("SOAP Fault: (faultcode: {$fault->faultcode},
faultstring: {$fault->faulstring})", E_ERROR);
}
Expected result:
----------------
I would expect "dsa" as the result
Actual result:
--------------
NULL/nothing
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28239&edit=1