Hi,
I am calling a Restful Service from BizTalk. Here is the link (http://social.msdn.microsoft.com/Forums/en-US/biztalkgeneral/thread/e57cff62-8990-4060-92e8-c31359dcebfe) shows how i am calling the Restful Service from BizTalk 2010.
Restful Service is validating the data coming from BizTalk and the entire BizTalk application is working as expected for valid data. For Invalid data, the restful service throws an exception. The message get suspended in the Static Solicit-Response Send Port in BizTalk and, the send port is not capturing the actual exception that restful service is throwing.
Error Description in SendPort:
System.Xml.XmlException: CData elements not valid at top level of an XML document. Line 1, position 3.at System.Xml.XmlExceptionHelper.ThrowXmlException(XmlDictionaryReader reader, XmlException exception)
at System.Xml.XmlUTF8TextReader.Read()
at System.Xml.XmlDictionaryWriter.WriteNode(XmlDictionaryReader reader, Boolean defattr)
at System.ServiceModel.Channels.ReceivedMessage.OnWriteBodyContents(XmlDictionaryWriter writer)
at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfMarshaller.CreateBizTalkMessageStream(Message wcfMessage, IAdapterConfigInboundMessageMarshalling config)
at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfMarshaller.CreateBizTalkMessage(IBaseMessageFactory messageFactory, IAdapterConfigInboundMessageMarshalling marshallingConfig, Message wcfMessage)
at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.RequestCallback(IAsyncResult result)
But, i can see the exception in Fiddler debugging tool. Below is the exception message coming from Restful service:
BizTalk should capture this message and the message will display to the user. Please suggest a solution, how to bring this message into BizTalk.
Vijay