You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2007/03/01 18:17:04 UTC

[jira] Resolved: (SM-859) incorrect jsr181 mtom response

     [ https://issues.apache.org/activemq/browse/SM-859?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet resolved SM-859.
--------------------------------

       Resolution: Duplicate
    Fix Version/s: 3.1

I have added a test case but everything seems to work.

Author: gnodet
Date: Thu Mar  1 09:11:25 2007
New Revision: 513408

URL: http://svn.apache.org/viewvc?view=rev&rev=513408
Log:
SM-859: add a test case for mtom on outbound

Modified:
   incubator/servicemix/trunk/servicemix-itests/src/test/java/org/apache/servicemix/itests/Jsr181HttpTest.java
   incubator/servicemix/trunk/servicemix-itests/src/test/java/org/apache/servicemix/itests/beans/Echo.java


> incorrect jsr181 mtom response
> ------------------------------
>
>                 Key: SM-859
>                 URL: https://issues.apache.org/activemq/browse/SM-859
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-jsr181
>    Affects Versions: 3.0.1
>            Reporter: Hari Iyer
>             Fix For: 3.1
>
>
> I have a method:
> DataSource getDocumentContents(String documentId, String User)
> This method correctly returns data when using an xfire binding with mtom enabled.
> ---------------------------------------------------------------------------------------------------------------------------
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> X-Powered-By: Servlet 2.4; JBoss-4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)/Tomcat-5.5
> Content-Type: multipart/related; type="application/xop+xml"; start="<so...@xfire.codehaus.org>"; start-info="text/xml";   	boundary="----=_Part_0_9582018.1172678387638"
> Transfer-Encoding: chunked
> Date: Wed, 28 Feb 2007 15:59:47 GMT
> 2de
> ------=_Part_0_9582018.1172678387638
> Content-Type: application/xop+xml; charset=UTF-8; type="text/xml"
> Content-Transfer-Encoding: 8bit
> Content-ID: <so...@xfire.codehaus.org>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soap:Body><GetDocumentContentsResponse xmlns="http://services.genome.sterling.com/documentmanagementservice/1.0"><out xmlns:ns1="http://www.w3.org/2004/11/xmlmime" ns1:mimeType="text/xsl"><Include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:11726783876221-1132704612@http://www.w3.org/2001/XMLSchema" /></out></GetDocumentContentsResponse></soap:Body></soap:Envelope>
> 155f
> ------=_Part_0_9582018.1172678387638
> Content-Type: text/xsl; charset=Cp1252
> Content-Transfer-Encoding: binary
> Content-ID: <11726783876221-1132704612@http://www.w3.org/2001/XMLSchema
> <xsl:stylesheet version="2.0" 
>   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> ...
> -----------------------------------------------------------------------------------------------------------------------------------------------
> It returns an empty datasource when using mtom on a jsr181. 
> ------------------------------------------------------------------------------------------------------------------------------------------------
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> X-Powered-By: Servlet 2.4; JBoss-4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)/Tomcat-5.5
> Content-Type: multipart/related; type="text/xml"; start="<soap-request>";   	boundary="----=_Part_1_24702933.1172677822614"
> Transfer-Encoding: chunked
> Date: Wed, 28 Feb 2007 15:50:22 GMT
> 277
> ------=_Part_1_24702933.1172677822614
> Content-Type: text/xml; charset=us-ascii
> Content-Transfer-Encoding: 7bit
> Content-ID: <soap-request>
> <?xml version='1.0' encoding='UTF-8'?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><GetDocumentContentsResponse xmlns="http://services.genome.sterling.com/documentmanagementservice/1.0"><out xmlns:ns1="http://www.w3.org/2004/11/xmlmime" ns1:mimeType="text/xsl"><Include xmlns="http://www.w3.org/2004/08/xop/include" href="cid:117267782259871164778262@http://www.w3.org/2001/XMLSchema" /></out></GetDocumentContentsResponse></soap:Body></soap:Envelope>
> bf
> ------=_Part_1_24702933.1172677822614
> Content-Type: text/xsl; charset=us-ascii
> Content-Transfer-Encoding: 7bit
> Content-ID: <117267782259871164778262@http://www.w3.org/2001/XMLSchema>
> 2b
> ------=_Part_1_24702933.1172677822614--
> 0
> ---------------------------------------------------------------------------------------------------------------------------------------------------------
> If I change the return type to a String then the contents are returned.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.