The code in the attached multipart.zip show how to work with various multipart messages.
Usage
| File name | Description | Comments |
|---|
read_multipart_response.p | Illustrates reading the parts in a multipart message | To run this example, you will need to change the request URI to a real server. You can use the instructions for a webhandler to set up a PASOE instance to do so. |
| create_mtom_request.p | Illustrates making a MTOM request thru SOAP. | This exemplifies making a SOAP request to post a MTOM (Message Transmission Optimization Mechanism) request using the HttpClient (since this is not supported in native ABL SOAP Client). |
| create_multipart_form_data.p | Illustrates a HTTP request that sends MultiPart Form data | This example demonstrates creating a MultiPartEntity and adding a boundary and parts to it. |
| multipart_img_json_txt.p | Illustrates creating a HTTP request that sends MultiPart data including an image | Demonstrates sending an image to a service in a multi-part message. |