I’ve followed the HTTP Solicit-Response example from the SDK and got it working up to handling the response. Using WireShark I can see that a response of 200 to returned from the url I am sending to, however the response is a string, not an xml document.
Must the response be in the form of an xml document? If the response can be a string, how do I handle the return value so that it’s available to an orchestration?
Yes you can handle the returned string. You can use a flat file disassembler in the receiving pipeline to turn it into an Xml document. This would be useful if the string contained a number of fields that you want to split out.
You could possibly use a pass-thru pipeline and declare an orchestration message of type System.String and receive this message. Never tried this.
You could even write your own pipeline component to convert the string into some message format.
I’ve implemented a receive pipline with a Flat File Disassembler and within the orchestration can access the content that is in the body of the HTTP response.
So now I need to access the return code from the response, how can I do that?