Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
WEB call from cics to restful using JSON data

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
mukun264

New User


Joined: 01 Jan 2008
Posts: 32
Location: Bangalore

PostPosted: Fri Oct 18, 2013 8:49 am    Post subject: WEB call from cics to restful using JSON data
Reply with quote

There is an requirement to send data in JSON format to restful server from cics.

I am able to send the data to server using open system tool. but I am trying to send data from cics using WEB API getting "Bad Request" response from server with status code 400.

The syntax used in program as follow.
WEB SEND POST
from(JSON-data)
mediatype(application/json)


Any idea how to debug the error in cics . like what data is being send to server from cics in http format.what is content in http header etc.
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


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

PostPosted: Fri Oct 18, 2013 2:11 pm    Post subject:
Reply with quote

What on earth, or anywhere else, is a "restful" server?
Back to top
View user's profile Send private message
mukun264

New User


Joined: 01 Jan 2008
Posts: 32
Location: Bangalore

PostPosted: Fri Oct 18, 2013 2:15 pm    Post subject: Reply to: WEB call from cics to restful using JSON data
Reply with quote

Yes server is restful server and client is mainframe cics.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7312

PostPosted: Fri Oct 18, 2013 2:30 pm    Post subject: Reply to: WEB call from cics to restful using JSON data
Reply with quote

Google says...
Back to top
View user's profile Send private message
mukun264

New User


Joined: 01 Jan 2008
Posts: 32
Location: Bangalore

PostPosted: Fri Oct 18, 2013 3:04 pm    Post subject: Reply to: WEB call from cics to restful using JSON data
Reply with quote

The above page is useful in open source programming.How can use JSON in cics
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Fri Oct 18, 2013 4:39 pm    Post subject:
Reply with quote

Have you read the draft Redbook SG24-8161 which is titled Implementing CICS JSON web services for mobile applications? If not, perhaps you should start there since Redbooks have a lot of how-to information in them.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7312

PostPosted: Fri Oct 18, 2013 4:43 pm    Post subject: Reply to: WEB call from cics to restful using JSON data
Reply with quote

The link I provided was in lieu of you explaining RESTful.
Back to top
View user's profile Send private message
mukun264

New User


Joined: 01 Jan 2008
Posts: 32
Location: Bangalore

PostPosted: Fri Oct 18, 2013 4:43 pm    Post subject: Reply to: WEB call from cics to restful using JSON data
Reply with quote

Yes i have read that book but they talk something else like DFHJSON module etc which is not able in our shop icon_sad.gif
Back to top
View user's profile Send private message
haimzeevi

New User


Joined: 01 Mar 2010
Posts: 27
Location: Israel

PostPosted: Wed Nov 20, 2013 8:59 pm    Post subject:
Reply with quote

Try this link, from the Redbook: This regards to Atom data-exchange with REST.
http://pic.dhe.ibm.com/infocenter/cicsts/v4r1/index.jsp?topic=%2Fcom.ibm.cics.ts.internet.doc%2Ftopics%2Fdfhtl_atom_serving.html
Good Luck,
Haim
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Load Module compare showing mismatche... Aditya.Srivastava PL/I & Assembler 5 Tue Dec 10, 2019 8:26 pm
No new posts Identifying Packed Decimal data in a ... sojivarkey TSO/ISPF 4 Sat Dec 07, 2019 5:36 am
No new posts HANDLE AD2R CICS ABEND Nileshkul CICS 4 Sat Dec 07, 2019 12:11 am
No new posts Reading the CSV data in COBOL and mov... wik123 COBOL Programming 4 Tue Dec 03, 2019 5:13 pm
No new posts Extract data from n DB2 Views automat... esmeraldo All Other Mainframe Topics 5 Wed Nov 13, 2019 12:32 am

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