I have solved it, if anyone interested here’s the solution –
We need to use Message Assignment shape instead of Expression shape.
The expression for Message Assignment will be –
TestXML = new TestBPM_WS_Call.TestXMLClass();
RetVal = TestXML.TestInvoke (\”Test Input\”);
SendMessage = RetVal;
Where –
RetVal is BizTalk variable of type System.String which holds the web Service return value.
SendMessage is BizTalk Message of type System.String.
We need to assign send port to SendMessage.
The web method is as follows –
[WebMethod]
public string GetGoodsMovement(string input)
{
return (\”Web service Response : \”+ input);
}
If we drop the following xml file in receive port –
– <ns0:Root xmlns:ns0=\”http://TestBPM_WS_BA.ReceiveFileCommand\”>
<Descrip>Descrip_0</Descrip>
</ns0:Root>
The output in the receive port will be –
<?xml version=\”1.0\” encoding=\”utf-8\” ?>
<string>Web service Response : Test Input</string>