BizTalk Server General - BTS 2004: Target Namespaces of Referenced Schemas

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > July 2004 > BTS 2004: Target Namespaces of Referenced Schemas





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 BTS 2004: Target Namespaces of Referenced Schemas
Glynn Timmins

2004-07-27, 5:53 pm

Looking at the BTS help topic "Schemas That Use Other Schemas", you'd
be led to believe that schemas can be 'Included' within other schemas
if the Included and Including schemas have the same target namespace,
OR if the tns of the Included schema is blank.

In fact, this help topic has been offered before as an answer to
earlier questions posted within this newsgroup. But... has anyone
actually tried to Include a schema with a blank tns within a schema
with a non-blank tns? As far as I can see, it just doesn't work!!
Biztalk Editor just doesn't want to know!

If anyone knows how to do this, and can offer step-by-step
instructions, I'd be really grateful.

Thanks!

Glynn
Tim Riley

2004-07-28, 2:55 am

Hi Glynn,

Can you explain why you want to have a blank namespace in the first place.
I haven't done this, but I have had to create a copy of the SOAP envelope
schema so that I can add my own custom headers to it, so if you want to have
elements from one schema appear as if they are part of the first schema this
is one (clumsy?) way of doing it.

If you can provide any more info about what you are wanting to achieve in
broader terms I might be able to offer a better suggestion.

Tim

"Glynn Timmins" <glynnatimmins@hotmail.com> wrote in message
news:5228d043.0407270613.2c72f84e@posting.google.com...
> Looking at the BTS help topic "Schemas That Use Other Schemas", you'd
> be led to believe that schemas can be 'Included' within other schemas
> if the Included and Including schemas have the same target namespace,
> OR if the tns of the Included schema is blank.
>
> In fact, this help topic has been offered before as an answer to
> earlier questions posted within this newsgroup. But... has anyone
> actually tried to Include a schema with a blank tns within a schema
> with a non-blank tns? As far as I can see, it just doesn't work!!
> Biztalk Editor just doesn't want to know!
>
> If anyone knows how to do this, and can offer step-by-step
> instructions, I'd be really grateful.
>
> Thanks!
>
> Glynn



Glynn Timmins

2004-07-28, 6:09 pm

Hi Tim,

Thanks for your response. I have a whole library of xsd's (provided by
a third party standards committee) which all "include" a common xsd
(containing many global complex types). Biztalk likes all messages to
have their own unique Target Namespaces, which means all my schemas
need different tsn's. They'll be used for send/receive operations via
the SQL Adapter. Therefore my assumption was that my included.xsd
would have a blank tsn, with each including.xsd having it's own unique
tsn.

I must admit though, I'm a BizTalk rookie, so I'm open to better
suggestions!

Regards, Glynn
Tatyana Yakushev [MSFT]

2004-07-28, 6:09 pm

Documentation is correct.
You can include schema with empty target namespace to a schema with non-empty target namespace as long as there are no conflicts (for example there are no root
nodes with the same name, there are no 2 types with the same name etc). If there is a conflict, you get error message with details like "The global element
'http://BizTalk_Server_Project1.Schema7:Root1' has already been declared. An error occurred at file:///d:/BizTalk Server Project1/Schema7.xsd, (3, 4)."

I just created attached 2 schemas with BizTalk Schema Editor.

By the way, all XSD requirements are not specific to BizTalk, these are standard XSD requirements from W3C. You can always get more information at http://www.w3.org

Regards,
Tatyana
--------------------
>From: glynnatimmins@hotmail.com (Glynn Timmins)
>Newsgroups: microsoft.public.biztalk.general
>Subject: BTS 2004: Target Namespaces of Referenced Schemas
>Date: 27 Jul 2004 07:13:23 -0700
>Organization: http://groups.google.com
>Lines: 17
>Message-ID: <5228d043.0407270613.2c72f84e@posting.google.com>
>NNTP-Posting-Host: 213.194.32.211
>Content-Type: text/plain; charset=ISO-8859-1
>Content-Transfer-Encoding: 8bit
>X-Trace: posting.google.com 1090937604 21131 127.0.0.1 (27 Jul 2004 14:13:24 GMT)
>X-Complaints-To: groups-abuse@google.com
>NNTP-Posting-Date: Tue, 27 Jul 2004 14:13:24 +0000 (UTC)
>Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!proxad.net!

postnews2.google.com!not-for-mail
>Xref: cpmsftngxa10.phx.gbl microsoft.public.biztalk.general:17891
>X-Tomcat-NG: microsoft.public.biztalk.general
>
>Looking at the BTS help topic "Schemas That Use Other Schemas", you'd
>be led to believe that schemas can be 'Included' within other schemas
>if the Included and Including schemas have the same target namespace,
>OR if the tns of the Included schema is blank.
>
>In fact, this help topic has been offered before as an answer to
>earlier questions posted within this newsgroup. But... has anyone
>actually tried to Include a schema with a blank tns within a schema
>with a non-blank tns? As far as I can see, it just doesn't work!!
>Biztalk Editor just doesn't want to know!
>
>If anyone knows how to do this, and can offer step-by-step
>instructions, I'd be really grateful.
>
>Thanks!
>
>Glynn
>



--

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.
Glynn Timmins

2004-07-29, 2:49 am

Thanks Tatyana. Yes, you're right. I did creat an example myself. The
problem's more with the referenced elements within complex types
defined within the included schema. They don't resolve and therefore
don't get displayed within the schema tree. I included some repro
instructions in my other posting.
Tatyana Yakushev [MSFT]

2004-07-29, 5:51 pm

I already replied to your other post and told you that there is a bug in System.XML that will be fixed in next version of .net framework.
I also suggested possible workarounds.

If you have more questions, lets continue discussing in that thread.

Regards,
Tatyana
--------------------
>From: glynnatimmins@hotmail.com (Glynn Timmins)
>Newsgroups: microsoft.public.biztalk.general
>Subject: Re: BTS 2004: Target Namespaces of Referenced Schemas
>Date: 28 Jul 2004 23:47:20 -0700
>Organization: http://groups.google.com
>Lines: 5
>Message-ID: <5228d043.0407282247.640924b4@posting.google.com>
>References: <5228d043.0407270613.2c72f84e@posting.google.com> <JxwVtjNdEHA.1828@cpmsftngxa10.phx.gbl>
>NNTP-Posting-Host: 213.194.32.211
>Content-Type: text/plain; charset=ISO-8859-1
>Content-Transfer-Encoding: 8bit
>X-Trace: posting.google.com 1091083641 9468 127.0.0.1 (29 Jul 2004 06:47:21 GMT)
>X-Complaints-To: groups-abuse@google.com
>NNTP-Posting-Date: Thu, 29 Jul 2004 06:47:21 +0000 (UTC)
>Path: cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-online.de!fr.ip.ndsoftware.net!proxad.net!

postnews2.google.com!not-for-mail
>Xref: cpmsftngxa10.phx.gbl microsoft.public.biztalk.general:18017
>X-Tomcat-NG: microsoft.public.biztalk.general
>
>Thanks Tatyana. Yes, you're right. I did creat an example myself. The
>problem's more with the referenced elements within complex types
>defined within the included schema. They don't resolve and therefore
>don't get displayed within the schema tree. I included some repro
>instructions in my other posting.
>



--

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com