[jboss-user] [JBoss Web Services] - How to enable MTOM ?
boot sector
do-not-reply at jboss.com
Tue Oct 4 14:07:54 EDT 2011
boot sector [http://community.jboss.org/people/bootsector] created the discussion
"How to enable MTOM ?"
To view the discussion, visit: http://community.jboss.org/message/630119#630119
--------------------------------------------------------------
I have a webservice endpoint which I annotated with MTOM and I have this web method:
*public @XmlMimeType("application/octet-stream") DataHandler binaryTest();*
and I have these lines the wsdl:
*<xs:complexType name="binaryTestResponse">*
**
* <xs:sequence>*
**
* <xs:element xmlns:ns1=" http://www.w3.org/2005/05/xmlmime http://www.w3.org/2005/05/xmlmime" minOccurs="0" name="return"ns1:expectedContentTypes="application/octet-stream" type="xs:base64Binary"/>*
**
*</xs:sequence>*
**
*</xs:complexType>*
The request is sent with these headers:
*Content-Type: multipart/related; type="application/xop+xml"; start="< mailto:rootpart at soapui.org rootpart at soapui.org>"; start-info="text/xml"; boundary="----=_Part_452_1354325.1354355599999"*
*MIME-Version: 1.0*
But I get this response:
*<env:Envelope xmlns:env=' http://schemas.xmlsoap.org/soap/envelope/ http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns2:binaryTestResponse xmlns:ns2=" http://blablabla/ http://blablabla/"><return> AAAAAAAAAAAAAA ....*
How to force jboss to respect MTOM?
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/630119#630119]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111004/0b6a16a6/attachment-0001.html
More information about the jboss-user
mailing list