axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AXIS2-5253) WSDL HTTP binding should define "application/xml" as the MIME content type for it's messages.
Date Mon, 12 Mar 2012 08:03:36 GMT

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

Hudson commented on AXIS2-5253:
-------------------------------

Integrated in Axis2 #1300 (See [https://builds.apache.org/job/Axis2/1300/])
    AXIS2-5253 - added missing revision r1295540 to the trunk. (Revision 1299565)

     Result = SUCCESS
sagara : 
Files : 
* /axis/axis2/java/core/trunk
* /axis/axis2/java/core/trunk/modules/integration/test-resources/ComplexDataTypes/ComplexDataTypes.wsdl

                
> WSDL HTTP binding should define "application/xml" as the MIME content type for it's messages.
 
> -----------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5253
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5253
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.6.1
>            Reporter: Sagara Gunathunga 
>            Assignee: Sagara Gunathunga 
>             Fix For: 1.6.2, 1.7.0
>
>
> Axis2 runtime WSDL generation define "text/xml" as the MIME content type for messages.
 The default behavior of a client generated from above WSDL ( with -ap option) is send SOAP
messages instead of pure XML messages and following exception when receiving the response
message.
> org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement
{http://schemas.xmlsoap.org/soap/envelope/}Body
> at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
> Adding following line is a workaround for this issue but it's required to fix this properly.
 
>   Options options = stub._getServiceClient().getOptions();
>   options.setProperty(Constants.Configuration.MESSAGE_TYPE, "application/xml");

--
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