Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Need Example for WebService Call from Cobol program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
vvgoud

New User


Joined: 16 Aug 2007
Posts: 27
Location: Hyderabad

PostPosted: Wed Feb 18, 2009 7:10 pm    Post subject: Need Example for WebService Call from Cobol program
Reply with quote

Hi,

Below is my Requirement.
I will enter some some cars information on the CICS screen and send to RailInc through web Service call for validating cars information and Railinc validate the cars information and if any of car information is wrong then they will send back wrong cars information through webservice call Resoponse.


How to send the Cars information through WebService call from Cobol program , I am very thankful if somebody send the documentation of webservice calls or sample program.

EXEC CICS INVOKE WEBSERVICE(WS-WEBSERVICE-NAME)
CHANNEL(WS-CHANNELNAME)
URI(WS-ENDPOINT-URI)
OPERATION(WS-OPERATION)
RESP(RESP)
RESP2(RESP2)
END-EXEC.

EXEC CICS PUT CONTAINER(WS-SERVICE-CONT-NAME)
CHANNEL(WS-CHANNELNAME)
FROM(REQUESTDATA)
END-EXEC.


EXEC CICS GET CONTAINER(WS-SERVICE-CONT-NAME)
CHANNEL(WS-CHANNELNAME)
INTO(RESPONSEDATA)
END-EXEC

Please let me know if you need any more details.

Thanks,
VVGOUD.
Back to top
View user's profile Send private message

Jagan Sachidanandam

New User


Joined: 11 Aug 2008
Posts: 14
Location: India

PostPosted: Mon May 11, 2009 2:47 pm    Post subject:
Reply with quote

Hi,

Please go through the IBM Manual, Implementing CICS web services. It will be useful. They are several methods to interface with other systems. You can use commands like EXEC CICS WEB RECEIVE or EXEC CICS WEB SEND. You can also try using EZACICAL.
Back to top
View user's profile Send private message
Jonathan Sayles

New User


Joined: 03 May 2009
Posts: 3
Location: N.C./U.S.

PostPosted: Tue May 12, 2009 3:52 pm    Post subject: RDz and WebServices
Reply with quote

Another option would be for you to look at the Rational Developer for System z workbench from IBM - which contains Wizards that assist in creating "top-down", "bottom-up" and "meet-in-the-middle" Web Services - from CICS and IMS TM application code (either COBOL or PL/I).

http://www.ibm.com/developerworks/rational/library/08/dw-rt-rbdwebserv/

This will shorten your development time by at least an order of magnitude
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue May 12, 2009 7:44 pm    Post subject: Reply to: Need Example for WebService Call from Cobol progra
Reply with quote

Hello Jon and welcome to the forum,

After that first post, it is all downhill icon_smile.gif

Good to see you,

d
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts INVOKE WEBSERVICE error danik56 CICS 11 Thu Mar 09, 2017 11:52 am
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us