Home Page › Forums › BizTalk 2004 – BizTalk 2010 › SchemaLocation problem
- This topic has 3 replies, 1 voice, and was last updated 6 years, 11 months ago by
community-content.
-
AuthorPosts
-
-
June 20, 2006 at 5:56 PM #13875
The Z: looks kind of suspicious. Did some create the schema or import a schema from a mapped drive, and you don’t have the same mapped drive on your computer?
-
June 20, 2006 at 8:41 AM #13876
Hello,
I generated a schema for a wellformed XML document in BizTalk 2006.
I’d like to use this schema (well, in fact 2 schemas with one importing the other) in BizTalk 2004. However, when validating the original XML document, I get an error message :[quote:bcae7a6e62]error BEC2004: Cannot load schema for the namespace ‘http://namespace2’ – Could not find file \”Z:\\ … \\InvoiceAdditionalNL.xsd\”.. An error occurred at file:///Z:/INVOICE.XML[/quote:bcae7a6e62]
So this seams to be a problem with the second namespace in te schemaLocation attribute when validating in BTS2004. The schemaLocation in the XML document is as follows:
[code:1:bcae7a6e62]<Invoice xmlns=\"http://namespace1\"
xmlns:nl=\"http://namespace2\"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
xsi:schemaLocation=\"http://namespace1 Invoice.xsd http://namespace2 InvoiceAdditionalNL.xsd\">[/code:1:bcae7a6e62]When I remove the schemaLocation, the document validates fine. In BizTalk 2006, the original XML document validates without any problems.
Anyone who knows how to fix this, or knows a workaround? I receive the documents with the schemaLocation specified as above.
Thanks,
Dirk
-
June 21, 2006 at 11:29 AM #13877
Thanks for the replies.
Neal,
The Z is where the project is located. It’s a mapped drive, I use BTS2004 in a VPC image since BTS2006 is installed on my laptop.Greg,
At this time I just validated the document from Visual Studio.
However, I deployed the schema (using default XMLReceive pipeline) and this works without problems!
Strange that Visual Studio behaves different from the actual implementation.Thanks for you help,
Dirk
-
-
-
June 20, 2006 at 8:56 PM #13874
The xsi:schemaLocation attribute on the incoming message provides hints of where to find the schemas. Biztalk is looking for Invoice.xsd and InvoiceAdditionalNL.xsd in the default directory.
How are you validating the Xml document?
Are you using the Xml Validator pipeline component?Can you get the xsi:schemaLocation attribute removed from the document.
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.