JMSUtils.setSOAPEnvelope() returns empty So
-------------------------------------------

                 Key: AXIS2-5156
                 URL: https://issues.apache.org/jira/browse/AXIS2-5156
             Project: Axis2
          Issue Type: Bug
         Environment:         <dependency org="apache" name="axiom" 
rev="1.2.8.0121" />
        <dependency org="apache" name="axis2" rev="1.5.1" />
        <dependency org="apache" name="axis2-transport" rev="1.0.0" />
            Reporter: Yuriy Glushanin


Hi All!

We use Axis2 to invoke external WebService using SOAP/JMS transport.
When the service returns us success response, we have no problem at all.
But we have problem with SOAP Fault response. 

I try to debug org.apache.axis2.transport.jms.JMSUtils class and probably SOAP 
Fault is not correctly processed in the class.

Public static void method setSOAPEnvelope(Message message, MessageContext 
msgContext, String contentType) contains the following code (line 171 and 172):
{code}
            String content = ((TextMessage)message).getText();
            documentElement = textMessageBuilder.processDocument(content, 
contentType, msgContext);
{code}

I can see variable "content" has value:
{code}
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
    xmlns:bit="http://www.example.com/pta/am/v1/bit";
    xmlns:gen="http://www.example.com/pta/am/v1/gen";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
<soapenv:Header>
<bit:header><bit:correlationId>3805024452127608532</bit:correlationId></bit:header>
</soapenv:Header>
<soapenv:Body>
 <soapenv:Fault>
  <soapenv:faultcode>Server</soapenv:faultcode>
  <soapenv:faultstring>No data found</soapenv:faultstring>
  <soapenv:detail>
   <bit:error>
    <gen:errorCode>ERR-0007</gen:errorCode>
    <gen:errorMessage>No data found</gen:errorMessage>
    </bit:error>
   </soapenv:detail>
 </soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
{code}

Unfortunately, next variable "documentElement" has no SOAP Fault Details values 
and Axis returns us empty org.apache.axis2.AxisFault object.

As a result we lose SOAP Fault details (errorCode and errorMessage).

Could you help me to resolve the issue?

Many thanks.
Yuriy.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org
For additional commands, e-mail: java-dev-h...@axis.apache.org

Reply via email to