Using MTom encoding with others XSD Source

Mar 31, 2009 at 2:02 PM
Salut,
I am trying to test the implementation of XSD registry and repository with the OpenHealthTool, which implements the client actors.
I successfully retrieve documents from a Patient ID, but when I try to submit document, the following error occurs:

Cannot process the message because the content type 'multipart/related; boundary=MIMEBoundaryurn_uuid_21CFB39DEE5253CEC81238504154985; type="application/xop+xml"; start="<0.urn:uuid:21CFB39DEE5253CEC81238504154986@apache.org>"; start-info="application/soap+xml"; action="urn:ihe:iti:2007:RetrieveDocumentSet"' was not the expected type 'application/soap+xml; charset=utf-8'

So, my question is: is it possible to use the repository with MTOM encoding (on the client side) and Text encoding when discussing with the registry ?

Thanks!
David

A little bit more of the error...
DEBUG][14:55:54][xds.soap.AbstractXDSSoapClient] Beginning XDS SOAP Send
[DEBUG][14:55:54][xds.soap.AbstractXDSSoapClient] ****** SOAP REQUEST BODY ******
[DEBUG][14:55:54][xds.soap.AbstractXDSSoapClient] <retrieve:RetrieveDocumentSetRequest xmlns:retrieve="urn:ihe:iti:xds-b:2007"><retrieve:DocumentRequest><retrieve:RepositoryUniqueId>1.19.6.24.109.42.1</retrieve:RepositoryUniqueId>
...
[DEBUG][14:55:55][httpclient.wire.header        ] >> "POST /XdsService/XDSRepository HTTP/1.1[\r][\n]"
[DEBUG][14:55:55][httpclient.wire.header        ] >> "Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_21CFB39DEE5253CEC81238504154985; type="application/xop+xml"; start="<0.urn:uuid:21CFB39DEE5253CEC81238504154986@apache.org>"; start-info="application/soap+xml"; action="urn:ihe:iti:2007:RetrieveDocumentSet"[\r][\n]"
[DEBUG][14:55:55][httpclient.wire.header        ] >> "User-Agent: Axis2[\r][\n]"
[DEBUG][14:55:55][httpclient.wire.header        ] >> "Host: eifrwse0028:9090[\r][\n]"
[DEBUG][14:55:55][httpclient.wire.header        ] >> "Content-Length: 1154[\r][\n]"
[DEBUG][14:55:55][httpclient.wire.header        ] >> "[\r][\n]"
[DEBUG][14:55:55][httpclient.wire.content       ] >> "--MIMEBoundaryurn_uuid_21CFB39DEE5253CEC81238504154985[\r][\n]"
[DEBUG][14:55:55][httpclient.wire.content       ] >> "Content-Type: application/xop+xml; charset=UTF-8; type="application/soap+xml"[\r][\n]"
[DEBUG][14:55:55][httpclient.wire.content       ] >> "Content-Transfer-Encoding: binary[\r][\n]"
[DEBUG][14:55:55][httpclient.wire.content       ] >> "Content-ID: <0.urn:uuid:21CFB39DEE5253CEC81238504154986@apache.org>[\r][\n]"
[DEBUG][14:55:55][httpclient.wire.content       ] >> "[\r][\n]"
[DEBUG][14:55:55][httpclient.wire.content       ] >> "<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing"><wsa:To>http://eifrwse0028:9090/XdsService/XDSRepository</wsa:To><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:7e007228-9dfa-0398-76d7-021320ea2694</wsa:MessageID><wsa:Action>urn:ihe:iti:2007:RetrieveDocumentSet</wsa:Action></soapenv:Header><soapenv:Body><retrieve:RetrieveDocumentSetRequest xmlns:retrieve="urn:ihe:iti:xds-b:2007"><retrieve:DocumentRequest><retrieve:RepositoryUniqueId>1.19.6.24.109.42.1</retrieve:RepositoryUniqueId><retrieve:DocumentUniqueId>$uniqueId06</retrieve:DocumentUniqueId></retrieve:DocumentRequest></retrieve:RetrieveDocumentSetRequest></soapenv:Body></soapenv:Envelope>[\r][\n]"
[DEBUG][14:55:55][httpclient.wire.content       ] >> "--MIMEBoundaryurn_uuid_21CFB39DEE5253CEC81238504154985--"
[DEBUG][14:55:55][httpclient.wire.header        ] << "HTTP/1.1 415 Cannot process the message because the content type 'multipart/related; boundary=MIMEBoundaryurn_uuid_21CFB39DEE5253CEC81238504154985; type="application/xop+xml"; start="<0.urn:uuid:21CFB39DEE5253CEC81238504154986@apache.org>"; start-info="application/soap+xml"; action="urn:ihe:iti:2007:RetrieveDocumentSet"' was not the expected type 'application/soap+xml; charset=utf-8'.[\r][\n]"
[DEBUG][14:55:55][httpclient.wire.header        ] << "Content-Length: 0[\r][\n]"
[DEBUG][14:55:55][httpclient.wire.header        ] << "Server: Microsoft-HTTPAPI/1.0[\r][\n]"
[DEBUG][14:55:55][httpclient.wire.header        ] << "Date: Tue, 31 Mar 2009 12:55:55 GMT[\r][\n]"
org.apache.axis2.AxisFault: Transport error: 415 Error: Cannot process the message because the content type 'multipart/related; boundary=MIMEBoundaryurn_uuid_21CFB39DEE5253CEC81238504154985; type="application/xop+xml"; start="<0.urn:uuid:21CFB39DEE5253CEC81238504154986@apache.org>"; start-info="application/soap+xml"; action="urn:ihe:iti:2007:RetrieveDocumentSet"' was not the expected type 'application/soap+xml; charset=utf-8'.
    at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:296)
    at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:190)
Mar 31, 2009 at 2:28 PM
I reply myself :-)

apparently, it is working to set the encoding for WS of respository to Mtom, and the one for registry to Text.

I just made a mistake, it was not for submitting document, but for retrieving a document from an ID.

bye