DEV Community

Daniel Jonathan
Daniel Jonathan

Posted on • Originally published at biztalkdj.blogspot.com on

BizTalk ESB Toolkit: Two-way Request Response Itinerary process | Web Service call from ESB | Part 1

In this article, I would demonstrate how to develop a 2 way itinerary process invoking a web service. This can be achieved in 2 ways, either service request transformation at On-Ramp or at Off-Ramp. If we have to use transformation at on ramp or off ramp ESB Dispatcher component should be used in the pipeline.

Itineraries :-

Service request transformation at On-Ramp

{OnRamp[Static Resolver,Two-Way Receive Port] -->Messaging Extender[Static Map Resolver, Canonical Xform]-->Messaging Extender[Static Map Resolver, Service Request Xform]}-->Off-Ramp Extender[Static Routing Resolver] -->OffRamp[Two-Way-Dynamic Send Port]

1

Service request transformation at Off-Ramp

{OnRamp[Static Resolver,Two-Way Receive Port] -->Messaging Extender[Static Map Resolver, Canonical Xform]}-->Off-Ramp Extender[Static Routing Resolver] -->{Messaging Extender[Static Map Resolver, Service Request Xform]-->OffRamp[Two-WayDynamicSendPort]}

1

Receive Port Configurations :

Two-way receive port with WCF-Custom webHttpbinding, shown below

1

Dynamic Send Port Configurations :

Here is a screen shot of send ports,

1
Deploy the itinerary and start the application, then test the solution by placing a request through fiddler and wait the response of the process. Refer test results below,

1

Conclusion

In this article, I illustrated how to develop an itinerary process to invoke web service and respond back to caller.

Top comments (0)