Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums 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: 1932
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: 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: 7314

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: 8199
Location: East Dubuque, Illinois, 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: 7314

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 Is CICS BMS logic on z/OS different ... Andi1982 CICS 2 Fri Dec 01, 2017 1:56 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
No new posts Extract Record using range of Data scorp_rahul23 DFSORT/ICETOOL 3 Wed Nov 15, 2017 11:54 pm
No new posts How to get complete URL from CICS Con... mbattu CICS 1 Tue Nov 14, 2017 11:59 pm

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