mdlipay Beginner
Joined: 25 Feb 2013 Posts: 5 Topics: 3 Location: Pittsburgh
|
Posted: Mon Apr 25, 2016 1:06 pm Post subject: Web Services problem |
|
|
Pardon if this is the wrong place, but couldn't find a WS forum.
I am trying to read in a child segment in a container, but keep getting either a CONTAINERR or the parent information.
Here is the incoming XML from SoapUI
Code: | <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tfs="http://Lib_TFSCanadaMainframe_1.0/PricingAvail/TFSPricingAndAvailInterface">
<soapenv:Header/>
<soapenv:Body>
<tfs:PricingAndAvail>
<PricingAndAvailInput>
<ClientId>requestPriceAvail</ClientId>
<AccountNumber>5124080</AccountNumber>
<TarrifCode>FREE</TarrifCode>
<Items>
<CatNo>SH3039603</CatNo>
<OrderQty>1</OrderQty>
</Items>
</PricingAndAvailInput>
</tfs:PricingAndAvail>
</soapenv:Body>
</soapenv:Envelope> |
In this case Items is the child segment, and is repeatable. The information from the Cobol copybook:
Code: | * CONTAINER 'Items-cont' contains 'Items-num' instances of
* structure 'P3XPAI01-Items', each of which represents an
* instance of XML element
* '/PricingAndAvail/PricingAndAvailInput/Items'. The CONTAINER
* must be read from and written to in BIT mode.
* There should be at least '0' instance(s).
* There is no maximum number of instances.
* 09 Items-num PIC S9(9) COMP-5 SYNC.
* 09 Items-cont PIC X(16).
*
*
*
* This structure describes one instance of the data in CONTAINER
* 'Items-cont'.
* 01 P3XPAI01-Items.
* 03 Items. |
When I execute the following call I get the CONTAINERR, saying the container doesn't exist.
Code: | EXEC CICS GET CONTAINER ('Items-cont')
INTO (WEB-SVCS-IN)
FLENGTH (WEB-SVCS-IN-LEN)
NOHANDLE
END-EXEC. |
If I execute the code using the name of the parent (PriceAvl) then I just get the parent information again. I can't seem to get the child data. |
|