NonStop SOAP User's Manual
Customizing the SOAP Server
NonStop SOAP User’s Manual—520501-012
8-31
Examples
Example 8-3 on page 8-32 shows how to retrieve attachments in the request SOAP 
message and set new attachments for the response SOAP message. For explanatory 
purposes, only the pre_process method of the SoapUEHandler_Generic class is 
shown.
Example 8-2. Response SOAP Message
HTTP/1.1 200 OK
Content-Type: Multipart/Related; boundary=Simple_Mime_Boundary; 
type=text/xml;start="<InsuranceClaim_SOAPMessage.xml>"
Content-Length: nnn
-- Simple_Mime_Boundary
Content-Type: text/xml; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Content-ID: <InsuranceClaimResponse_SOAPMessage.xml>
<SOAP-ENV:Envelope
 xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
 <SOAP-ENV:Body>
 <InsuranceClaimResponse>
 ...
 </InsuranceClaimResponse>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
-- Simple_Mime_Boundary
Content-Type: image/jpeg
Content-Transfer-Encoding: binary
Content-ID: <acknowledge.jpg>
...Raw JPEG image...
-- Simple_Mime_Boundary
Content-Type: text/xml
Content-Transfer-Encoding:8bit
Content-ID: <processingDateXML>
<date>
<month>August</month>
 <day>10</day>
 <year>2002</year>
</date>
--Simple_Mime_Boundary--










