View Single Post
  #1  
Old 08-22-2006, 12:52 PM
jigsaw jigsaw is offline
Junior Member
 
Join Date: Aug 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jigsaw is on a distinguished road
Unhappy trouble getting a response from the SOAP server

Hello members

I'm having trouble getting a response from the SOAP server. Basically, I'm calling this getMsg function from the server, the server logs show that I'm successful in connecting to it and calling the function. However, the logs also shows that the values of the parameters that the server is getting are null.

Here's my code (very basic...):

<?php
$client = new SoapClient(null, array('location' => 'http://myip.com:1234', 'uri '=> 'urn:myURI'));
$param = array(new SoapParam('msg', 'hello'), new SoapParam('response', 'hi'));


$out = "";
try{
$out = $client->___soapCall("getMsg", $param);
}catch(SoapFault $e){
echo $e->faultstring;
}
if($out){
echo "Resp: ";
}else{
echo "Error: ";
}
echo $out;
?>

Notice that it's in non-WSDL mo -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  Webmaster Forums - View Single Post - trouble getting a response from the SOAP server
View Single Post
  #1  
Old 08-22-2006, 12:52 PM
jigsaw jigsaw is offline
Junior Member
 
Join Date: Aug 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jigsaw is on a distinguished road
Unhappy trouble getting a response from the SOAP server

Hello members

I'm having trouble getting a response from the SOAP server. Basically, I'm calling this getMsg function from the server, the server logs show that I'm successful in connecting to it and calling the function. However, the logs also shows that the values of the parameters that the server is getting are null.

Here's my code (very basic...):

<?php
$client = new SoapClient(null, array('location' => 'http://myip.com:1234', 'uri '=> 'urn:myURI'));
$param = array(new SoapParam('msg', 'hello'), new SoapParam('response', 'hi'));


$out = "";
try{
$out = $client->___soapCall("getMsg", $param);
}catch(SoapFault $e){
echo $e->faultstring;
}
if($out){
echo "Resp: ";
}else{
echo "Error: ";
}
echo $out;
?>

Notice that it's in non-WSDL mo -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote