Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.1.2
-
Component/s: Core: Streaming, Modules: CXF
-
Labels:
-
Environment:
JDK: 1.6.0_07 (mixed mode)
Encoding: OS: ISO-8859-15, Mule: UTF-8
OS: Linux (2.6.9-78.0.5.ELsmp, i386)
-
User impact:High
-
Effort points:1
-
Configuration:
-
Similar Issues:None
Description
We have a problem when using MTOM with a proxy endpoint in Mule. The problem is that the response from Mule
seem to miss the attachment? Please see the below examples (copied from SoapUI's raw content) when we use the
proxy or call the service directly. Further down is also the raw output sent from SoapUI.
I'm grateful for any help,
//Lennart
--------------------------------------------------------------------
– Response via Mule
--------------------------------------------------------------------
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Date: Fri, 16 Jan 2009 02:09:14 CET
Expires: Fri, 16 Jan 2009 02:09:14 CET
Connection: close
Content-Type: multipart/related; type="application/xop+xml"; boundary="----=_Part_0_25290750.1232111354368"; start="<root.message@cxf.apache.org>"; start-info="text/xml"
Server: Mule Core/2.1.2
------=_Part_0_25290750.1232111354368
Content-Type: application/xop+xml; charset=UTF-8; type="text/xml";
Content-Transfer-Encoding: binary
Content-ID: <root.message@cxf.apache.org>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns2:encryptElementResponse xmlns:ns2="http://canis.ppm.nu/SvedWebService1"><return><data><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:a5f6e8c7-cfa8-43bd-888b-097994dcb021@http%3A%2F%2Fcxf.apache.org%2F" /></data></return></ns2:encryptElementResponse></soap:Body></soap:Envelope>
-----=_Part_0_25290750.1232111354368-
--------------------------------------------------------------------
– Direct from service:
--------------------------------------------------------------------
HTTP/1.1 200 OK
Date: Fri, 16 Jan 2009 13:09:47 GMT
Content-Length: 2938
Connection: close
Content-Type: multipart/related; type="application/xop+xml"; boundary="----=_Part_0_12189822.1232111387542"; start="<root.message@cxf.apache.org>"; start-info="application/soap+xml"
Server: Apache-Coyote/1.1
------=_Part_0_12189822.1232111387542
Content-Type: application/xop+xml; charset=UTF-8; type="application/soap+xml";
Content-Transfer-Encoding: binary
Content-ID: <root.message@cxf.apache.org>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><soap:Body><ns2:encryptElementResponse xmlns:ns2="http://canis.ppm.nu/SvedWebService1"><return><data><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:1dfda31b-ce38-48b0-b1f6-1e0c1e66e78c@http%3A%2F%2Fcxf.apache.org%2F"/></data></return></ns2:encryptElementResponse></soap:Body></soap:Envelope>
------=_Part_0_12189822.1232111387542
Content-Type: application/octet-stream
Content-Transfer-Encoding: binary
Content-ID: <1dfda31b-ce38-48b0-b1f6-1e0c1e66e78c@http%3A%2F%2Fcxf.apache.org%2F>
<?xml version="1.0" encoding="UTF-8"?>
<xenc:EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"><xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"/><ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<xenc:EncryptedKey xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"><xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"/><xenc:CipherData xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"><xenc:CipherValue xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">PbIhXZ/t6laTZEZ5qucxFA5HL2edgKILwscFNIB7N3+Z4rSb5sHe/8kV6pF7VExsTwHmxiyHM8G/
01wU2emW3KcuWzvRiMhxnYeF2NupHCFK1GV7oMHcNtxeLJSQxj9TD5iTdz1+0hrGO92EL04wMQC4
9NCg4svEQr6TFcCGJL4=</xenc:CipherValue></xenc:CipherData></xenc:EncryptedKey><ds:X509Data>
<ds:X509SubjectName>CN=signer.ppm.nu,OU=IT Avdelning,O=PPM,C=SE</ds:X509SubjectName>
<ds:X509Certificate>
MIICSjCCAbOgAwIBAgIESPXj7zANBgkqhkiG9w0BAQUFADBIMQswCQYDVQQGEwJTRTEMMAoGA1UE
ChMDUFBNMRUwEwYDVQQLEwxJVCBBdmRlbG5pbmcxFDASBgNVBAMTC1BQTSBUZXN0IENBMB4XDTA4
MTAxNTEyMzcwM1oXDTEwMTAxNDEyMzcwM1owSjELMAkGA1UEBhMCU0UxDDAKBgNVBAoTA1BQTTEV
MBMGA1UECxMMSVQgQXZkZWxuaW5nMRYwFAYDVQQDEw1zaWduZXIucHBtLm51MIGfMA0GCSqGSIb3
DQEBAQUAA4GNADCBiQKBgQCJwWVH9ihWDLd2uNOU0XBWPbc+oAH9oNC20QdhzJ/Pajyfz2m5K1Ml
F/JVsu++IeouMLvwXFijWmJU3l2fFMCtktf7OzEGa2zoEGR4PEO95xN6RCIV/VAzbXQN15RL95z2
5IsKdsjJ4ylLZiUwW6prgztdJesRb2lSQIC8/SHrLQIDAQABoz8wPTAdBgNVHQ4EFgQUtew+AV5X
zJqbxgZbIVXB2Q/w+9EwDgYDVR0PAQH/BAQDAgO4MAwGA1UdEwQFMAMCAQAwDQYJKoZIhvcNAQEF
BQADgYEAQiGkgwnl9kc1mNqs2G75f+5xvhbhNBX1Wn85+KT3v4ez1tFm1JcTUTCmIuuAJvYtHJhs
4aHZ/sXBWWtNhBPTqPedrwAXUQBMoST9qzhpUKX6BHzbP+HtipTF495W0heFjma4kYtFweCtYBZP
nD+u775zlp1Uf1CJATjbq3AwsH0=
</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo><xenc:CipherData xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"><xenc:CipherValue xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">exX94lqZD7wUIaEkcni7l4QlLTuyC5oJCK1Rmslju617vlpGcS9ZOs/YYGZEXPyw</xenc:CipherValue></xenc:CipherData></xenc:EncryptedData>
-----=_Part_0_12189822.1232111387542-
--------------------------------------------------------------------
– Sent from SoapUI
--------------------------------------------------------------------
MIME-Version: 1.0
Host: dsoaesb1:18089
Content-Length: 801
User-Agent: Jakarta Commons-HttpClient/3.0.1
Content-Type: multipart/related; type="application/soap+xml"; start="<rootpart@soapui.org>"; boundary="----=_Part_11_21882858.1232111353525"
Connection: close
------=_Part_11_21882858.1232111353525
Content-Type: application/soap+xml; charset=UTF-8
Content-Transfer-Encoding: 8bit
Content-ID: <rootpart@soapui.org>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:sved="http://canis.ppm.nu/SvedWebService1">
<soap:Header/>
<soap:Body>
<sved:encryptElement>
<element>
<data>PHRlc3Q+IyMjIzwvdGVzdD4=</data>
</element>
<recipientIdentifier>ppm</recipientIdentifier>
<policyName>testPolicy</policyName>
</sved:encryptElement>
</soap:Body>
</soap:Envelope>
------=_Part_11_21882858.1232111353525
Content-Type: text/xml; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-ID: <455350046602>
<test>####</test>
-----=_Part_11_21882858.1232111353525-
--------------------------------------------------------------------
– Configuration used
--------------------------------------------------------------------
<service name="sved">
<inbound>
<cxf:inbound-endpoint
address="$config{SvedWebService.inbound.url}"
proxy="true" mtomEnabled="true">
</cxf:inbound-endpoint>
</inbound>
<outbound>
<pass-through-router>
<cxf:outbound-endpoint
address="$config{SvedWebService.outbound.url}"
proxy="true" mtomEnabled="true">
</cxf:outbound-endpoint>
</pass-through-router>
</outbound>
</service>
Missing feature