Web Services problem
Select messages from
# through # FAQ
[/[Print]\]

MVSFORUMS.com -> CICS and Middleware

#1: Web Services problem Author: mdlipayLocation: Pittsburgh PostPosted: Mon Apr 25, 2016 1:06 pm
    —
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.

#2:  Author: kolusuLocation: San Jose PostPosted: Mon Apr 25, 2016 3:18 pm
    —
mdlipay,

Check out the steps 3 and 4 in this link so that you have set addressing correctly.

Parsing SOAP messages



MVSFORUMS.com -> CICS and Middleware


output generated using printer-friendly topic mod. All times are GMT - 5 Hours

Page 1 of 1

Powered by phpBB © 2001, 2005 phpBB Group