Table of Contents

Search

  1. Preface
  2. Overview, Downloading, and Installing
  3. Administration API
  4. Identity Service API
  5. Screenflow Programming and SDK
  6. ActiveVOS WSHT API
  7. Embedding Request Forms in Standalone Web Pages
  8. XML-JSON for Process Central

APIs, SDKs, and Services

APIs, SDKs, and Services

Attachments

Attachments

Similar to XML process invokes, the payload of the HTTP body must be
multipart/related
content, with the first part being the JSON payload with content-type
application/json
, followed by additional parts representing the attachments.
POST /active-bpel/services/JSON/humantaskProcessDemoService HTTP/1.1 Content-Type: multipart/related; type="application/json"; start="<part1_id>"; boundary="the_boundary" Content-Length: 1234 MIME-Version: 1.0 Host: localhost:8080 --the_boundary Content-Type: application/json; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-ID: <part1_id> {"loanProcessRequest": {"xmlns":"http:\/\/schemas.active-endpoints.com\/sample\/LoanRequest\/2008\/02\/loanRequest.xsd", "loanType":{"$t":"Automobile"}, "firstName":{"$t":"John"}, "lastName":{"$t":"Smith"}, "dayPhone":{"$t":"2039299400"}, "nightPhone":{"$t":"2035551212"}, "socialSecurityNumber":{"$t":"123-45-6789"}, "amountRequested":{"$t":"15000"}, "loanDescription":{"$t":"Application to finance the purchase of a Toyota Prius"}, "otherInfo":{"$t":"Down payment is US$7500"}, "responseEmail":{"$t":"john.smith@example.com"} } } --the_boundary Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-ID: <part2_id> [...Text Attachment Content...] --the_boundary Content-Type: image/jpeg Content-ID: <part3_id> Content-Transfer-Encoding: BASE64 Content-Description: Picture A [...Image Content...] --the_boundary--

0 COMMENTS

We’d like to hear from you!