[jbossws-issues] [JBoss JIRA] (JBWS-3593) @javax.xml.ws.BindingType or @javax.xml.ws.soap.MTOM have a different behaviour with jbossws-cxf than jbossws-native

A l e c C R E S T A N (JIRA) jira-events at lists.jboss.org
Wed Jun 12 09:48:54 EDT 2013


    [ https://issues.jboss.org/browse/JBWS-3593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12781180#comment-12781180 ] 

A l e c C R E S T A N edited comment on JBWS-3593 at 6/12/13 9:47 AM:
----------------------------------------------------------------------

Hi,
no, the @XmlMimeType("text/xml") annotation does not change the result. Result is still "xop"...

{code:title=Response|borderStyle=solid}
Content-Type: multipart/related; type="application/xop+xml"; boundary="uuid:13fed152-2261-4a2a-90a5-b20f185e2e22"; start="<root.message at cxf.apache.org>"; start-info="text/xml"


--uuid:13fed152-2261-4a2a-90a5-b20f185e2e22
Content-Type: application/xop+xml; charset=UTF-8; type="text/xml";
Content-Transfer-Encoding: binary
Content-ID: <root.message at cxf.apache.org>

<soap:Envelope ...</soap:Envelope>
--uuid:13fed152-2261-4a2a-90a5-b20f185e2e22--
{code}
                
      was (Author: jbossalecuser):
    Hi,
no, the @XmlMimeType("text/xml") annotation does not change the result. Result is still "xop"...

{code:title=Bar.java|borderStyle=solid}
Content-Type: multipart/related; type="application/xop+xml"; boundary="uuid:13fed152-2261-4a2a-90a5-b20f185e2e22"; start="<root.message at cxf.apache.org>"; start-info="text/xml"


--uuid:13fed152-2261-4a2a-90a5-b20f185e2e22
Content-Type: application/xop+xml; charset=UTF-8; type="text/xml";
Content-Transfer-Encoding: binary
Content-ID: <root.message at cxf.apache.org>

<soap:Envelope ...</soap:Envelope>
--uuid:13fed152-2261-4a2a-90a5-b20f185e2e22--
{code}
                  
> @javax.xml.ws.BindingType or @javax.xml.ws.soap.MTOM have a different behaviour with jbossws-cxf than jbossws-native
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBWS-3593
>                 URL: https://issues.jboss.org/browse/JBWS-3593
>             Project: JBoss Web Services
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: jbossws-cxf, jbossws-native
>    Affects Versions: jbossws-cxf-4.0.2, jbossws-native-4.0.2
>         Environment: Jboss AS 7.1.1Final
>            Reporter: A l e c C R E S T A N
>             Fix For: jbossws-cxf-4.2
>
>
> On JBoss AS 7.1.1, with the following service implementation: 
> {code}
> @WebService(...)
> @javax.xml.ws.BindingType (value=javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_MTOM_BINDING)
> public class SEIImpl {
> ...
> public DataHandler getBin() {...} /* maps to a type="xs:base64Binary" in wsdl */
> public List<String> getString(){...} /* maps to sequence of String in wsdl */
> ...
> }
> {code}
> With the default *jbossws-cxf*, the responses are:
> - for getString()  method
> Content-Type: multipart/related; type="application/xop+xml"; ...
> - for getBin() method
> Content-Type: multipart/related; type="application/xop+xml"; ...
> -> +both responses are MTOM/XOP modified !  The getString() response should not.+
> With *jbossws-native* (after the jbossws stack switching) , the responses are the expected ones:
> - for getString()  method
> Content-Type: text/xml;charset=UTF-8  <env:Envelope .... text content ..../env:Envelope> 
> - for getBin() method
> Content-Type: multipart/related; type="application/xop+xml";  ...
> Best regards,
> Note: same behaviour with @javax.xml.ws.soap.MTOM or SOAP11HTTP_MTOM_BINDING

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbossws-issues mailing list