I was quite busy for the past few weeks, my wife gave birth to my second child, a lovely boy, we are now staying with my parents in law and has limited access to the internet. Which makes me diffcult to update this blog.
When invoking web service in orchestration via SOAP adapter, I got error states that unexcepted message type was received. The web service I am invoking has a return type of String, the event log shows that the orchestraion is expecting string, but WS.Response was received (or vice-versus, can't remember the detail).
This exception is thrown because when you create a SOAP port, BizTalk configure its receive pipeline as [Passthru pipeline]. A [Passthru] pipeline does not try to resolve message pass thru it, hence the SOAP response does not deserialize into string type.
To resolve this issue, simply change the receive pipeline of the SOAP port from [Passthru] to [XMLReceive].