Home Page › Forums › BizTalk 2004 – BizTalk 2010 › BizTalk Server WCF Receive Port (WCF-Custom) – usupported operation › Re: BizTalk Server WCF Receive Port (WCF-Custom) – usupported operation
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