IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Schema Validation issue

    Posted 11/26/08 07:23 PM

    Hi ,

    I have a schema and i am validating inblound XML file but for some reason i am getting following excepton.

    pathName - /PurchaseOrders
    errorCode - NV-003
    errorMessage - [ISC.0082.9003] Unable to locate a matching element declaration

    This is how i am validating inbound file

    pub.file:getFile
    pub.xml.xmlStringToXMLNode
    pub.schema:validate
    pub.xml.xmlNodeToDocument

    I have attached my XSD and XML file for your reference.

    Appreciate your help on this.

    Thanks
    OutBoundPO.xsd (7.06 KB)
    POKJTest.XML (9.44 KB)


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 2.  RE: Schema Validation issue

    Posted 11/26/08 07:40 PM

    I think the namespace declaration is wrong. Try this:
    xmlns:ns0=“http://DRI.iKitchen.BTS.Shared.Schemas.PurchaseOrder.OutBoundPO

    Thanks
    guixia


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 3.  RE: Schema Validation issue

    Posted 11/26/08 07:45 PM

    remove your ns0 definition in the xml, it should look like:


    Your xsd doesn’t have a namespace defined.


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 4.  RE: Schema Validation issue

    Posted 11/26/08 08:48 PM

    Thanks guixia,

    Your solution works.

    Our client forgot to make necessary changes in XSD.

    Thanks all for your help.

    Thanks


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB