Re: Intercepting HTTP status code in Transport

2008-11-04 Thread Amila Suriarachchi
try

axisFault.getFaultMessageContext().getProperty(HTTPConstants.MC_HTTP_STATUS_CODE);

thanks,
Amila.


On Mon, Nov 3, 2008 at 9:01 PM, Arien Kock <[EMAIL PROTECTED]> wrote:

>
> Hi mailinglist,
>
> When my ws client has trouble connecting to the service due to errors at
> the transport level, I'd like for there to be a way to detect HTTP status
> codes. Right now all I can do is catch an AxisFault that gets thrown when
> StAXSOAPModelBuilder stumbles on something it can't parse correctly
> which then doesn't tell me what the status code was.
>
> thanks,
> -Arien
>
> ===
>
> The information contained in this message and its attachments, if any, is
> confidential and privileged. It may be read, copied and used only by the
> intended recipient. If you have received this message in error, please
> contact the sender immediately by return e-mail and please in that case
> delete this message and its attachments, if any, without disclosure to any
> third party/person.
>
> The company does not accept liability for any errors or omissions in this
> message or its attachments, if any. The company does not guarantee that the
> integrity of this message or its attachments, if any, has been maintained or
> that this message or its attachments, if any, are free of viruses,
> interceptions or interference. Any recipient of this message or of its
> attachments, if any, is responsible for maintaining adequate
> protection-measures of its own systems against any incidents.
>
> ===
>
>
>



-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


Intercepting HTTP status code in Transport

2008-11-03 Thread Arien Kock
Hi mailinglist,

When my ws client has trouble connecting to the service due to errors at
the transport level, I'd like for there to be a way to detect HTTP status
codes. Right now all I can do is catch an AxisFault that gets thrown when
StAXSOAPModelBuilder stumbles on something it can't parse correctly 
which then doesn't tell me what the status code was. 

thanks,
-Arien
===
The information contained in this message and its attachments, if any, is 
confidential and privileged. It may be read, copied and used only by the 
intended recipient.  If you have received this message in error, please contact 
the sender immediately by return e-mail and please in that case delete this 
message and its attachments, if any, without disclosure  to any third 
party/person. 
The company does not accept liability for any errors or omissions in this 
message or its attachments, if any. The company does not guarantee that the 
integrity of this message or its attachments, if any, has been maintained or 
that this message or its attachments, if any, are free of viruses, 
interceptions or interference. Any recipient of this message or of its 
attachments, if any, is responsible for maintaining adequate 
protection-measures of its own systems against any incidents.
===