axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samisa Abeysinghe <samisa.abeysin...@gmail.com>
Subject Re: Axis2C: how to check for SOAP fault
Date Thu, 04 Oct 2007 07:40:18 GMT
Stefano Pettini wrote:
> Hi,
>
> there is a "axis2_svc_client_get_last_response_has_fault", but doesn't 
> seem to work well (or, probably, I'm using it in the wrong way). Fault 
> received from Java JAX-WS implementations are detected, while faults 
> received from Axis2/C servers are not.
>
> Here's my piece of code. Don't consider it correct, as I just said, 
> sometimes works, sometimes not:
hmm, this is a strange error.
Could you please capture the SOAP messages that it works for and not 
work for and send those. That may help  identify the problem. I suppose 
there is something wrong with the SOAP versions in use, but that is only 
a guess.

Samisa...
>
>    response = axis2_svc_client_send_receive(axClient, axEnv, xml);
>
>    if (response)
>    {
>        if (axis2_svc_client_get_last_response_has_fault(axClient, axEnv))
>        {
>
>         FAULT
>
> Bye.
>
> PS.
> I'm back !! I had email problems, and I still have them, but I've 
> found a magic workaround :-)
>
> Stefano
>
> Michael Mole wrote:
>>
>> How can I check for a SOAP fault using my ret_node in the following 
>> statement:
>> axiom_node_t *ret_node = NULL;
>> ret_node =  axis2_svc_client_send_receive_with_op_qname( svc_client, 
>> env, op_qname, payload);
>>
>> Should I check the node type?
>>
>> Thanks,
>> Mike
>>
>> Michael J Molé
>> Software Engineer
>> IBM Software Group - Rational
>> (781)676-2710 
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>


-- 
Samisa Abeysinghe - Apche Axis2/C
"http://ws.apache.org/axis2/c/?Apache&nbsp;Axis2/C&nbsp;The&nbsp;Web&nbsp;Services&nbsp;Engine"


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


Mime
View raw message