Thursday, May 15, 2014

XML Document and property promotion

I had a custom code which returned XMLDocument(xDoc). In my orchestration, I created a message of type XLANG.BaseType.Any (msgAny)
Did following -
msgAny=xDoc;

I wanted message type to be promoted . I used trick of correlation on BTS.MessageType.
But it failed :( :(

After digging at all wrong places, I came to know that msgAny, when assigned value of xml document, it is treated as XDoc and not as XLANG type.
I developed a custom pipeline component and invoked the custom pipeline in my orchestration.
:) :)
And it worked :)
 

Thursday, May 8, 2014

Schema validation in BizTalk WCF Service

Input Validation in a service created using BizTalk WCF Service publishing wizard by "Exposing schema as WCF service" :

I created a WCF service by exposing  schema. To my surprise, the service created is happily accepting all types of messages - regardless of message format/target namespace.

I thought such service have inbuilt restrictions to accept specific type of messages - as per the schema type defined while generating the service.
But I was WRONG!! :( :(

Now what..I need to find out ways to get this done. :|

Trying for MSDN  help -

http://social.msdn.microsoft.com/Forums/en-US/a7a9d957-ea98-4c92-9b4a-5446f00eb519/validation-in-auto-generated-wcf-service?forum=biztalkgeneral