You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Lorenzo (JIRA)" <ji...@apache.org> on 2007/03/23 10:53:32 UTC

[jira] Updated: (SYNAPSE-84) Synapse looses attachment simply routing a message

     [ https://issues.apache.org/jira/browse/SYNAPSE-84?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lorenzo updated SYNAPSE-84:
---------------------------

    Description: 
Client send a message with attachment (see TCPMon Screenshot):

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>
            <send/>
        </out>
    </rules>
</synapse> 

----- End of synapse.xml ------


Synapse route message to server, but seems attachments are cutted away... (See TCPMon screenshot)








  was:
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>&lt;persona nome=&quot;mario&quot; cognome=&quot;rossi&quot;/&gt;</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>&lt;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...









> 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 a message with attachment (see TCPMon Screenshot):
> 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>
>             <send/>
>         </out>
>     </rules>
> </synapse> 
> ----- End of synapse.xml ------
> Synapse route message to server, but seems attachments are cutted away... (See TCPMon screenshot)

-- 
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: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org