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

WEB call from cics to restful using JSON data


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
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
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: 2455
Location: Hampshire, UK

PostPosted: Fri Oct 18, 2013 2:11 pm
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
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Oct 18, 2013 2:30 pm
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Oct 18, 2013 4:39 pm
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Oct 18, 2013 4:43 pm
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
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
Reply with quote

Try this link, from the Redbook: This regards to Atom data-exchange with REST.
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Using API Gateway from CICS program CICS 0
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top