|
Re: NuSoap, default Responses?: msg#00146php.nusoap.general
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
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Soap Header: 00146, Scott Nichol |
|---|---|
| Next by Date: | Re: NuSoap, default Responses?: 00146, Scott Nichol |
| Previous by Thread: | Re: NuSoap, default Responses?i: 00146, Scott Nichol |
| Next by Thread: | Re: NuSoap, default Responses?: 00146, Scott Nichol |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |