|
Home > Archive > Commerce Server General > October 2006 > CS 2007 rejects imports with a namespace qualifier
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 |
CS 2007 rejects imports with a namespace qualifier
|
|
| CodeDigger 2006-10-12, 1:25 am |
| Commerce Server 2007 rejects imports with a namespace qualifier – as in a
root with ns0:
<ns0:MSCommerceCatalogCollection2 version="3.0"
xmlns:ns0="http://FolicaIntegration.CommerceServer.Adapter.MessageSchemas.Catalog">
<body />
</ns0:MSCommerceCatalogCollection2>
But accepts when no namespace qualifier is present (w/o ns0
<MSCommerceCatalogCollection2 version="3.0" xmlns
="http://FolicaIntegration.CommerceServer.Adapter.MessageSchemas.Catalog">
<body />
</MSCommerceCatalogCollection2>
Although these documents from a XSD namespace qualification perspective are
identical and both are validated by all Xml tools as valid against the schema.
Since Biztalk always generates the ns0 prefix from transforms, and I don’t
want apply hacks like this [
http://codebetter.com/blogs/jeff.ly.../09/129054.aspx ], can
this be turned off with some switch or setting in Commerce Server?
| |
| Alan Faulkner 2006-10-13, 7:33 pm |
|
Unfortunately, You are going to have to remove the namespace qualifiers
from the xml message.
Thanks,
Alan Faulkner
[Microsoft]
http://blogs.msdn.com/akfaulkner
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2006 Microsoft Corporation. All rights
reserved.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
| |
| Colin Bowern 2006-10-13, 7:33 pm |
| As Alan mentioned you'll likely need to remove those namespaces. A custom
pipline component on the BizTalk end will be your best bet for removing the
data. You can load it up into the DOM and remove it using XmlDocument or do
a Regex search and replace.
Cheers,
Colin
"CodeDigger" <CodeDigger@discussions.microsoft.com> wrote in message
news:7E6DD096-A8BC-4AF7-B3AA-98BAEFE01F17@microsoft.com...
> Commerce Server 2007 rejects imports with a namespace qualifier - as in a
> root with ns0:
>
> <ns0:MSCommerceCatalogCollection2 version="3.0"
> xmlns:ns0="http://FolicaIntegration.CommerceServer.Adapter.MessageSchemas.Catalog">
> <body />
> </ns0:MSCommerceCatalogCollection2>
>
>
> But accepts when no namespace qualifier is present (w/o ns0
>
> <MSCommerceCatalogCollection2 version="3.0" xmlns
> ="http://FolicaIntegration.CommerceServer.Adapter.MessageSchemas.Catalog">
> <body />
> </MSCommerceCatalogCollection2>
>
> Although these documents from a XSD namespace qualification perspective
> are
> identical and both are validated by all Xml tools as valid against the
> schema.
>
> Since Biztalk always generates the ns0 prefix from transforms, and I don't
> want apply hacks like this [
> http://codebetter.com/blogs/jeff.ly.../09/129054.aspx ],
> can
> this be turned off with some switch or setting in Commerce Server?
>
|
|
|
|
|