PDA

View Full Version : Soap error tutorial



Dabrowski
12 Aug 2010, 09:52 PM
I'm writing code to connect to a SOAP service. I think I've got the syntax and convention down because a few of the functions work. I've gotten ones with no argument to work, and ones with one or two arguments to to work.

Now, when I have a problem, I use:


try {
$resultado = $this->zendClient->Function($func_arg);

}
catch (Exception $ex) {
var_dump($ex);
}

and I get


object(SoapFault)#4 (10) {
["message":protected]=>
string(46) "Failed to process request. No result returned."
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
int(0)
["file":protected]=>
string(87) "C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Soap\Client.php"
["line":protected]=>
int(1113)
["trace":"Exception":private]=>
array(6) {
[0]=>
array(6) {
["file"]=>
string(87) "C:\Program Files (x86)\Zend\ZendServer\share\ZendFramework\library\Zend\Soap\Client.php"
["line"]=>
int(1113)
["function"]=>
string(10) "__soapCall"
["class"]=>
string(10) "SoapClient"
["type"]=>
string(2) "->"
["args"]=>
array(5) {
[0]=>
string(14) "GetMemberNotes"
[1]=>
array(1) {
[0]=>
array(1) {
["request"]=>
array(1) {
["MemberID"]=>
string(6) "237420"
}
}
}
[2]=>
NULL
[3]=>
NULL
[4]=>
&array(0) {
}
}
}
[1]=>
array(4) {
["function"]=>
string(6) "__call"
["class"]=>
string(16) "Zend_Soap_Client"
["type"]=>
string(2) "->"
["args"]=>
array(2) {
[0]=>
string(14) "GetMemberNotes"
[1]=>
array(1) {
[0]=>
array(1) {
["request"]=>
array(1) {
["MemberID"]=>
string(6) "237420"
}
}
}
}
}
[2]=>
array(6) {
["file"]=>
string(64) "C:\Program Files (x86)\Zend\Apache2\htdocs\dbg\class_service.php"
["line"]=>
int(139)
["function"]=>
string(14) "GetMemberNotes"
["class"]=>
string(16) "Zend_Soap_Client"
["type"]=>
string(2) "->"
["args"]=>
array(1) {
[0]=>
array(1) {
["request"]=>
array(1) {
["MemberID"]=>
string(6) "237420"
}
}
}
}
[3]=>
array(6) {
["file"]=>
string(64) "C:\Program Files (x86)\Zend\Apache2\htdocs\dbg\class_service.php"
["line"]=>
int(55)
["function"]=>
string(14) "GetMemberNotes"
["class"]=>
string(7) "service"
["type"]=>
string(2) "->"
["args"]=>
array(1) {
[0]=>
&array(1) {
["MemberID"]=>
string(6) "237420"
}
}
}
[4]=>
array(6) {
["file"]=>
string(58) "C:\Program Files (x86)\Zend\Apache2\htdocs\dbg\process.php"
["line"]=>
int(21)
["function"]=>
string(8) "makeCall"
["class"]=>
string(7) "service"
["type"]=>
string(2) "->"
["args"]=>
array(2) {
[0]=>
&string(14) "GetMemberNotes"
[1]=>
&array(1) {
["MemberID"]=>
string(6) "237420"
}
}
}
[5]=>
array(4) {
["file"]=>
string(56) "C:\Program Files (x86)\Zend\Apache2\htdocs\dbg\index.php"
["line"]=>
int(26)
["args"]=>
array(1) {
[0]=>
string(58) "C:\Program Files (x86)\Zend\Apache2\htdocs\dbg\process.php"
}
["function"]=>
string(7) "include"
}
}
["previous":"Exception":private]=>
NULL
["faultstring"]=>
string(46) "Failed to process request. No result returned."
["faultcode"]=>
string(13) "soap:Receiver"
["detail"]=>
string(0) ""
}


I'm not sure where to look to interpret that output.