You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by John Hauf <j...@hauf.org> on 2006/07/04 17:31:35 UTC
Axis Fault - Error 500
Hello,
we are using Axis 1.3 in connection with a Macromedia Flash client.
Unfortunately the Flash-client is not able to parse the SOAP-XML when
the server sends back a SOAP-Fault, because there is a HTTP/1.1 500
Internal Server Error in the HTTP-Header.
Is there a possibility to send back a HTTP 200 status-message in the
header, though a SOAP-Fault has happened and a RemoteException was thrown?
Thank you in advance
John
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Axis Fault - Error 500
Posted by John Hauf <j...@hauf.org>.
Hello,
I found the solution for my problem with the Macromedia Flash client and
the HTTP 500 status code from Axis here:
http://www.intangibleinc.com/movabletype/archives/000007.html
Thank you
John
Anne Thomas Manes wrote:
> Per the spec, if you return a SOAP Fault, you must do so using HTTP 500.
> If you want to return an HTTP 200 message, you must catch the
> exception and return your own error mesage in the SOAP Body rather
> than a SOAP Fault. To do so, you must your document/literal, and you
> must define your reposnse message type using the <choice> compositor
> (so that it can return either a successful message or your error
> message.
>
> Anne
>
> On 7/4/06, John Hauf <j...@hauf.org> wrote:
>> Hello,
>>
>> we are using Axis 1.3 in connection with a Macromedia Flash client.
>> Unfortunately the Flash-client is not able to parse the SOAP-XML when
>> the server sends back a SOAP-Fault, because there is a HTTP/1.1 500
>> Internal Server Error in the HTTP-Header.
>> Is there a possibility to send back a HTTP 200 status-message in the
>> header, though a SOAP-Fault has happened and a RemoteException was
>> thrown?
>>
>> Thank you in advance
>> John
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Axis Fault - Error 500
Posted by Anne Thomas Manes <at...@gmail.com>.
Per the spec, if you return a SOAP Fault, you must do so using HTTP 500.
If you want to return an HTTP 200 message, you must catch the
exception and return your own error mesage in the SOAP Body rather
than a SOAP Fault. To do so, you must your document/literal, and you
must define your reposnse message type using the <choice> compositor
(so that it can return either a successful message or your error
message.
Anne
On 7/4/06, John Hauf <j...@hauf.org> wrote:
> Hello,
>
> we are using Axis 1.3 in connection with a Macromedia Flash client.
> Unfortunately the Flash-client is not able to parse the SOAP-XML when
> the server sends back a SOAP-Fault, because there is a HTTP/1.1 500
> Internal Server Error in the HTTP-Header.
> Is there a possibility to send back a HTTP 200 status-message in the
> header, though a SOAP-Fault has happened and a RemoteException was thrown?
>
> Thank you in advance
> John
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org