Samples of Orchestrations exposed as WCF services
I'm looking for some examples (sample projects) of Orchestrations exposed as WCF services.
I have no problem using the BizTalk WCF Service Publishing Wizard to expose an Orchestration as a webservice, but I'm looking for more advanced B2B scenarios where the client is authenticated based on CardSpace or Client certificates.
I am also looking for examples that are BizTalk specific, as I have noticed that web.config files differ between simple IIS hosted WCF solutions and IIS hosted WCF solutions connection to BizTalk. The difference being around the <endpoint> declaration - when exposing a BizTalk Orchestration it seems the endpoint is not defined in the web.config (I'm guessing this is programmatically inserted behind the scene based on the receive port config?).
Anyway, in the "Windows Communication Foundation (WCF) and Windows CardSpace Samples" (from
http://www.microsoft.com/downloads/details.aspx?familyid=0043041F-95D6-4EB7-966A-C21A737E193A&displaylang=en) under WCF_Samples\TechnologySamples\Basic\Binding\WS\MessageSecurity\Certificate there is a nice example. Is it possible we could get a BizTalk version of this example?
Thanks,
Allan.
Hi Allan,
WCF endpoints consist of three elements: address, binding and contract (abc).
The address and binding information are stored in the BTS receive location itself, and configurable through receive location UI. WCF receive adapters actually use typeless messages in contracts behind the scenes, and accept any WCF messages. On the other hand, if your orchestration/BTS schemas require messages of specific types, you can use the BTS WCF publishing wizard to generate message contracts against the orchestration ports or schemas. Web.config file in the receive locaiton vDir is optional, but can be used for different purposes, such as enabling WCF performance counters and WCF message logging.
I took a look at the certificate WCF sample. It should be quite easy to implement it using BTS WCF adapters.
For the client, you can create a BTS send port with WCF-WsHttp adapter, and choose the Message security mode, and Certificate clientcredentials options.For the service, you can create a BTS receive location with WCF-WsHttp adapter and choose the Message security mode, and Certificate clientcredentials and include exception details options.
I believe that we'll have a walkthrough for a similar scenario in WCF adapter product documentation.
Thanks,
Karahan