How to call a WCF service with per session instantiation mode from BizTalk RRS feed

  • Question

  • I have a WCF service instantiated in per session mode. I want to consume this service in BizTalk. This service returns thousands of records for a particular day. If the records are more than 100 then it returns records in chunks of 100. It has two methods SetParameters and GetRecords. 

    Since BizTalk send port instance is created when it has to send the message and it is destroyed when its job is done and it uses async communication pattern i.e. the proxy instance is not preserved.

    Is is possible to consume such a service from BizTalk?
    Tuesday, May 19, 2009 2:02 AM

All replies

  • I do not think this is possible. BizTalk service instances are by default sessionless from a WCF perspective. I would suggest running a Windows service to wrap the per session WCF calls. This is one of the few cases where a custom adapter may not provide what you need and a Windows service would be better.


    If this answers your question, please use the "Answer" button to say so | Ben Cline
    Thursday, April 1, 2010 10:03 PM