Home Page › Forums › BizTalk 2004 – BizTalk 2010 › WCF adapter mapping
- This topic has 3 replies, 1 voice, and was last updated 9 years, 10 months ago by
community-content.
-
AuthorPosts
-
-
May 12, 2010 at 1:03 PM #24680
i am trying to configure wcf send adapter (named s1) to consume a wcf service and i use custom binding, i have a recive adapter (named r1) that recieve xml request from another wcf service, and i set (s1) filter to subscribe to any message that came from r1.
the wcf service has 2 operations op1 and op2, so i configured s1 in action header as follow:
<BtsActionMapping xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema“>
<Operation Name=”op1″ Action=”url of op1″ />
<Operation Name=”op2″ Action=”url of op2″ />
</BtsActionMapping>when a request is recieved the following error is raised:
System.InvalidOperationException: An action mapping was defined but BTS.Operation was not found in the message context.
note that when i configure adapter as follow things work fine
<BtsActionMapping xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema“>
<Operation Name=”op1″ Action=”url of op1″ />
</BtsActionMapping>but when i put 2 operations the above error is raised any help?
-
May 12, 2010 at 2:28 PM #24684
Hi,
See if this MSDN forum thread helps you with your issue:
Daniel.
-
May 12, 2010 at 4:22 PM #24685
Thanks for your support,
i am little confused ,i am not using orchastirations so this means that the mapping i am writting in wcf adapter is not enough and i have to make a custom pipline to populate BTS.Operation context property, and if this the only solution is there is a sample on how to do this ?
Thanks
-
May 12, 2010 at 7:46 PM #24686
Hi,
See the following blogs and articles for more information:
http://www.codeproject.com/KB/biztalk/BizTalk_WCF_Wizard.aspx
http://www.eggheadcafe.com/software/aspnet/33392303/custom-header-elements-wi.aspx
Daniel.
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.