logo       

NuSoap, default Responses?: msg#00136

php.nusoap.general

Subject: NuSoap, default Responses?

Hi!

I have a webservice that I wrote with nusoap, in this webservice I have
many functions, most of them are returning arrays, but sometimes the
array couldn't be create by different possibilities:

* The user is not valid
* There was no data..

So, exists in nusoap something like xmlrpcresp?, that I can also return
errors instead of 'arrays'?.

I'm asking this cause my .NET client sometimes crashes when was
expecting an array, and the only data that receives is a string or an
integer.

For example, in XMLRPC (that i hate), exists a:

return new xmlrpcresp(0, $xmlrpcerruser+3, 'Bad login');

So, when the .NET client gets the data and found a XMLRPCRESP it stops
and 'prints' the message (Bad Login).

Should I do this in nusuap or use Exceptions in the .NET client?

Thanks!
Pablo
--
Pablo Fischer Sandoval (pablo [arroba/at] pablo.com.mx)
Fingerprint: 5973 0F10 543F 54AE 1E41 EC81 0840 A10A 74A4 E5C0
http://www.pablo.com.mx
http://www.debianmexico.org

Attachment: signature.asc
Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente

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

News | FAQ | advertise