axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "donald yang" <>
Subject axis2c-1.4 can not retrieve SOAP 1.2 FAULT element
Date Wed, 21 May 2008 13:56:37 GMT
Hi, I wrote a web service client using axis2c-1.4 to invoke a web service
written using axis2-java. In this test case, the web service will return a
SOAP fault element back to the web service client. If the soap version is
set to 1.1, the web service client can retrieve the info from the SOPA FAULT
element. However  the web service can NOT retrieve the info from the SOAP
FAULT element if the soap version is set to 1.2. I have traced down and
found that *axis2_msg_ctx_get_soap_envelope(res_msg_ctx, env)
*statement in*axis2_svc_client_send_receive_with_op_qname
*function of* svc_client.c *should return a pointer to *soap_envelop*, but
it returns NULL. That is why the web service client can not retrieve the
SOAP FAULT element. I have used TCP monitor to see the SOAP messages. There
is a SOAP reply message return from server side.(see [1], [2]).

Does anyone know how to solve this issue? many thanks in advance.

best regards

[1] SOAP request
POST /axis2/services/simple_money HTTP/1.1
User-Agent: Axis2C/1.4.0
Content-Length: 549
Content-Type: multipart/related;
type="application/xop+xml"; start="<>";

content-transfer-encoding: binary
content-id: <>content-type:
   <soapenv:Envelope xmlns:soapenv="
         <ns1:money_input_outputMessage xmlns:ns1="">

[2] SOAP reply
HTTP/1.1 400 Bad Request
Server: Apache-Coyote/1.1
Content-Type: multipart/related;
type="application/xop+xml"; start="<<>>";
start-info="application/soap+xml"; action="";charset=UTF-8Transfer-Encoding:
chunkedDate: Wed, 21 May 2008 13:20:58 GMTConnection:
application/xop+xml; charset=UTF-8;
type="application/soap+xml"Content-Transfer-Encoding: binaryContent-ID:
      <?xml version='1.0' encoding='UTF-8'?>
         <soapenv:Envelope xmlns:soapenv="">
                     <soapenv:Text xml:lang="en-US">Exception occurred while
trying to invoke service method money_input_output</soapenv:Text>


View raw message