B4J Question B4J-based webservice

udg

Expert
Licensed User
Longtime User
Hi all,

I'd like to use B4J to activate a webservice to be used by "unknown" web sites.
I mean something very similar to what a weather forecast service does. Webmasters should be able to call a few services made avalable by my B4j-based system.

My question is: which standards should I follow?

BTW, I run my own Raspberry-based system, already visible to the outside world through no-ip.org dynamic dns service, so I can easily configure the new suystme not depending on others' restrictions.

Thank you.
 
Thank you Erel.

Let me summarize, to be sure to have understood it correctly:
1. I define an API for my service to take in account (acceptable) commands , parameters (to commands) and error management
2. Users will write some php code (or equivalent) to JSON-encode commands and parameters to send to my b4j server
3. My b4j server will be a no-UI application, listening on some port for appropriate commands directed to an handler/folder (e.g. www.mysite.com:5555/api)
4. Once an appropriate command is received and decoded, it is acted upon, generating a response or an error, again JSON-encoded

So libs jHHTP and JSON are what I need for the above. A naive question: would jHttpUtils2 coexist gracefully with jHttp? I need the former to download some data from a second webserver out of my control.

Thank you again.
 
Upvote 0
You need to use jServer library to create server solutions.

Obviously you're right. I was just focusing on the command/response aspect of the problem.

Thanks again
 
Upvote 0
Back
Top