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 Fri, 02 Mar 2012 09:35:58 GMT

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

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

Integrated in Axis2 #1280 (See [https://builds.apache.org/job/Axis2/1280/])
    AXIS2-5253 - Modified test case. (Revision 1295084)
Fixed AXIS2-5253. (Revision 1294991)

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

sagara : 
Files : 
* /axis/axis2/java/core/trunk/modules/integration/test-resources/BaseDataTypes.wsdl
* /axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/AxisService2WSDL11.java

                
> 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