axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yuriy Glushanin (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TRANSPORTS-46) JMSUtils.setSOAPEnvelope() returns empty SOAP Fault Details
Date Thu, 13 Oct 2011 11:25:11 GMT

    [ https://issues.apache.org/jira/browse/TRANSPORTS-46?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13126491#comment-13126491
] 

Yuriy Glushanin commented on TRANSPORTS-46:
-------------------------------------------

Hi, all!

My issue is still open. I'd like to know if is possible to resolve it?

Thanks and best regards!
Yuriy.
                
> JMSUtils.setSOAPEnvelope() returns empty SOAP Fault Details
> -----------------------------------------------------------
>
>                 Key: TRANSPORTS-46
>                 URL: https://issues.apache.org/jira/browse/TRANSPORTS-46
>             Project: Axis2 Transports
>          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-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message