Synapse looses attachment simply routing a message
--------------------------------------------------
Key: SYNAPSE-84
URL: https://issues.apache.org/jira/browse/SYNAPSE-84
Project: Synapse
Issue Type: Bug
Affects Versions: 0.91
Reporter: Lorenzo
Client send this message:
------- TCPMon from client to Synapse --------
POST /SincronoAttachment/SincronoAttachment HTTP/1.0
Content-Type: multipart/related; type="text/xml";
start="<A7FED167E1B7E81EAB6E7AB8A9317A9D>";
boundary="----=_Part_0_32755292.1174641907080"
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.4
Host: 127.0.0.1:8888
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: 1443
------=_Part_0_32755292.1174641907080
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding: binary
Content-Id: <A7FED167E1B7E81EAB6E7AB8A9317A9D>
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<eseguiServizio xmlns="http://spcoop.it/cart/pdd-test">
<Richiesta><persona nome="mario"
cognome="rossi"/></Richiesta>
<attachInZIP1 href="cid:5432D5411CBD46F1862DE8AE0A26A8E5"
xmlns=""/>
<attachInZIP2 href="cid:9E231975834035C2232A72AE50082FFE"
xmlns=""/>
</eseguiServizio>
</soapenv:Body>
</soapenv:Envelope>------=_Part_0_32755292.1174641907080Content-Type:
application/octet-streamContent-Transfer-Encoding: binaryContent-Id:
<5432D5411CBD46F1862DE8AE0A26A8E5>PK
----- END of Message ----
Synapse route it with this simple configuration:
----- Synapse.xml ------
<synapse xmlns="http://ws.apache.org/ns/synapse">
<rules>
<in>
<send>
<endpoint
address="http://localhost:9999/SincronoAttachment/SincronoAttachment"/>
</send>
<drop/>
</in>
<out>
<log level="custom">
<property name="message" value="sending back the response"/>
</log>
<send/>
</out>
</rules>
</synapse>
----- End of synapse.xml ------
Synapse outgoing message to server is this:
----- TCPMon from Synapse to server ------
POST /SincronoAttachment/SincronoAttachment HTTP/1.1
SOAPAction: "urn:__DYNAMIC_OPERATION__"
User-Agent: Axis2
Host: 127.0.0.1:9999
Content-Length: 920
Content-Type: text/xml; charset=UTF-8
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<wsa:To>http://localhost:9999/SincronoAttachment/SincronoAttachment</wsa:To>
<wsa:ReplyTo>
<wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>
</wsa:ReplyTo>
<wsa:MessageID>uuid:urn:uuid:33E8B28671937F42A91174641907809</wsa:MessageID>
<wsa:Action>urn:__DYNAMIC_OPERATION__</wsa:Action>
</soapenv:Header>
<soapenv:Body>
<eseguiServizio xmlns="http://spcoop.it/cart/pdd-test">
<Richiesta><persona nome="mario" cognome="rossi"/>
</Richiesta>
<attachInZIP1 xmlns="" href="cid:5432D5411CBD46F1862DE8AE0A26A8E5" />
<attachInZIP2 xmlns="" href="cid:9E231975834035C2232A72AE50082FFE" />
</eseguiServizio>
</soapenv:Body></soapenv:Envelope
--------------------------------------
Seems attachments are gone...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]