logo       

No Elemnt Arrays and Complex DataType: msg#00056

php.nusoap.general

Subject: No Elemnt Arrays and Complex DataType

Hello. I have a datatype lie this:
$server->wsdl->addComplexType(
'Airport',
'complexType',
'struct',
'all',
'',
array(
'code' => array('name'=>'code','type'=>'xsd:string'),
'description' =>
array('name'=>'description','type'=>'xsd:string')
)
);

And other one that is like this:

$server->wsdl->addComplexType(
'AirportArray',
'complexType',
'array',
'',
'SOAP-ENC:Array',
array(),
array(

array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:Airport[]')
),
'tns:Airport'
);


They work really good, but i need now to pass a response when there is no
aviable data. So i need a zero element array. i make it this way:

$airports = array();
return $ariports;

but it still seems to have one element...
How must i pass a zero element array and how must i check it on the client
side??
thanks


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click


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

News | FAQ | advertise