| Author |
Validation Of Docuemnts in an orchestration
|
|
| Patrick Wellink 2004-10-22, 7:47 am |
| Ok Simple Question……….
I Have an orchestration that receives SchemaA
Then I have a map that maps SchemaA to SchemaB
But SchemaB is very strict about the content of its strings…
So lets say SchemaA has a field “UserName”,
And SchemaB has a field “ADUSERNAME”
But in schema b it is defined the stribng is 8 long and can contain only
letters and numbers
If I make the map and test a specific file every thing works fine.
Incorrect “UserName(s)” in SchemaA will cause the mapper to fail.
However…… If I put the map in an orchestration and submit the same file…
The mapper will not fail…… and I End up having an invalid SchemaB……
Is there a way I can test an XML on validity inside an orchestration ????????
| |
| Matt Milner 2004-10-25, 5:48 pm |
| see the topics:
Orchestration engine configuration
and
runtime validation
under programming guide/Developing Orchestrations
you can configure schema validation in your orchestrations. Keep in mind
that this adds a LOT of overhead to your orchestration processing and will
slow down your system so weigh the trade offs.
The other way you can handle this is to use a C# component to test against a
schema pretty easily which gives you a bit more flexibility to do this on an
ad hoc basis.
Matt
"Patrick Wellink" <PatrickWellink@discussions.microsoft.com> wrote in
message news:AA7A2AAD-08F0-40F8-ADB2-19B6CE4ECFCF@microsoft.com...
> Ok Simple Question....
>
> I Have an orchestration that receives SchemaA
> Then I have a map that maps SchemaA to SchemaB
> But SchemaB is very strict about the content of its strings.
>
> So lets say SchemaA has a field "UserName",
> And SchemaB has a field "ADUSERNAME"
> But in schema b it is defined the stribng is 8 long and can contain only
> letters and numbers
>
> If I make the map and test a specific file every thing works fine.
> Incorrect "UserName(s)" in SchemaA will cause the mapper to fail.
>
> However.. If I put the map in an orchestration and submit the same file.
> The mapper will not fail.. and I End up having an invalid SchemaB..
>
> Is there a way I can test an XML on validity inside an orchestration
> ????????
>
| |
| Hugo Rodger-Brown 2004-10-26, 7:46 am |
| This is a problem that I've come across when using XPath expressions to
assign xml to messages within an orchestration - I could assign any old
xml to the message, and it wouldn't fail (on schema grounds at least) -
it seems as if there's no validation of message schemas within the
orchestration itself?
Are you using the map in a transform shape?
Hugo
|
|
|
|