Encountered InfoPath namespace problems, ns0 or ns1

Source: Internet
Author: User
Tags biztalk

Background:

This problem occurs when BizTalk is used with InfoPath + WSS.

Biztalk implements an xsd schema and uses infopath as a template. When publish is added to the wss site, a custom column is added. When writing the BizTalk WSS Adapter, no value is found.

% XPATH = // ns0: People/Approve/Status %

Furthermore, the view for filter fields does not work at all.

Later, I tried again and found that if I changed the namespace prefix from ns0 to ns1, it would pass,

Normal files can be operated, but it is found that biztalk can only generate ns0 and ns1,

 

Solution: There are two solutions

1. unbind the xsn file, modify the manefest. xsf file, change ns1 to ns0, then package again, and then publish again. Note that you may need to modify the view of the template.

Or

2. When defining the schema, add the following sentence:

Xmlns: ns0 = <target namespace>

Xmlns: ns0 = http://gulou.bta.canlian.peoplemessage/

In this way, ns0 is used as the namespace prefix in the template for schema import.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.