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 - variable repeating content

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


Joined: 09 Apr 2007
Posts: 14
Topics: 9

PostPosted: Wed Mar 21, 2012 7:39 am    Post subject: Web services - variable repeating content Reply with quote

I am creating a CICS web service that contains variably repeating content. Basically some data that occurs 1 to 500 times. I found this document that explains how to do this:

http://publib.boulder.ibm.com/infocenter/cicsts/v3r2/index.jsp?topic=%2Fcom.ibm.cics.ts.webservices.doc%2Freference%2FSchemaToHLL%2Fdfhws_cobolvariable.html

Now my question is can I do variable content within variable content? I have tried various methods to do this and am not getting good results! Has anyone seen or done this before?

Thank You!
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Mar 21, 2012 10:18 am    Post subject: Reply with quote

uthaman,

Unless I am mistaken , isn't it a simple case of using a PERFORM statement to capture whatever you are looking for?

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
uthaman
Beginner


Joined: 09 Apr 2007
Posts: 14
Topics: 9

PostPosted: Thu Mar 22, 2012 8:11 am    Post subject: Reply with quote

What I have is a copybook like this:
01 ws-return-info.
05 ws-return-code pic x(2).
05 ws-table occurs 500 times.
10 ws-name pic x(60).
10 ws-location-table occurs 50 times.
15 ws-loc-address pic x(60).

When I create the WSDL from this definition, and then process it back into a cobol format I end up with something like this:

01 ws-data.
05 ws-return-code pic x(2).
05 ws-return-count pic s9(9) comp-5.
05 ws-return-container pic x(16).

01 ws-table.
05 ws-name pic x(60).
05 ws-table-num pic s9(9) comp-5.
05 ws-table-containter pic x(16).

01 ws-location-table.
05 ws-loc-address pic x(60).


ws-return-container points at a container name that contains 0 to 500 WS-TABLE entries. You build that by reading thru a file and building a very large PIC X field. I have:
01 ws-ret-container pic x(600000).

That all works until I introduce the ws-location-table. I am trying to create an unique container name for each ws-table to plug into ws-table-container. But, it seems to be ignored by CICS.

Sorry, I am probably not explaining this very well. I am rather new to doing this myself!
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Thu Mar 22, 2012 8:47 am    Post subject: Reply with quote

there are 50 ws-loc-address's per ws-name

you are processing an inner loop 50 times per ws-name outer loop?
or are you?
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
uthaman
Beginner


Joined: 09 Apr 2007
Posts: 14
Topics: 9

PostPosted: Thu Mar 22, 2012 8:53 am    Post subject: Reply with quote

Yes. There are 1 to 50 location addresses possible for each name. And, 0 to 500 names are possible.

So, for the web service I am not sure how to reference a second container from within a variable number of "parent" containers...
Back to top
View user's profile Send private message
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