It seems we have a small bug with MTOM. I see the same error being
reported earlier as well.

Thilina, Saminda, we need your expertise on this :).

But why the subject of this email is "Transport level information does
not match with SOAP Message namespace URI", when the exception clearly
says "Invalid Content Type Field" ?

-- Chinthaka

Anne Thomas Manes wrote:
> Your input message is using SOAP 1.1 and the output message is using
> SOAP 1.2.
> 
> On 3/29/06, *Dalys Sebastian* < [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
> 
>     I am using Axis 2 version 0.95 with Tomcat 5 with ws-security
>     enabled. When I send a
>     message from a secure client to a secure service, I get the
>     following exception:
> 
>     org.apache.axis2.AxisFault: Transport level information does not
>     match with SOAP
>     Message namespace URI; nested exception is:
>             org.apache.ws.commons.soap.SOAPProcessingException:
>     Transport level information
>     does not match with SOAP Message namespace URI
>             at
>     
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java
>     :124)
>     ......
> 
>     I captured the secure message using tcpmon and here is what I get:
> 
>     /XXX/services/SecureWebServices HTTP/1.1
>     User-Agent: Axis/2.0
>     SOAPAction: urn:getConfigFiles
>     Host: localhost:8084
>     Transfer-Encoding: chunked
>     Content-Type: multipart/related;
>     boundary=MIMEBoundaryurn:uuid:B27BAFEAEBEA7958AF11436725759541;
>     type="application/xop+xml";
>     start="< 0.urn:uuid:[EMAIL PROTECTED]
>     <mailto:0.urn:uuid:[EMAIL PROTECTED]>>";
>     start-info="text/xml";
>     charset=UTF-8
> 
>     11e7
>     --MIMEBoundaryurn:uuid:B27BAFEAEBEA7958AF11436725759541
>     content-type:application/xop+xml; charset=UTF-8; type="text/xml";
>     content-transfer-encoding:binary
>     content-id:<0.urn:uuid:[EMAIL PROTECTED]
>     <mailto:0.urn:uuid:[EMAIL PROTECTED]>>
> 
>     <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>     xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
>     xmlns:xenc="http://www.w3.org/2001/04/xmlenc#
>     <http://www.w3.org/2001/04/xmlenc#>"
>     xmlns:wsa="http://www.w3.org/2005/08/addressing";><soapenv:Header>
>     <wsse:Security
>     xmlns:wsse="
>     
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
>     soapenv:mustUnderstand="1"><xenc:EncryptedKey
>     xmlns:xenc=" http://www.w3.org/2001/04/xmlenc#"; Id="EncKeyId-28062585">
>     <xenc:EncryptionMethod
>     Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5 " />
>     <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#";>
>     <wsse:SecurityTokenReference><wsse:KeyIdentifier
>     ValueType="
>     
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier";
>     EncodingType="
>     
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary";>H2Nh6UEp+NfVnuL6eDdoehHSis4=</wsse:KeyIdentifier></wsse:SecurityTokenReference>
>     </ds:KeyInfo>
>     
> <xenc:CipherData><xenc:CipherValue>b0oyYgeV/OQCBUnNBlT0TjbkIwlMtANM3pLJ9t1PeDPRAPWCWKqiqsv+qYDzdYHv5RjgoErNf/NiNL+eDn2bP+2nF7AJ8Ugl6pvF4XURhhHHUI1l/eXBglv0pTwLUlopARoMrLbpxVfrCQqLryVYouNylyXglorivzmwZMR8EQDYhtpvXdrS+O31t1w75MpzsCzcTA0osFg4vvoX53zv9YubWFPP9T0GN+FDA61JjTiGnE0XkXhwjJCSddsn9FYIPCzB/RYGkvWB+UMtKlFjjrBheLvXlxAaAC+FUGqIXeCocGsMXp4Sbt07qGueKCri81OyBTz8iN9PbupYQsS7KA==</xenc:CipherValue></xenc:CipherData>
> 
>     <xenc:ReferenceList><xenc:DataReference URI="#EncDataId-32915800"
>     /></xenc:ReferenceList></xenc:EncryptedKey><ds:Signature
>     xmlns:ds=" http://www.w3.org/2000/09/xmldsig#"; Id="Signature-12241337">
>     <ds:SignedInfo>
>     <ds:CanonicalizationMethod
>     Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#
>     <http://www.w3.org/2001/10/xml-exc-c14n#>" />
>     <ds:SignatureMethod
>     Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"; />
>     <ds:Reference URI="#id-32915800">
>     <ds:Transforms>
>     <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"; />
>     </ds:Transforms>
>     <ds:DigestMethod Algorithm=" http://www.w3.org/2000/09/xmldsig#sha1"; />
>     <ds:DigestValue>icFeP9d34p1i6NOeOGFz4QVUZsU=</ds:DigestValue>
>     </ds:Reference>
>     </ds:SignedInfo>
>     <ds:SignatureValue>
>     
> qo1cVU0v31nIa4zAH7iAmsAj6tMWCQW80H6ZSSljr53MheEhKPo+UPpPUsJZoMVjA4IBkyaL8NzW
>     
> lrTXzNW0Aufl9R6lpGQKGKpT9toISjkoCvNMat1/i31jND6gdmaF3OCBEeJOkyJ1XzrV8Hh0IQEy
>     
> WGkDdBdgGvr+ondP9FCyDKBZgQE4LzZScXta53/ZF2ilujKdG5OfTUKKjrwBXZIPY4WhZFGOkREQ
> 
>     
> XdpktsY0WV7XAqXaMbesvF0zr1w3CMTi7I71mLVSWNxphW67jS29TFzMhRl9TQGzapAdVI5JnXOQ
>     UAGg7lCfO/KTaWoDL2v2T/48baaHUI406G+caQ==
>     </ds:SignatureValue>
>     <ds:KeyInfo Id="KeyId-9236202">
>     <wsse:SecurityTokenReference
>     
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
>     wsu:Id="STRId-21509627"><wsse:KeyIdentifier
>     
> ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier
>     
> <http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509SubjectKeyIdentifier>"
>     
> EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary
>     
> <http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary>">athIQAw7HxbADXZGoX3TeY7V7a8=</wsse:KeyIdentifier></wsse:SecurityTokenReference>
>     </ds:KeyInfo>
>     </ds:Signature><wsu:Timestamp
>     xmlns:wsu="
>     
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
>     
> wsu:Id="Timestamp-6775863"><wsu:Created>2006-03-29T22:49:34.298Z</wsu:Created><wsu:Expires>2006-03-29T22:54:
>     34.298Z</wsu:Expires></wsu:Timestamp></wsse:Security><wsa:To
>     xmlns:wsa="http://www.w3.org/2005/08/addressing";>
>     
> http://localhost:8084/BWP/services/SecureBWPWebServices</wsa:To><wsa:ReplyTo
>     xmlns:wsa="http://www.w3.org/2005/08/addressing";><wsa:Address>
>     
> http://www.w3.org/2005/08/addressing/anonymous</wsa:Address></wsa:ReplyTo><wsa:MessageID
>     xmlns:wsa="
>     http://www.w3.org/2005/08/addressing";>urn:uuid:E2942C8980DA6====
>     Response ====
> 
>     HTTP/1.1 200 OK
>     Set-Cookie: JSESSIONID=812229425BD7C7CBE912397A413EAABA; Path=/BWP
>     Content-Type: application/soap+xml;charset=UTF-8
>     Transfer-Encoding: chunked
>     Date: Wed, 29 Mar 2006 22:49:36 GMT
>     Server: Apache-Coyote/1.1
> 
>     11cf
>     <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
>     xmlns:soapenv=" http://www.w3.org/2003/05/soap-envelope";
>     
> xmlns:wsa="http://www.w3.org/2005/08/addressing";><soapenv:Header><wsa:ReplyTo
>     xmlns:wsa="
>     
> http://www.w3.org/2005/08/addressing";><wsa:Address>http://www.w3.org/2005/08/addressing/anonymous
>     </wsa:Address></wsa:ReplyTo><wsa:MessageID
>     
> xmlns:wsa="http://www.w3.org/2005/08/addressing";>urn:uuid:7D89FDD751E0679E6C114367257612620</wsa:MessageID><wsa:Action
> 
>     
> xmlns:wsa="http://www.w3.org/2005/08/addressing";>http://www.w3.org/2005/08/addressing/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><soapenv:Code><soapenv:Value>soapenv:Sender</soapenv:Value></soapenv:Code><soapenv:Reason><soapenv:Text
> 
>     xml:lang="en-US">Invalid Content Type Field in the Mime Message;
>     nested exception is:
>             org.apache.ws.commons.om.OMException: Invalid Content Type
>     Field in the Mime
>     Message</soapenv:Text></soapenv:Reason><soapenv:Detail><Exception
>     xmlns="">org.apache.axis2.AxisFault: Invalid Content Type Field in
>     the Mime Message;
>     nested exception is:
>             org.apache.ws.commons.om.OMException: Invalid Content Type
>     Field in the Mime Message
>             at
>     
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:295)
>             at
>     org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:160)
>             at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>             at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>             at
>     
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java
>     :237)
>             at
>     
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>             at
>     org.securityfilter.filter.SecurityFilter.doFilter(SecurityFilter.java:202)
>             at
>     org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
>     (ApplicationFilterChain.java:186)
>             at
>     
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>             at
>     
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java
>     :214)
>             at
>     
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>             at
>     
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>             at
>     org.apache.catalina.core.StandardContextValve.invokeInternal
>     (StandardContextValve.java:198)
>             at
>     
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>             at
>     
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java
>     :104)
>             at
>     
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>             at
>     
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>             at
>     org.apache.catalina.core.StandardValveContext.invokeNext
>     (StandardValveContext.java:104)
>             at
>     
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>             at
>     
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java
>     :102)
>             at
>     
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>             at
>     
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>             at
>     org.apache.catalina.core.StandardValveContext.invokeNext
>     (StandardValveContext.java:104)
>             at
>     
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>             at
>     org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>             at org.apache.coyote.tomcat5.CoyoteAdapter.service
>     (CoyoteAdapter.java:160)
>             at
>     org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
>             at
>     
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java
>     :705)
>             at
>     org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>             at
>     
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
>             at java.lang.Thread.run (Thread.java:534)
>     Caused by: org.apache.ws.commons.om.OMException: Invalid
>     ==============
> 
>     Thanks,
>     Dalys
> 
>     __________________________________________________
>     Do You Yahoo!?
>     Tired of spam?  Yahoo! Mail has the best spam protection around
>     http://mail.yahoo.com
> 
> 


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to