开发者

BizTalk namespace default prefix

BizTalk produced namespace default prefix as 开发者_StackOverflow中文版NS0. Is there a way to override it to generate something different without utilizing an XSLT (it's an overhead when the schema changes, XSLT has to be updated as well)? Something like

<pidx:Invoice> 

and not

<ns0:Invoice>

This should be simple (after all it's just a namespace prefix), but clients are parsing document instead of using it as an XML with namespace, and having no expected namespace prefix causes them grief.

Thank you.


No, there's not.

A kludgey answer is to convert the XML to a string and search/replace.


You can do this. I had to do this when calling a Google API, which requires specific namespace prefixes.

The method is to use the Imports property at the <Schema> level in your XSD. Using the Imports dialog you can define specific prefixes on each namespace.

You will have to break up your schema into at least two separate XSD's so you can import one into the other and redefine the prefix at that time.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜