You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Sagara Gunathunga (Resolved) (JIRA)" <ji...@apache.org> on 2012/02/29 08:29:57 UTC
[jira] [Resolved] (AXIS2-5253) WSDL HTTP binding should define
"application/xml" as the MIME content type for it's messages.
[ https://issues.apache.org/jira/browse/AXIS2-5253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sagara Gunathunga resolved AXIS2-5253.
---------------------------------------
Resolution: Fixed
Fix Version/s: 1.6.2
Fix available on r1294991.
> 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