» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > PHP Programming and Tips

PHP Programming and Tips Discuss about PHP programming and Share Tips. Ask questions about Scripting and Errors.

Reply
 
Thread Tools Display Modes
  #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
Revenue Sharing Ads ( ?):
  #2  
Old 08-22-2006, 12:53 PM
raydex raydex is offline
OSP Starters
 
Join Date: Aug 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
raydex is on a distinguished road
Default

Here's the debug:


Code:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:myURI">
<SOAP-ENV:Body>
<ns1:getMsg>
<param0>123412341</param0>
<param1>1</param1>
</ns1:getMsg>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

I think I've found where the problem is... I think that you should change the tag <param0> into <message> and <param1> into <response>. -- 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
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
to know host's server response? pikal Reseller Hosting Forum 1 02-17-2007 05:57 AM
Mighty Server Upgrades Dedicated Server Plan outsourcingplans Web Hosting Industry 0 02-14-2006 10:20 PM
Mighty Server Upgrades Dedicated Server Plan outsourcingplans Web Hosting Industry 0 02-13-2006 09:46 PM
VMware Introduces Free VMware Server outsourcingplans Web Hosting Industry 0 02-06-2006 09:54 PM
Opalis Achieves Certification for Microsoft Windows Server 2003 outsourcingplans Web Hosting Industry 0 01-26-2006 07:04 PM


All times are GMT. The time now is 09:05 PM.