alle Technical posts

Importing two schemas of the same namespace in BizTalk

It’s a common practice to reuse schemas and types within your BizTalk solution. Lately, I’ve encountered an issue regarding this. Here you can find a simplified example and a solution to the problem.

It’s a common practice to reuse schemas / types within your BizTalk solution.  Lately, I’ve encountered an issue regarding this.  Here you can find a simplified example and a solution to the problem.

Assume you have two reusable schemas (no dependencies between them):

–   http://schemas.codit.eu/common#Address

–   http://schemas.codit.eu/common#ContactInformation

Now you want to create a “Person’ schema in the http://schemas.codit.eu namespace, by reusing the previous schemas.

–   First you need to import the Address schema

–   Secondly you need to import also the ContactInformation schema.  This results in the error:

The namespace of the schema you are trying to add clashes with one of the namespaces already declared.  Please choose another schema.

image

Although, in XSD this is not a limitation.  So I’ve tried to work around the BizTalk Schema Editor and opened the XSD as an XML file.  I’ve manually added the XSD import of the ContractInformation schema:

image

After this workaround, I’ve opened the schema again with the BizTalk Schema Editor, without any errors.  It just seems to be a limitation of the BizTalk Schema Editor.

image

Abonneer je op onze RSS feed

Hallo,
hoe kunnen we je helpen?

Een project in gedachten?

Neem contact op

Let's talk

Let's talk

Bedankt, we nemen snel contact op met je!

Bel ons

Bedankt, we sturen het verhaal naar jouw inbox

Ongeldig email-adres

Verstuur

Je download zal binnen enkele seconden starten!

Houd contact met ons - schrijf je in voor onze nieuwsbrief

Blijf op de hoogte van trends, events en de laatste verhalen van klanten

Ongeldig email-adres

Verstuur

Mooi, je bent ingeschreven!