NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
PLEASE HELP cant figure out whats causing problems SOAP Call


Joined: 21 Aug 2007
Posts: 11
Reply with quote
Dear all

I have a scenario as follows:

My client:

$wsdlfile="http://xxxxxxxxxxx_WSDL.xml?wsdl";
$client=new soapclient($wsdlfile, true); //, true);
$client->soap_defencoding = 'utf-8';

$nameSpace = "xxxxxxx";

Tried this:

$parameters = "<SubscriptionStatus xmlns='http://localhost/'>";
$parameters .= "<ISPID>xx</ISPID>";
$parameters .= "<ISPPassword>yy</ISPPassword>";
$parameters .= "<ISPUserID>Angelo1</ISPUserID>";
$parameters .= "</SubscriptionStatus>";

$result = $client->call('SubscriptionStatus', $parameters, $nameSpace);

To call the SubscriptionStatus process.


I have also tried:
/*$Request = array(
array(
'ISPID' => 'xx',
'ISPPassword' => 'yy',
'ISPUserID'=>'Angelo1')
);


$result = $client->call('SubscriptionStatus', $Response, $nameSpace);


The request must look like this:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<SubscriptionStatus xmlns="http://localhost/">
<ISPID>xx</ISPID>
<ISPPassword>yy</ISPPassword>
<ISPUserID>Angelo1</ISPUserID>
</SubscriptionStatus>
</soap:Body>
</soap:Envelope>


But in fact it looks like this:

<?xml version="1.0" encoding="utf-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:si="http://soapinterop.org/xsd"
xmlns:tns="http://devbit.openbit.com/SOS/">
<SOAP-ENV:Body>
<SubscriptionStatus xmlns="http://...">
<SubscriptionStatus xmlns="http://..">
<ISPID>lighthouse</ISPID>
<ISPPassword>***</ISPPassword>
<ISPUserID>Angelo1</ISPUserID>
</SubscriptionStatus>
</SubscriptionStatus>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

as you can see the

<SubscriptionStatus xmlns="http://...">

has been repeated. This is causing my problems. I am not sure what is causing it? Does it have something to do with name spaces? OR the way the client object is created?


This is a straight forward call but I have been searching through so many posts and have not had any luck. Please any links or any ideas are most welcome.

Thanks
View user's profileFind all posts by zlogicSend private message


Joined: 21 Aug 2007
Posts: 11
Reply with quote
ANYONE??

I have really been searching high and low and cant find a solution as well as no one replying to my threads. Is it possible that it could be a server issue? I might be forced to look at other PHP and SOAP libraries if I cannot get the solution and find out why the element is being displayed twice. Still very strange.

Thanks in advance
View user's profileFind all posts by zlogicSend private message
PLEASE HELP cant figure out whats causing problems SOAP Call
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic