You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by andrew_wot <ab...@gmail.com> on 2010/06/18 23:07:38 UTC

Missing XOP attachment in JAX-RS response

Hi,
Configured my endpoint to support mtom
	<jaxrs:server 
...
		<jaxrs:properties>
            <entry key="mtom-enabled" value="true"/>
            <entry key="mtom-threshold" value="0"/>
        </jaxrs:properties>
	</jaxrs:server>

The produces multipart/related mime type

This is the response generated by server

HTTP/1.1 201 Created
Server: Apache-Coyote/1.1
Location:
http://localhost:8081/ds-doc-store/documents/6711b0bf-0a2a-4e06-b48f-4c27243ae9a2
Date: Fri, 18 Jun 2010 20:57:53 GMT
Content-Type: multipart/related; type="application/xop+xml";
boundary="uuid:692e6f1f-ed9e-4027-8841-29bd5550eea5"; start="<1>";
start-info="text/xml"
Content-Length: 1017


--uuid:692e6f1f-ed9e-4027-8841-29bd5550eea5
Content-Type: application/xop+xml; charset=UTF-8; type="text/xml";
Content-Transfer-Encoding: binary
Content-ID: <1>

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><documentResp
xmlns="http://www.bla.com/data-services"
modifiedDate="2010-06-18T13:57:54.049-07:00"
createdDate="2010-06-18T13:57:54.049-07:00"
docId="6711b0bf-0a2a-4e06-b48f-4c27243ae9a2" ssn="123-45-6789"
appVersion="1.0" appId="TTO" year="2010" docTypeId="W2" docName="Test
Document"><docProperties><docProperty
propertyName="ein">1276894673334</docProperty><docProperty
propertyName="wages">1276894673334</docProperty></docProperties><docData><data><xop:Include
xmlns:xop="http://www.w3.org/2004/08/xop/include"
href="cid:ccddce1c-926f-438f-84f8-b306b5a47c17-1@www.bla.com"/></data></docData><link
title="Test Document" rel="self"
href="http://localhost:8081/ds-doc-store/documents/6711b0bf-0a2a-4e06-b48f-4c27243ae9a2"/></documentResp>
--uuid:692e6f1f-ed9e-4027-8841-29bd5550eea5--


docData element contained the xop reference but the actual xop attachment is
missing.
<docData><data><xop:Include
xmlns:xop="http://www.w3.org/2004/08/xop/include"
href="cid:ccddce1c-926f-438f-84f8-b306b5a47c17-1@www.bla.com"/></data></docData>

CXF-RS WebClient seems to work fine, attaching xop binary in request, so
it's only server side.
-- 
View this message in context: http://old.nabble.com/Missing-XOP-attachment-in-JAX-RS-response-tp28930757p28930757.html
Sent from the cxf-user mailing list archive at Nabble.com.