Home Page › Forums › BizTalk 2004 – BizTalk 2010 › BizTalk Server WCF Receive Port (WCF-Custom) – usupported operation
- This topic has 4 replies, 1 voice, and was last updated 9 years, 10 months ago by
community-content.
-
AuthorPosts
-
-
October 29, 2008 at 1:10 PM #21082
I have question related to WCF Receive port. I have created a WCF-Custom Receive port with ‘BizTalkServerApplication’ as the Receive Handler – configured with Uri, behavior to generate metadata etc… everything as documented but when I try to access the service from a client that references the service, the following code, throws an exception,
BizTalkServiceInstance.
TwoWayAsyncVoidClient client = new BizTalkServiceInstance.TwoWayAsyncVoidClient();
Message newMsg = Message.CreateMessage(MessageVersion.Default, “BizTalkSubmit”, “Testing”
);client.BizTalkSubmit(newMsg);
I get an exception that BizTalkSubmit is not implemented.
How can the service (the Receive port) be accessed from the client? All I need is a WCF receive port to which I can pass messages to from a WCF client. Do not want to define schemas/orchestrations in BizTalk to do that. Just a pass through receive port that allows communication with a WCF client?? Why is all this so complicated Microsoft????
-
October 29, 2008 at 5:33 PM #21084
Which WCF binding are you using? How did you create your proxy? The easiest way to submit a message to BizTalk via WCF would probably be to run the WCF publishing wizard (publish schema) and then use svcutil to generate a proxy. You don’t need to create a schema to publish, just publish the Microsoft.BizTalk.XLANGs.BaseTypes.Any type in the DLL: C:\Program Files\Microsoft BizTalk Server 2006\Microsoft.BizTalk.XLANGs.BaseTypes.
-
October 30, 2008 at 12:44 PM #21098
Thank you Rusel. On the receive location used the wsHttpBinding, proxy was created by adding a service reference in the client. I am going to try your suggestion on using the WCF publishing wizard and as I really do not want to tie any schema will try your suggestion on using ‘BaseTypes.Any’ type. Hopefully, I don’t have any problems there. If there’s some link/resources you can point me it’s much appreciated.
-
November 2, 2008 at 6:08 PM #21123
Russell,
I was able to create a recieve location (with single operation SendMessage) using Microsoft.BizTalk.XLANGs.BaseTypes.Any using the WCF service publish wizard. In the proxy the service operation is exposed as SendMessage(object part) and when I call the operation get an serialization exception – looks like I am not passing in the parameters correctly to the operation.
XmlDocument
doc = new XmlDocument
();doc.Load(
“c:\\mydoc.xml”);
Message newMsg = Message.CreateMessage(MessageVersion.Default,“SendMessage”, new XmlNodeReader(doc));
client.SendMessage(newMsg);
I get an “Error processing request:Type ‘System.ServiceModel.Channerls.BodyWriterMessage’ cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its mermbers you want seralized with the DataMemberAttribute attribute…
Any help is appreciated. I am at a standstill as I am still new to BizTalk and the WCF integration with BizTalk.
Sarah
-
January 23, 2009 at 2:25 PM #21564
Hi Sarah, Did you get this resolved? I am having the same issue.
Anna
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.