08-30-05 01:01 PM
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 so
me
>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.
[ Post a follow-up to this message ]
|