NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
nusoap/wsdl/nested arrays


Joined: 25 Oct 2005
Posts: 5
Reply with quote
I need to pass an array into a wsdl SOAP service using NuSoap.
The problem is that the array does not have a set or defined list of parameters.

Therefore in my SOAP service I cannot register a structure because I will never know exactly how many parameters will be passed in.

e.g. In the Client

$param_couriers=array(
'items'=>array(
'item_1'=>array('item_num'=>'1'),
'item_2'=> array('item_num'=>'2'),
'item_3'=> array('item_num'=>'3')
)
);

$data->_couriers = $soapclient->call('get_couriers',array('cours_parsIn' => $param_couriers));


e.g. In the Server (I cant do following as dont know how many items will pass in.

$server->wsdl->addComplexType(
'cours_parsIn',
'complexType',
'struct',
'all',
'',
array(
'item_1'=> array ('name'=>'item_1,'type'=>'xsd:string'),
'item_2'=> array('name'=>'item_2','type'=>'xsd:string'),
'item_3'=> array('name'=>'item_3','type'=>'xsd:string')
)
);


Any ideas?? Mad
View user's profileFind all posts by mr_cheSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
problems-sending-array-from-nusoap-client-t1570.html
View user's profileFind all posts by dmitriSend private messageVisit poster's website
nusoap/wsdl/nested arrays
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