Dimension mismatch, List expected

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

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.

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

It should work.

HTH,
RMG

Rob,

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

-Pauly

RMG,

Thank you so much. It worked.

set makeArrays=true and specify arrays=Item

-Pauly

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

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