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

Way to invoke web services from COBOL


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Senthilkumar k
Warnings : 1

New User


Joined: 07 May 2009
Posts: 51
Location: Chennai

PostPosted: Sun Oct 21, 2012 4:36 pm
Reply with quote

Hi All, I am able to invoke CICS web services(CWI) from my CICS/COBOL program. Is there any way to invoke web services from pure COBOL program(batch program).

Please help me on the above query please. Thanks in advance.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Sun Oct 21, 2012 4:47 pm
Reply with quote

It may be possible, I do not know,but why would you want to? It is batch and therefor not interactive so why web?
Back to top
View user's profile Send private message
Senthilkumar k
Warnings : 1

New User


Joined: 07 May 2009
Posts: 51
Location: Chennai

PostPosted: Sun Oct 21, 2012 4:54 pm
Reply with quote

Hi Nic Clouston thanks for your quick reply. I wanted this because, during the CICS region down some of the batch jobs will run and produce the reports. I need to send this reports to Web. Also, these reports will have multi language.

If I trigger web services from batch. Then web services will take care of converting the multi languages from EBCDIC to UTF-8 format or other format.

Else, please provide me the way how to covert the EBCDIC to UTF-8. I tried converting this using the DISPLAY-OF and NATIONAL-OF but I am not getting the expected result.
Back to top
View user's profile Send private message
haimzeevi

New User


Joined: 01 Mar 2010
Posts: 27
Location: Israel

PostPosted: Sun Oct 21, 2012 6:32 pm
Reply with quote

Hi Kummar,
Do you use MQSeries in your site? most tasks you mentioned may be carried out by MQ messages, including triggering & page-code transforming. It takes administration to set up queues etc. but less developement.
CICS & Cobol manuals explain how to work with XML, not clear enough for me.
Good luck.
Haim Zeevi
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sun Oct 21, 2012 6:40 pm
Reply with quote

I doubt anything we say will help since you have determined what your solution will be, irrespective of the facts.

If your site has a report management system, such as TRMS/WEB, you should use it instead of designing your own solution.

If your site is running the HTTP server that z/OS can run, it is also possible to have your reports written as files in Unix System Services and let the web browser access the reports.

If you do not know if either of these is implemented at your site, then you have not done NEARLY enough research on the issue yet.
Back to top
View user's profile Send private message
Senthilkumar k
Warnings : 1

New User


Joined: 07 May 2009
Posts: 51
Location: Chennai

PostPosted: Sun Oct 21, 2012 7:05 pm
Reply with quote

Quote:
If your site is running the HTTP server that z/OS can run, it is also possible to have your reports written as files in Unix System Services and let the web browser access the reports.


Hi Rovert Sample, our site is running the HTTP server that z/OS can run. My problem here is, I have stored the Chinese char in VSAM file and I am creating the report using the Chinese char which is available in VSAM file. But, when I display that chinese char in report it is showing like junk char ex:"Za½Wlg " instead of equalent chinese char.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sun Oct 21, 2012 8:07 pm
Reply with quote

Have you investigated what is needed to change the code page in the web browser to display Chinese characters?
Back to top
View user's profile Send private message
Senthilkumar k
Warnings : 1

New User


Joined: 07 May 2009
Posts: 51
Location: Chennai

PostPosted: Sun Oct 21, 2012 9:33 pm
Reply with quote

Yes I have but no luck.
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 COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts How to access web services/website? Mainframe Interview Questions 4
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top