Validating XML in Send Pipeline using an XSD

Home Page Forums BizTalk 2004 – BizTalk 2010 Validating XML in Send Pipeline using an XSD

Viewing 0 reply threads
  • Author
    Posts
    • #18970

      Hello,

      Could anyone give me advice as to how I can use an XSD to validate an outgoing XML file that is created in Biztalk?  My project is using a send Pipeline to Assemble a customized format for this XML file.  I’ve tested an invalid XML file using the XML validator component in my send pipline.  The invalid data passes through the pipeline even though the address length should have caused it to be rejected.

      This is the part of my XSD that I am using to validate:

      <xs:element minOccurs=”0″ name=”ORDERING_CUSTOMER_ADDRESS”>
       <xs:simpleType>
        <xs:restriction base=”xs:string”>
         <xs:maxLength value=”105″ />
        </xs:restriction>
       </xs:simpleType>
      </xs:element>

      I am testing with data whose ordering_customer_address length is greater than 105 characters.  The ordering_customer_address is generated in a Biztalk orchestration by concatenating 5 fields from a SQL Server table: Address(max length is 200), City (max length is 50), State (max length is 50), Zip (max length is 30), Country (max length is 50).  Since the party receiving this XML file cannot validate it, we must validate before we send it.
       
      Thanks!
Viewing 0 reply threads
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.