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.

 View Only
  • 1.  pub.schema:validate (error NV-003)

    Posted Wed June 07, 2017 09:38 AM

    Hi all,

    I tried to validate xml using xsd.
    I have xsd file as attached and convert in to xml document type.
    When I tried to call pub.schema:validate I got error NV-003 =>
    pathname : /IncomingDaily
    error message :[ISC.0082.9003] Unable to locate a matching element declaration

    are there any problem in my xsd or xml?
    Please help.
    thanks
    test.xml (1.57 KB)
    xsdtest.xsd (6.68 KB)


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: pub.schema:validate (error NV-003)

    Posted Wed June 07, 2017 11:18 AM

    Hi Junedi,

    can you provide a screenshot of your pub.schena:validate configuration?

    Provide screenshots of the generatted DocType and schema as well.

    Most likely you will have to create a DocType node in Designer by using the xsd as a source.
    You can then validate against the schema node which has been created along side with the document(s).

    See IS Built-In Services Guide for further informations.

    Regards,
    Holger


    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: pub.schema:validate (error NV-003)

    Posted Wed June 07, 2017 12:12 PM

    Hi Holget,

    Thank you for your reply,
    I have created xml document type by that xsd.
    Flow in my services.

    1. Getfile (string)
    2. XmlStringToNode
    3. Validate
      Belongsto variable => schema created from xsd.

    Still got the same error


    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: pub.schema:validate (error NV-003)

    Posted Wed June 07, 2017 02:16 PM

    Hi Junedi,

    I think I found the issue.

    Your XML-File is missing the namespace declaration, therefore validate cannot lookup the right schema.

    Please add xmlns=“http://schemas.aia.com/claimIncomingDaily/v.1.0” to your Start-Tag:

    Regards,
    Holger


    #webMethods
    #Integration-Server-and-ESB