Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Consuming WCF services without using orchestration
- This topic has 2 replies, 1 voice, and was last updated 9 years, 10 months ago by
community-content.
-
AuthorPosts
-
-
April 3, 2009 at 12:10 PM #22077
Does anyone know of any sample that exists where you can consume WCF services without using orchestration?
What I wanted to achieve was using a receive location get an XML message (<Person xmlns=”http://www.biztalkgurus.com/wcf”><ID>123</ID><Name>Joe</Name></Person>) into the message box. A WCF send port that subscribes to the above receive port takes the message above and sends it to a WCF service. The WCF service is as described below
OperationContract: void AddPerson (Person person);
DataContract:
public class Person {
public int ID {get; set;}
public string Name {get; set;}
}
When I tried this on my development box, I get the following error:
System.ServiceModel.FaultException: The message could not be processed because the action ‘<BtsActionMapping xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema“>
<Operation Name=”AddPerson” Action=”http://tempuri.org/IService1/AddPerson” />
</BtsActionMapping>’ is invalid or unrecognized.
— End of inner exception stack trace —Server stack trace:
at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.EndRequest(IAsyncResult result)Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at System.ServiceModel.Channels.IRequestChannel.EndRequest(IAsyncResult result)
at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.RequestCallback(IAsyncResult result)”.Thanks
-
April 4, 2009 at 12:11 PM #22085
I was able to make this work by setting the soap-action header (WCF Configuration) to http://tempuri.org/IService1/AddPerson.
-
April 28, 2009 at 3:57 AM #22244
Hi Oscar,
Care to package your solution and share? I’m looking to implement a pure messaging solution for consuming web service without using orchestration. Thanks.
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.