Consume Web Service to Orchestration






3.80/5 (6 votes)
Consume web service to Orchestration and pass value to that web service through XML receive port
- Download Him_webService - 3.04 KB
- Download Him_WebService_BTS - 48.16 KB
- Download Him_WS_MSI_Binding - 186.83 KB
- Download Him_WS_Schema - 12.52 KB
Introduction
Consume web service to Orchestration, that accepts input from BizTalk (XML file):
- Here I make a web service accept a number and return their sum
- Consume that web service to Orchestration (Add web reference)
- Pass value from XML Receive port to WS
- Invoke Web service by using web port and get output
- Sending output by XML send port
Background
I make an assumption that you know how to:
- Make a web service
- Add web references on BTS
- Basic Schema generation
- Property promotion on schema
- Schema Mapping
Using the Code
Web Service Output to Out XML Mapping

Orchestration
Add configuration port and on port, type select web service port type. It will automatically create an appropriate request and response port.

Expression Shape
Here you need to assign input message value to Web service request message.

Points of Interest
Initially promoted field was not coming on Expression shape. To solve this, I give full name like projectname.schemaname.propertyschema.promoted
field.
History
- 24th October, 2007: Initial post
This is one of my very first articles, so if you find some pitfalls please send me email at thawait.himanshu@gmail.com.