logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: Soap structure problems: msg#00014

Subject: Re: Soap structure problems
Is

    $soapclient = new soapclient('xxx');

actually

    $soapclient = new soapclient('xxx', true);

I am guessing it is, and that you get "Array" instead of a serialized array 
because the format of the parameters you are providing does not exactly match 
the WSDL.  Can you post the WSDL?

Scott Nichol

Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.
----- Original Message ----- 
From: "Jörgen Nilsson" <jorgen.nilsson@xxxxxxxxx>
To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, December 05, 2005 10:14 AM
Subject: [Nusoap-general] Soap structure problems


Hey!

I have tried for quite a while now to get the right formatting for  
call / send the xml sructure below. But I just can't do it. I get the  
first elements right, but I always get an "Array" (See soap query  
below) in the middle. Is there anyone more experienced NuSoap user  
who can help me with this?

Best regards
Jörgen

The structure I want to send
------------------------------------------------------------------------ 
-------------
<serviceData xmlns="http://tempuri.org/";>
<Service Name="Test">
<Parameters>
        <ActorId>7</ActorId>
<Password>testPAss</Password>
<Address1>Smith street</Address1>
</Parameters>
<Culture>En</Culture>
</Service>
</serviceData>

My code
------------------------------------------------------------------------ 
--------------
require_once('nusoap/lib/nusoap.php');

$soapclient = new soapclient('xxx');

$err = $soapclient->getError();
if ($err) { print '<h2>Constructor error</h2><pre>' . $err . '</pre>'; }


$Parameters = array("ActorId" => "7", "Password" => "testPass",  
"Address1" => "Smith street");

$Service = array("Parameters" => $Parameters);

$serviceData = array("Service" => $Service);

$data = array("serviceData" => $serviceData);

$result = $soapclient->call("InvokeService", array("parameters" =>  
$data));

The soap query
------------------------------------------------------------------------ 
---------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<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:ns6203="http:// 
tempuri.org">
<SOAP-ENV:Body>
<InvokeService xmlns="http://tempuri.org/";>
<serviceData>Array</serviceData>
</InvokeService>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick
_______________________________________________
Nusoap-general mailing list
Nusoap-general@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/nusoap-general



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click


<Prev in Thread] Current Thread [Next in Thread>