Salesforce

How to work with MultiPart Messages using HttpClient?

« Go Back

Information

 
TitleHow to work with MultiPart Messages using HttpClient?
URL NameHow-to-work-with-MultiPart-Messages-using-HttpClient
Article Number000140277
EnvironmentProduct: OpenEdge
Verison: 11.5.1, 11.6.x, 11.7.x, 12.x
OS: All Supported Platforms
Other: OpenEdge HttpClient
Question/Problem Description
The code in the attached programs demonstrates generating multi-part messages using the HttpClient.
 
Steps to Reproduce
Clarifying Information
Error Message
Defect Number
Enhancement Number
Cause
Resolution

The code in the attached multipart.zip show how to work with various multipart messages.

Usage

File nameDescriptionComments
read_multipart_response.pIllustrates reading the parts in a multipart messageTo 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.pIllustrates 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.pIllustrates a HTTP request that sends MultiPart Form dataThis example demonstrates creating a MultiPartEntity and adding a boundary and parts to it.
multipart_img_json_txt.pIllustrates creating a HTTP request that sends MultiPart data including an imageDemonstrates sending an image to a service in a multi-part message.
Workaround
Notes
References to Other Documentation:

Progress Article(s):
 Is there an HTTP client for OpenEdge?
 
Keyword Phrase
Last Modified Date11/20/2020 6:51 AM

Powered by