Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us