Hi,

I have a question related to Content-Type HTTP header.

When Axis2 receives a MTOM message that has startinfo="application/soap+xml
as a part of the Content-Type header, it returns an error message (below).
When startinfo="text/xml all is fine, and Axis2 receives the attachment
without problems.

Is this an issue with the client (soapUI) or Axis2, or have I missed out on
something else?


Best,
Jan Christian Bryne

---------------------------
HTTP Request:
--------------------------
POST /axis2/services/FileDepot HTTP/1.1
SOAPAction: "http://www.bccs.uib.no/FileDepot/submitFile";
Content-Type: multipart/related; type="application/xop+xml"; start="<
[EMAIL PROTECTED]>"; startinfo="application/soap+xml; action=\"
http://www.bccs.uib.no/FileDepot/submitFile\"";;
boundary="----=_Part_27_17361162.1165910679065"
MIME-Version: 1.0
User-Agent: Jakarta Commons-HttpClient/3.0.1
Host: localhost:8081
Content-Length: 284547


------=_Part_27_17361162.1165910679065
Content-Type: application/xop+xml; charset=UTF-8;
type="application/soap+xml; action=\"submitFile\""
Content-Transfer-Encoding: 8bit
Content-ID: <[EMAIL PROTECTED]>

<soapenv:Envelope xmlns:fil="http://www.bccs.uib.no/FileDepot";
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xm="
http://www.w3.org/2005/05/xmlmime";>
  <soapenv:Header/>
  <soapenv:Body>
     <fil:submitFile>
        <fileName>filename.jpg</fileName>
        <fileContent xm:contentType="image/jpeg"><inc:Include
href="cid:1165758859560" xmlns:inc="http://www.w3.org/2004/08/xop/include
"/></fileContent>
     </fil:submitFile>
  </soapenv:Body>
</soapenv:Envelope>
------=_Part_27_17361162.1165910679065
Content-Type: application/vnd.ms-powerpoint
Content-Transfer-Encoding: binary
Content-ID: <1165758859560>

[binary data here]

------=_Part_27_17361162.1165910679065--


---------------------------
HTTP Response:
--------------------------
HTTP/1.1 500 Internal Server Error
Content-Type: application/soap+xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Tue, 12 Dec 2006 08:48:06 GMT
Server: Apache-Coyote/1.1
Connection: close

30c
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:wsa="
http://www.w3.org/2005/08/addressing"; xmlns:soapenv="
http://www.w3.org/2003/05/soap-envelope
"><soapenv:Header><wsa:ReplyTo><wsa:Address>
http://www.w3.org/2005/08/addressing/none
</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:C90EBD69984786D5FB1165913286043</wsa:MessageID><wsa:Action>
http://www.w3.org/2005/08/addressing/soap/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><soapenv:Code><soapenv:Value>soapenv:VersionMismatch</soapenv:Value></soapenv:Code><soapenv:Reason><soapenv:Text
xml:lang="en-US">Transport level information does not match with SOAP
Message namespace
URI</soapenv:Text></soapenv:Reason><soapenv:Detail></soapenv:Detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
0




--
Jan Christian Bryne
Computational Biology Unit
Bergen Center for Computational Science

Reply via email to