[Carbon-jira] [jira] Created: (CARBON-5914) JAXWS MTOM-enabled service with WS-Security returns binary data as inline instead of an attachment

Isuru Eranga Suriarachchi (JIRA) jira at wso2.org
Sun Jan 17 01:57:47 PST 2010


JAXWS MTOM-enabled service with WS-Security returns binary data as inline instead of an attachment
--------------------------------------------------------------------------------------------------

                 Key: CARBON-5914
                 URL: https://wso2.org/jira/browse/CARBON-5914
             Project: WSO2 Carbon
          Issue Type: Bug
          Components: JSR-181 Annotated/JAX-WS Services
            Reporter: Isuru Eranga Suriarachchi
            Assignee: Isuru Eranga Suriarachchi
            Priority: High
             Fix For: 2.0.3
         Attachments: JAXWSMtom.jar

I've written an MTOM enabled JAXWS service and engaged security. The service is attached with this..

With MTOM being enable, I can see the response ContentType becomes 'application/xop+xml'. However the binary response data is still transmitted as base64-encoded inline, instead of as a separate binary attachment (see below - I remove most of the returned data due to its length):

--MIMEBoundaryurn_uuid_6A41A9AB6F9E3EEAB71262792774662
Content-Type: application/xop+xml; charset=UTF-8; type="text/xml"
Content-Transfer-Encoding: binary
Content-ID: <0.urn:uuid:6A41A9AB6F9E3EEAB71262792774663 at apache.org>

<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><dlwmin:getBinaryTestDataResponse xmlns:dlwmin="urn:ca.dmf.webservices"><return>f39/f39/f39/f39...</return></dlwmin:getBinaryTestDataResponse></soapenv:Body></soapenv:Envelope>
--MIMEBoundaryurn_uuid_6A41A9AB6F9E3EEAB71262792774662-- 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the Carbon-jira mailing list