I have combed the forums but cannot find an answer. I am using Postman to POST to a flow service that was created as a REST resource. If I set the type as “text/plain” in Postman I can set the input to the flow service as an Object named “contentStream”. I can then use pub.json:jsonStreamToDocument to convert to a document and do what is needed from there.
If in postman I set the type as “application/json” this no longer works and I see a “jsonStream missing” error most likely from the stream coming in as empty when mapped to the input of the StreamToDocument service.
I have found a few tutorials but none cover what type of input I am supposed to be setting for the flow service. I even found this guide herehttp://serviceorientedarchitect.com/how-to-create-a-rest-service-in-webmethods-integration-server/comment-page-1/#comment-8980 that said ““IS automatically unwraps the JSON payload and converts it to IS documents”.” To me this sounds like a Document should be the input but that doesn’t work either.
Can anyone share what the proper input / first steps are for a flow service to accept the POSTing of application/json content?