logo       

Need help with passing complex type to server: msg#00041

php.nusoap.general

Subject: Need help with passing complex type to server

Hi,

i need to pass complex argument to SOAP server calling function SetCar and i
can not figure out which structure in my php code i should create. Can somebody
give me a clue? Is it possible with NuSOAP?
part of my code and WSDL file is attached.

thanx a lot
Martin


$client = new soapclient($serverpath, 'wsdl');
$pr=$client->getProxy();
$TC = "some session string";
...
$my_car= ???
$result=$pr->SetCar($TC, $my_car);

WSDL:
<complexType name="ArrayOfstring">
<complexContent>
<restriction base="SOAP-ENC:Array">
<attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="string[]"/>
</restriction>
</complexContent>
</complexType>

<complexType name="Car">
<sequence>
<element name="id" type="int"/>
<element name="type" type="string"/>
<element name="prize" type="int"/>
<element name="specification" type="typens:ArrayOfstring"/>
</sequence>
</complexType>

<message name="import.SetCar">
<part name="TC" type="xsd:string"/>
<part name="C" type="typens:Car"/>
</message>

--------------------
Příjemný design. Příjemnější cena! SIEMENS C62 již od 977 Kč.
http://user.centrum.cz/redir.php?url=http://www.oskarmobil.cz/handsets/handset.php





-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise