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
 

 

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: 29
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: 1712
Location: 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: 29
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: 7223

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: 29
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: 7905
Location: Bellevue, IA

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: 7223

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: 29
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 How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts ODPP(Optim Data privacy Provider) Iss... Rama kishore IBM Tools 1 Mon Nov 07, 2016 5:46 pm
No new posts CICS NEW SIT PARAMETERS CICS BEHAVIOR... Kyle Carroll CICS 0 Fri Nov 04, 2016 11:55 pm
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm


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