IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Need Example for WebService Call from Cobol program


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
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
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).

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

Moderator Emeritus


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

PostPosted: Tue May 12, 2009 7:44 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top