|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Announcements
Chapters
Services
Feature Zones
|
Note: This is an unedited contribution. If this article is inappropriate,
needs attention or copies someone else's work without reference then please
Report This Article
IntroductionIt is generally very straight forward to invoke a Web Service from an BizTalk Orchestration. In some special cases, a Web service returns or accepts an object. In such cases a custom map is required to send a request to the web service. We shall consider a case where an object is returned from a web service and how this is handled in BizTalk. Employee Data Retrieval - ExampleConsider a simple scenario where some information about an First came the schemas...Let us have a quick look at the input and output schemas... Employee Request SchemaThis is very simple schema with Employee Response SchemaThe output schema contains all the elements related to the employee information. Approach Overview - Steps to Invoke a Web Service
BizTalk MapsIn this project we are using two maps,
Building the Orchestration (also known as a "Business Process")The parallel branch in this orchestration shall invoke the Web Service and perform the Transformation simultaneously. Setting the parameters required to invoke the Web Service WSParamEmployeeInput.EmployeeCode = EmployeeIn.EmployeeCode; WSRequest.employeeInput = WSParamEmployeeInput; System.Diagnostics.EventLog.WriteEntry("Transformation", "EmployeeIn -> WSRequest"); Assigning the TempEmployeeOut = EmployeeOut; System.Diagnostics.EventLog.WriteEntry("Transformation", "Employee In to EmployeeOut"); Assigning the data obtained from the Web Service to the EmployeeOut = TempEmployeeOut; EmployeeOut.EmployeeCity = WSResponse.RetrieveEmployeeResult.EmployeeCity; EmployeeOut.EmployeeName = WSResponse.RetrieveEmployeeResult.EmployeeName; EmployeeOut.EmployeeDept = WSResponse.RetrieveEmployeeResult.EmployeeDept; EmployeeOut.EmployeeEmail =WSResponse.RetrieveEmployeeResult.EmployeeEmail; List of various messages used in the Orchestration... Executing the DEMOInput XML File
Notice the input file data. The Solution Explorer
Observe the various artifacts in the Solution Explorer. Output XML File
The output XML file has all the information about the Employee. About the Downloadable Code
Quick Takeaways
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||