|
Home > Archive > BizTalk Server Applications Integration > June 2005 > Xml validation on port level
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Xml validation on port level
|
|
| Alistair Lacy 2005-06-23, 7:49 am |
| Hi
I need to do the most basic message, a simple pickup and drop. I do however
need to ensure that the message if validated against the schema. I know this
is a simple task in 2000 / 2002. However in 2004 I can't find out where to
set the schema on a port or location level.
Additionally, is there a problem in not setting the targetNamespace of the
schema. My concern being that the documents I receive aren't qualified with a
namespace and my validation fails if I have the namespace set on the schema.
Can I make the namespace optional?
Many thanks
Al
| |
| Marvin Smit 2005-06-23, 7:49 am |
| Hi Al,
What you need to do is set up a receive pipeline, add the XMLValidator
component and add the schema's in the document-schemas collection for
the ones you want validate against.
Use this pipeline in the ports.
Hope this helps,
Marvin Smit
On Thu, 23 Jun 2005 03:04:03 -0700, "Alistair Lacy"
<AlistairLacy@discussions.microsoft.com> wrote:
>Hi
>
>I need to do the most basic message, a simple pickup and drop. I do however
>need to ensure that the message if validated against the schema. I know this
>is a simple task in 2000 / 2002. However in 2004 I can't find out where to
>set the schema on a port or location level.
>
>Additionally, is there a problem in not setting the targetNamespace of the
>schema. My concern being that the documents I receive aren't qualified with a
>namespace and my validation fails if I have the namespace set on the schema.
>Can I make the namespace optional?
>
>Many thanks
>
>Al
| |
| Deepak Lakshmanan 2005-06-24, 5:54 pm |
| Hi,
To answer you second question, namespaces can be optional as long as Root
node of your schema is unique across all deployed schemas in Biztalk.
Another option is to do a preprocess of the message in a Custom pipeline and
add the namespace.
Hope this helps
Deepak
http://deepakl.blogspot.com/
"Alistair Lacy" wrote:
> Hi
>
> I need to do the most basic message, a simple pickup and drop. I do however
> need to ensure that the message if validated against the schema. I know this
> is a simple task in 2000 / 2002. However in 2004 I can't find out where to
> set the schema on a port or location level.
>
> Additionally, is there a problem in not setting the targetNamespace of the
> schema. My concern being that the documents I receive aren't qualified with a
> namespace and my validation fails if I have the namespace set on the schema.
> Can I make the namespace optional?
>
> Many thanks
>
> Al
|
|
|
|
|