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.  Dimension mismatch, List expected

    Posted Mon May 01, 2006 07:08 PM

    Hi All,

    I have a wM web service connector which calls wM flow service. I was testing this flow service by calling the acquireSOAPMessage and then calling extractSOAPRequest ( getBody,queryXMLNode,xmlNodeToDocument) and the output doc is mapped to doc1/nsinput:request. In queryXMLNode the value for fields/query is nsinput:request.

    Input params to extractSOAPRequest
    soapRequestData
    query
    nsinput

    Structure of the doc1

    nsinput:request (doc)
    Items (doc)
    header (doc)
    Item( doc list)

    Here is the structure of xml file used to test this flow service.
    <nsinput:request xmlns:nsinput=“http://Abc/Pkg/Public”>


    St
    A
    2006-04-05 10:08:30


    208
    A
    Desc1
    90


    </nsinput:request>

    If there is only one item then Item will be a doc instead of a doc list.

    When I specified arrays=false and the docTypeName in the nodeToDocument service, the Item is still coming as a doc instead of a doc list, if the no. of item is one.

    Any help would be grealty appreciated.

    Thanks,
    Pauly


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


  • 2.  RE: Dimension mismatch, List expected

    Posted Mon May 01, 2006 07:20 PM

    Add a documentTypeName to your service and pass that to the xmlNodeToDocument call. That will make the resulting doc keep the right structure regardless of the number of entries.


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


  • 3.  RE: Dimension mismatch, List expected

    Posted Mon May 01, 2006 07:24 PM

    Set either documentTypeName or set makeArrays=true and specify arrays=Item.

    It should work.

    HTH,
    RMG


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


  • 4.  RE: Dimension mismatch, List expected

    Posted Mon May 01, 2006 07:29 PM

    Rob,

    Thanks for your response. I had already tried that, but it did not work either.

    -Pauly


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


  • 5.  RE: Dimension mismatch, List expected

    Posted Mon May 01, 2006 07:34 PM

    RMG,

    Thank you so much. It worked.

    set makeArrays=true and specify arrays=Item

    -Pauly


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


  • 6.  RE: Dimension mismatch, List expected

    Posted Mon May 01, 2006 07:39 PM

    Glad to know it worked.

    Rob’s suggestion should also work.Even i use mostly doctypename and no problem with it but for documents like BOD’s,PIP’s etc… which has lot of recursive doclists structures inside gives problems and by setting arrays always worked.

    HTH,
    RMG


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


  • 7.  RE: Dimension mismatch, List expected

    Posted Wed June 28, 2006 08:56 PM

    This would seem to indicate that the incoming document does not structurally match the doc type.


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