Sending a custom response document?

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

EDekker
Ebase User
Posts: 8
Joined: Tue Jun 04, 2013 8:13 am

Sending a custom response document?

#1

Postby EDekker » Tue Jun 18, 2013 10:19 am

Hello,

Would it be possible in any way to handle a web request through eBase and respond only with the word TRUE or FALSE in the source code?

There'd be a script to read some http GET parameters, these would be parsed and written to a database table. The response would essentially be an empty document, besides the TRUE or FALSE status code indicating success or failure to parse the input.

Thanks.
Ed
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Tue Jun 18, 2013 3:31 pm

Ed,

No, you can't get Ebase to generate a response document like this, it will always contain more than you want. I suspect you might need a different approach: can you get your client to call a web service? Then you could create an Ebase Integration Service to handle this, which would give you complete control over what goes in the response document.

If you can't use a web service, you might be able to achieve what you want by using a servlet filter (Java programming). A filter can intercept the response object generated by Ebase and replace it with your own. Doesn't sound like a very elegant solution to me though.

Regards
Jon
0 x

EDekker
Ebase User
Posts: 8
Joined: Tue Jun 04, 2013 8:13 am

#3

Postby EDekker » Wed Jun 19, 2013 7:16 am

Hi Jon,

Thanks for your reply.

> Then you could create an Ebase Integration Service to handle this, which would give you complete control over what goes in the response document.

I will look into that, any pointers on how to start?

Best regards
Ed
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#4

Postby Jon » Wed Jun 19, 2013 9:10 am

Ed,

I guess you would first need to check that your client is capable of calling a web service. From the Ebase perspective, click on Integration Server from the documentation home page - there is a Getting Started with Integration Server section at the bottom.

Regards
Jon
0 x

EDekker
Ebase User
Posts: 8
Joined: Tue Jun 04, 2013 8:13 am

#5

Postby EDekker » Wed Jun 19, 2013 12:22 pm

Thanks again Jon.
0 x


Who is online

Users browsing this forum: No registered users and 6 guests