Microsoft.BizTalk.DefaultPipelines.XMLReceive
(1)
Microsoft.BizTalk.DefaultPipelines
(1)
Visual Studio
(1)
BizTalk
(1)
Project3.Employee
(1)
XMLReceive
(1)
DocumentSpecNames
(1)
PublicKeyToken
(1)

XML validation

Asked By Samuel Braun
27-Jun-07 03:45 AM
Hello

My goal is to validate each incoming message to a XSD schema which is
deployed with the BT orchestrations. After doing some research and tries on
this I still have the following questions:

If I use the receive pipeline XMLReceive, I have to set ValidateDocument to
true and DocumentSpecNames to the schema I want the validation for. But if I
do this, the MessageType property of my message is not promoted anymore,
why?

What's the difference between validation in the XML disassembler component
and using an XML validator?

Thanks in advance

Regards
Samuel

In your XmlDisassembler just set the ValidateDocument property to true and

Asked By saravanam
27-Jun-07 06:42 AM
In your XmlDisassembler just set the ValidateDocument property to true and
don't set any DocumentSpecNames (Runtime will try to resolve it automatically
from deployed schemas).

Xml Validator component is a general purpose component and can be deployed
in any stages (excluding Disassemble and Assemble stage), so that give you an
opportunity to place it even on the send pipeline if you want some validation
to be performed before sending the message.

--
Regards,
Saravana Kumar
http://www.biztalk247.com/v1/
http://www.digitaldeposit.net/blog
[Please mark the response as "Answer" if it solves your problem.]

Hello SaravanaThanks for your answers.

Asked By Samuel Braun
27-Jun-07 08:22 AM
Hello Saravana

Thanks for your answers. Now I understand the difference between
XmlDisassembler validation and XmlValidator.

I did it on my BTS 2006 R2 installation, but got the following error in the
event log:

There was a failure executing the receive pipeline:
Microsoft.BizTalk.DefaultPipelines, Version=3.0.1.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" Source: "XML disassembler" ... Reason:
Validation can only be performed when document schemas are provided.

The needed schemas are all deployed with the application. I also validated
my test XML document with the BizTalk SDK schema validation functionality in
Visual Studio.

Thanks in advance

Greetings Samuel

I tried an example and got the same error "Validation can only be performed

Asked By saravanam
27-Jun-07 11:42 AM
I tried an example and got the same error "Validation can only be performed
when document schemas are provided"....thats really strange according to
documentation runtime should resolve and pick up the schema name
automatically.

Anyway. Set the following properties for your XmlDisassembler (via Configure
Pipeline window in BizTalk admin console)
1. Validate Document : True
2. DocumentSpecName in the format "BizTalk_Server_Project3.Employee, BizTalk
Server Project3, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=f517ff157643df71"

You can get this information by clicking on the schema node inside the
biztalk application. Combination of
Name + "," + Assembly

--
Regards,
Saravana Kumar
http://www.biztalk247.com/v1/
http://www.digitaldeposit.net/blog
[Please mark the response as "Answer" if it solves your problem.]
XML validation
Asked By Jan Eliasen
27-Jun-07 03:11 PM
On Wed, 27 Jun 2007 08:42:03 -0700, Saravana Kumar

Yes, it really sucks that that doesn't work :-)

Anyways, I believe the Validation component will do it. So use a
custom pipeline with both the XML disassembler (without validation
turned on) and the validator component after that. That should work.

--
eliasen, representing himself and not the company he works for.

Private blog: http://blog.eliasen.dk

Private email: jan@eliasen.dk
Hello SaravanaThanks again for your help.
Asked By Samuel Braun
28-Jun-07 02:19 AM
Hello Saravana

Thanks again for your help. When I set the schema name like you described it
works!

Thanks again
Regards
Samuel
Hello JanAlso a good idea, which I will try.Thanks for your helpGreetingsSamuel
Asked By Samuel Braun
28-Jun-07 02:20 AM
Hello Jan

Also a good idea, which I will try.

Thanks for your help
Greetings
Samuel
Post Question To EggHeadCafe