Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Published Web Service requires xmlns="" for some XML elements

Status
Not open for further replies.

joeyjoeyjoey

Programmer
Nov 23, 2005
1
CA
Hi,

I created an XML schema in BizTalk for XML messages which look like

<report xmlns=" <header>
<messageType>...</messageType>
...
</header>
<anotherElement>...</anotherElement>
...
</report>

and published the schema as a BizTalk Web Service. The Web Service generated however expects XML messages of the form:

<report xmlns=" <header xmlns="">
<messageType>...</messageType>
...
</header>
<someElement xmlns="">...</someElement>
...
</report>

It's okay to send a message to the Web Service without the second xmlns="" (maybe it's because 'anotherElement' is not a complexType) but if I omit the first xmlns="" for 'header', there will be an error.

Has anyone run into this problem before? Or, if this is what BizTalk would do, is there anyway to configure the pulished web service so that it won't ask for the xmlns=""?

Thanks,
Joey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top