BizTalk Server General - BizTalk 2004 - More than one schema is deployed for the same message type

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > March 2005 > BizTalk 2004 - More than one schema is deployed for the same message type





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 BizTalk 2004 - More than one schema is deployed for the same message type
somefakeaddress@hotmail.com

2005-03-29, 7:49 am

Is it possible to have x schemas, all with unique target namespaces,
but with the same root node name, i.e.:

http://FOO.BAR.Schemas.schema1#Journey,
http://FOO.BAR.Schemas.schema2#Journey,
http://FOO.BAR.Schemas.schema3#Journey?

I can't seem to get it to work properly. I keep getting the "The
disassembler cannot retrieve the document specification by using this
type: "Journey". Either the schema is not deployed correctly, or more
than one schema is deployed for the same message type"-error.

I've queried the bt_DocumentSpec table, but found no duplicates (in the
msgtype column - this is where I'm supposed to be looking, right?) or
missing schemas, so what am I doing wrong?

Thanks,
Niklas Uhlin

Yossi Dahan

2005-03-29, 6:18 pm

What you are trying to do should be possible.
Are you sure the incoming message has one of the namespace in it?

Yossi Dahan
<somefakeaddress@hotmail.com> wrote in message
news:1112098646.431345.157160@g14g2000cwa.googlegroups.com...
> Is it possible to have x schemas, all with unique target namespaces,
> but with the same root node name, i.e.:
>
> http://FOO.BAR.Schemas.schema1#Journey,
> http://FOO.BAR.Schemas.schema2#Journey,
> http://FOO.BAR.Schemas.schema3#Journey?
>
> I can't seem to get it to work properly. I keep getting the "The
> disassembler cannot retrieve the document specification by using this
> type: "Journey". Either the schema is not deployed correctly, or more
> than one schema is deployed for the same message type"-error.
>
> I've queried the bt_DocumentSpec table, but found no duplicates (in the
> msgtype column - this is where I'm supposed to be looking, right?) or
> missing schemas, so what am I doing wrong?
>
> Thanks,
> Niklas Uhlin
>



somefakeaddress@hotmail.com

2005-03-29, 6:18 pm

Thanks for the quick reply.
I'm not exactly sure what you mean by "am I sure the incoming message
has one of the namespaces in it", but this is what the message looks
like:

<?xml version="1.0" encoding="utf-16" ?>
<Journey>
bunch of stuff here...
</Journey>

The thing is, it used to work when I only had a single schema in my
FOO.BAR.Schemas assembly, but the minute I started adding more schemas
to it, everything stopped working. I tried making the RootNode TypeName
for each schema unique as well, but this had no effect what so ever.
Unfortunately, I'm not sure if it is possible to change the format of
the incoming message. If possible, do I need to add anything to the
above XML?

Oh, and I might add... I'm painfully new to BizTalk so I'd appreciate
it if you could keep any answers simple =)

Thanks,
Niklas Uhlin

Scott Colestock

2005-03-29, 6:18 pm

The instance document you have here isn't referencing a schema. If you
right-click on the schema in your solution explorer and select "Generate
Instance", you can see what it needs to look like.

Scott Colestock
www.traceofthought.net



<somefakeaddress@hotmail.com> wrote in message
news:1112106615.878955.174150@o13g2000cwo.googlegroups.com...
> Thanks for the quick reply.
> I'm not exactly sure what you mean by "am I sure the incoming message
> has one of the namespaces in it", but this is what the message looks
> like:
>
> <?xml version="1.0" encoding="utf-16" ?>
> <Journey>
> bunch of stuff here...
> </Journey>
>
> The thing is, it used to work when I only had a single schema in my
> FOO.BAR.Schemas assembly, but the minute I started adding more schemas
> to it, everything stopped working. I tried making the RootNode TypeName
> for each schema unique as well, but this had no effect what so ever.
> Unfortunately, I'm not sure if it is possible to change the format of
> the incoming message. If possible, do I need to add anything to the
> above XML?
>
> Oh, and I might add... I'm painfully new to BizTalk so I'd appreciate
> it if you could keep any answers simple =)
>
> Thanks,
> Niklas Uhlin
>



Yossi Dahan

2005-03-29, 6:18 pm

Your XML does not specify the namespace, this means that BizTalk takes the
root node (Journey) and tries to find a schema for it.
If there's only one schema deployed with that root BizTalk assumes this is
the one you want (although without a namespace its not a unique name), but
if two schemas are found in the repository with the same root node BizTalk
cannot assume nothing about which one you meant to use.

so you have to make sure you provide an XML with a namespace (as Scott
recommended you can try and generate a file from the schema editor and see
how it looks like) or, an alternative is to use a custom pipeline with the
schema set for the xml disassembler to force it to use that one.

I hope that cleared a few points

Yossi Dahan
<somefakeaddress@hotmail.com> wrote in message
news:1112106615.878955.174150@o13g2000cwo.googlegroups.com...
> Thanks for the quick reply.
> I'm not exactly sure what you mean by "am I sure the incoming message
> has one of the namespaces in it", but this is what the message looks
> like:
>
> <?xml version="1.0" encoding="utf-16" ?>
> <Journey>
> bunch of stuff here...
> </Journey>
>
> The thing is, it used to work when I only had a single schema in my
> FOO.BAR.Schemas assembly, but the minute I started adding more schemas
> to it, everything stopped working. I tried making the RootNode TypeName
> for each schema unique as well, but this had no effect what so ever.
> Unfortunately, I'm not sure if it is possible to change the format of
> the incoming message. If possible, do I need to add anything to the
> above XML?
>
> Oh, and I might add... I'm painfully new to BizTalk so I'd appreciate
> it if you could keep any answers simple =)
>
> Thanks,
> Niklas Uhlin
>



somefakeaddress@hotmail.com

2005-03-30, 2:48 am

Aha. I see.

Providing the XML with a namespace worked perfectly, so I didn't bother
trying out the custom pipeline .
Many thanks!

Niklas Uhlin

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com