MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Web Services problem

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
mdlipay
Beginner


Joined: 25 Feb 2013
Posts: 5
Topics: 3
Location: Pittsburgh

PostPosted: Mon Apr 25, 2016 1:06 pm    Post subject: Web Services problem Reply with quote

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.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Mon Apr 25, 2016 3:18 pm    Post subject: Reply with quote

mdlipay,

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

Parsing SOAP messages
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group