View previous topic :: View next topic
|
Author |
Message |
mukun264
New User
Joined: 01 Jan 2008 Posts: 32 Location: Bangalore
|
|
|
|
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 |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
What on earth, or anywhere else, is a "restful" server? |
|
Back to top |
|
|
mukun264
New User
Joined: 01 Jan 2008 Posts: 32 Location: Bangalore
|
|
|
|
Yes server is restful server and client is mainframe cics. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
Back to top |
|
|
mukun264
New User
Joined: 01 Jan 2008 Posts: 32 Location: Bangalore
|
|
|
|
The above page is useful in open source programming.How can use JSON in cics |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
The link I provided was in lieu of you explaining RESTful. |
|
Back to top |
|
|
mukun264
New User
Joined: 01 Jan 2008 Posts: 32 Location: Bangalore
|
|
|
|
Yes i have read that book but they talk something else like DFHJSON module etc which is not able in our shop |
|
Back to top |
|
|
haimzeevi
New User
Joined: 01 Mar 2010 Posts: 27 Location: Israel
|
|
Back to top |
|
|
|