From b482e375d055bb67aba7b7e65a45118f5392a53e Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Mon, 27 Aug 2001 11:38:45 +0000 Subject: [PATCH] Adjust for struct return in soap --- phpgwapi/inc/class.interserver.inc.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/phpgwapi/inc/class.interserver.inc.php b/phpgwapi/inc/class.interserver.inc.php index 405c0ac29e..aa0d4dcabe 100644 --- a/phpgwapi/inc/class.interserver.inc.php +++ b/phpgwapi/inc/class.interserver.inc.php @@ -275,7 +275,7 @@ } } - $soap_message = CreateObject('phpgwapi.soapmsg',$method_name,$arr,'http://soapinterop.org'); + $soap_message = CreateObject('phpgwapi.soapmsg',$method_name,$arr); /* print_r($soap_message);exit; */ $soap = CreateObject('phpgwapi.soap_client',$uri,$hostpart); $soap->username = $this->sessionid; @@ -284,9 +284,8 @@ if($r = $soap->send($soap_message,$method_name)) { $this->debug('
I got this value back
' . htmlentities($r->serialize()) . '

',$debug); - $v = $r->decode(); - $this->result = $v['return']; - return $v; + $this->result = $r->decode(); + return $this->result; } else { @@ -322,18 +321,17 @@ } } } - $soap_message = CreateObject('phpgwapi.soapmsg',$method_name,$arr,'http://soapinterop.org'); + $soap_message = CreateObject('phpgwapi.soapmsg',$method_name,$arr); $soap = CreateObject('phpgwapi.soap_client',$uri,$hostpart); $soap->username = $this->sessionid; $soap->password = $this->kp3; /* _debug_array($soap_message); */ if($r = $soap->send($soap_message,$method_name)) { - _debug_array($soap->outgoing_payload); + _debug_array(htmlentities($soap->outgoing_payload)); $this->debug('
I got this value back
' . htmlentities($r->serialize()) . '

',$debug); - $v = $r->decode(); - $this->result = $v['return']; - return $v; + $this->result = $r->decode(); + return $this->result; } else {