logo       

Re: NuSoap, default Responses?: msg#00138

php.nusoap.general

Subject: Re: NuSoap, default Responses?

I think you should return a SOAP Fault. You do this by either returning an
instance of soap_fault from your method(s) or by calling the soap_server::fault
method. I generally return a soap_fault.

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: "Pablo Fischer" <pablo@xxxxxxxxxxxx>
To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, May 25, 2004 2:22 PM
Subject: [Nusoap-general] 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



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id?66&op=click


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

News | FAQ | advertise