Q FOR SUPPORT - rcv'g JSON into Aware

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Q FOR SUPPORT - rcv'g JSON into Aware

Post by Jaymer »

Vlad
Are there any future plans where Aware will be able to receive a callback from a service, which contains a JSON msg detailed in this post?

If this was a requirement for a customer/future project, what can you say specifically as to the ability of Aware to handle this?

thx
jaymer...
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Q FOR SUPPORT - rcv'g JSON into Aware

Post by Jaymer »

bump for Vlad
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
aware_support
Posts: 7523
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: Q FOR SUPPORT - rcv'g JSON into Aware

Post by aware_support »

Not sure I understand what the question is about. Your BSV needs to expose a service implemented as REST with JSON. A callback should just call this service.
Aware IM Support Team
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Q FOR SUPPORT - rcv'g JSON into Aware

Post by Jaymer »

In this thread, BobK points out that the Docs says that a GET is the only way to communicate with an exposed service.

But the need is to expose a service which can receive JSON data in the body of a POST, not a GET.

Is this possible now?
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
aware_support
Posts: 7523
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: Q FOR SUPPORT - rcv'g JSON into Aware

Post by aware_support »

Exposed services support both GET and POST
Aware IM Support Team
BobK
Posts: 544
Joined: Thu Jan 31, 2008 2:14 pm
Location: Cincinnati, Ohio, USA

Re: Q FOR SUPPORT - rcv'g JSON into Aware

Post by BobK »

aware_support wrote:Exposed services support both GET and POST
Support, you should make the "User Guide" more clear that an exposed REST-ful service does support POST.


Despite my earlier ignorance, I am now a happy camper. :D

Using build 2628, I created a simple service that implements REST and was able to consume that service with JSON in the body of the request.

Here are some details:
BSV: TestPost
Service: TestRest
Input BO to my implementing process: ServiceInput. With 2 Plain Text attribute: InData1 and InData2.

I used Postman to send the test request to my test service.
HTTP Verb: POST
URL: http://localhost:8080/AwareIM/REST/TestPost/TestRest
Header contained: Content-Type : application/json
Body: { "InData1" : "test 4 body", "InData2" : "POST" }

And it worked. The above data was saved in the ServiceInput BO and the service returned the expected output.
Bob
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Q FOR SUPPORT - rcv'g JSON into Aware

Post by Jaymer »

:D
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Re: Q FOR SUPPORT - rcv'g JSON into Aware

Post by tford »

Jaymer,

Are you going to test with Mandrill?
Tom - V8.8 build 3137 - MySql / PostGres
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Q FOR SUPPORT - rcv'g JSON into Aware

Post by Jaymer »

Tom, got a lot on my plate now - don't have time to test that.
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
Post Reply