webservice (Schema) didn’t validate file

Home Page Forums BizTalk 2004 – BizTalk 2010 webservice (Schema) didn’t validate file

Viewing 1 reply thread
  • Author
    Posts
    • #16570

      I publish a schema as Request Only Web service. In the schema I defined one element LINE to be Max Occur=unbound and Min Occur=1.

       But when a client send a XML doc without a LINE, the file still get through not rejected, and when i validate the schema with the file, it failed.

      I used default XML pipeline to receive files from the webservice, is this the problem? Should define a receive pipeline with the schema for webservice so that client will get a rejected message when the file is not identical with the schema?

      Thanks for help

    • #16571

      The default Xml Receive pipeline does not contain the Xml Validator pipeline component. Validation against an Xml schema is only performed by the Xml Validator component.

      You will need to construct a custom pipeline containing the Xml Disassembler and Xml Validator components.

      If validation fails within this pipeline the default behaviour is to suspend the message. With BTS 2006 you can use the "Route failed messages" functionality to handle failures more constructively.

      • #16604

        When a client sending file to a schema request only web service, and the format is wrong, will the client get rejected?

        Or i have to create and Request/Response web service to reject those invalid files?

         Thanks

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.