NonStop SOAP User's Manual

Customizing the SOAP Server
NonStop SOAP User’s Manual520501-012
8-30
Examples
Example 8-1. Request SOAP Message
POST soap/servlet/rpcrouter HTTP/1.0
HOST localhost:8080
Content-Type: Multipart/Related; boundary=Mime_Boundary;type=text/xml;
start="<InsuranceClaim_SOAPMessage.xml>"
SOAPAction: ""
--Mime_Boundary
Content-Type: text/xml;charset=UTF-8
Content-Transfer-Encoding: 8bit
Content-ID: <InsuranceClaim_SOAPMessage.xml>
<?xml version="1" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
<SOAP-ENV:Body>
<InsuranceClaim>
... ...
</InsuranceClaim>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
--Mime_Boundary
Content-Type:application/msword
Content-Transfer-Encoding: binary
Content-ID: <claim.doc>
...binary contents of the doc file...
--Mime_Boundary
Content-Type:image/jpeg
Content-Transfer-Encoding: binary
Content-ID: <crashPic.jpg>
...Raw JPEG image...
--Mime_Boundary--