You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by Travis Song <tr...@esumtech.com> on 2001/05/28 14:32:23 UTC
RPC with Payload Attachement
Hi all.
The message below is a sent message with one attachment in the sample.mime example.
This example uses call to invoke remote method. Of course it is "SOAP with RPC", strictly speaking. Is there any way that
we can add elements in the SOAP Evelope so that we can generate a message such as an ebXML.
POST /soap/servlet/rpcrouter HTTP/1.0
Host: localhost:8070
Content-Type: multipart/related; boundary="----=_Part_0_529641.991045815370"; type="text/xml"; start="449364.991045815480.apache-soap.travis.travis"
Content-Length: 884
SOAPAction: ""
------=_Part_0_529641.991045815370
Content-Type: text/xml; charset=utf-8
Content-Transfer-Encoding: 8bit
Content-ID: <449364.991045815480.apache-soap.travis.travis>
Content-Length: 468
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:sendFile xmlns:ns1="urn:mime" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<addedfile href ="cid:5352659.991045815370.apache-soap.travis.travis"/>
</ns1:sendFile>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
------=_Part_0_529641.991045815370
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Content-ID: <5352659.991045815370.apache-soap.travis.travis>
Content-Length: 4
bar!
------=_Part_0_529641.991045815370--