|
Home > Archive > BizTalk Server Applications Integration > August 2005 > Warning: The qualified name has been replaced with namespace...
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 |
Warning: The qualified name has been replaced with namespace...
|
|
| Abel Chan 2005-08-29, 8:50 pm |
| Hi there,
I am trying to create a schema specification by using BizTalk 2002 Editor.
I imported a XML document that has soap envelope and different name spaces.
I am getting: "The document being imported uses namespace(s). It will not
validate against the imported schema." dialog box. I click OK and I got some
warnings on the Warnings tab:
Warning: The qualified name "soap-env:Envelope" has been replaced with
"soap-env_Envelope".
Warning: The qualified name "soap-env:Header" has been replaced with
"soap-env_Header".
A sample xml document is shown below. How could I create a specification
with this xml document? Could you help me resolve this? Many thanks.
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Header>
<c:Credentials xmlns:c="http://Jupiter/MyCredentials/">
<UserName>myname</UserName>
<Password>mypassword</Password>
</c:Credentials>
</soap-env:Header>
<soap-env:Body>
<Moon:SetData xmlns:Moon="http:/Moon/SetData/">
<AccountDay>2005-08-29</AccountDay>
</Moon:SetData>
</soap-env:Body>
</soap-env:Envelope>
Abel Chan
| |
| Jan Eliasen 2005-08-30, 8:01 am |
| On Mon, 29 Aug 2005 16:45:02 -0700, Abel Chan <awong@newsgroup.nospam>
wrote:
>I am trying to create a schema specification by using BizTalk 2002 Editor.
>I imported a XML document that has soap envelope and different name spaces.
>I am getting: "The document being imported uses namespace(s). It will not
>validate against the imported schema." dialog box. I click OK and I got some
>warnings on the Warnings tab:
Are you sure you need to specify a schema for the entire document,
including the SOAP-envelope?
Basically, if you specify an envelope on the receive function, that is
a "Custom XML", but is not associated with a documetn specification,
then the SOAP-header will be stripped, and only the body is sent on to
BizTalk.
This leaves you with the problem of the namespaces of the body.
BizTalk 2002 does not support them, so you need a workaround. I
programmed a preprocessor once, that will strip all qualifiers from an
incoming document. Then you can have a schema that validates the
document. If you want the code to strip the qualifiers(namespaces),
you can download my preprocessor from
http://www.eliasen.dk/biztalk/bizhdapppreprocessor.zip
--
Jan Eliasen, representing himself and not the company he works for.
| |
| WenJun Zhang[msft] 2005-08-30, 8:01 am |
| Hi Abel,
As I know, Biztalk 2002 doesn't support multiple namespaces.. So you
may remove c and Moon from the input xml doc to have a test. Is this
possible? The following KB describes a similar scenario:
306517 PRB: BizTalk Editor Error When You Import Excel 2002 XML
Worksheet
http://support.microsoft.com/?id=306517
Best regards,
WenJun Zhang
Microsoft Online Partner Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
|
|
|
|
|