logo       

Re: NuSoap, default Responses?: msg#00147

php.nusoap.general

Subject: Re: NuSoap, default Responses?

The parameters for the soap_fault constructor correspond to the SOAP Fault
elements from the SOAP 1.1 spec
(http://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383507). Often, you just
specify faultcode as 'Server' and faultstring as the error message.

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: Wednesday, May 26, 2004 5:52 PM
Subject: Re: [Nusoap-general] NuSoap, default Responses?


Thanks Scott!

I've been looking for a better explanation of the args that soap_fault
needs, do you have an example of soap_fault?.

Thanks !
El mar, 25-05-2004 a las 17:20, Scott Nichol escribió:
> 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