Consuming Web-Service method with string as input parameter
Most "hello world" sample of generating & consuming Web-Services starts with simple method that passes string parameters between the service provider & consumer.Somehow, the approach for the very same sample get complex in BizTalk world. Our aim is to consume the "hello world" web service method that as I mentioned before has a string input parameter.The real question is what message formation we should send to the SOAP send port so that the SOAP adapter comprehend that we want to send our data in the string parameter.
It's really not a problem. I think that BizTalk guys are so schema oriented that when they encounter a simple issue they got staled and confused, like in our scenario. Usually this issue is follows with serialization errors.
So here is the simple solution, the message sent through the SOAP adapter should be formed like this:
<string> the string to pass </string> When the above message is passed through the SOAP adapter, the adapter generates the proper SOAP message (considering the WSDL) with the proper parameter xml node.
Hope this post saved time for you ...