|
Re: No Elemnt Arrays and Complex DataType: msg#00057php.nusoap.general
Are you sure the service is returning an array with one element? I am pretty sure the current version of nusoap would return an array with no elements. Are you able to capture the response either at the client or over the network? Also, are you using a recent version of nusoap? 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: <ihernandez@xxxxxxxxxxxxxxxxx> To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> Sent: Wednesday, April 14, 2004 4:20 PM Subject: [Nusoap-general] 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 _______________________________________________ Nusoap-general mailing list Nusoap-general@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/nusoap-general ------------------------------------------------------- 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_id70&alloc_id638&op=click |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | No Elemnt Arrays and Complex DataType: 00057, ihernandez |
|---|---|
| Next by Date: | new bie help - a bit confused - my first mail: 00057, aji |
| Previous by Thread: | No Elemnt Arrays and Complex DataTypei: 00057, ihernandez |
| Next by Thread: | new bie help - a bit confused - my first mail: 00057, aji |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |