B4J Question Webservice creation

Pablo Torres

Active Member
Licensed User
Longtime User
Hi, I have a linux server running with a mysql database on it.
I can acces mysql from everywhere over internet, but now I want to create webservices in the server to access them from an iOS phone
Can I create webservices using b4j?
If answer is yes, how can I do that?
If answer is not, can anyone help in how to create simple webservices to a mysql database in order to consume then with my iOS app?

Thanks for any help anyone can give me
 

Haris Hafeez

Active Member
Licensed User
Longtime User
Hi, I have a linux server running with a mysql database on it.
I can acces mysql from everywhere over internet, but now I want to create webservices in the server to access them from an iOS phone
Can I create webservices using b4j?
If answer is yes, how can I do that?
If answer is not, can anyone help in how to create simple webservices to a mysql database in order to consume then with my iOS app?

Thanks for any help anyone can give me
There's nothing that stops you from building web services in B4J. Do note that it depends what your target environment is going to look like. If you have control over the server environment(i.e. you can install Java on it), you will be better served by jRDC if all you want to do is to expose DB data using queries to your B4A or B4i apps. If you intend to publish your web services as an API for a third party, then you should look into building a B4J web application, and build RESTful services for your users. B4J is very good with this.
Last point is, I personally do not think that B4J is ver well suited to building SOAP web services. So if this is required, you should perhaps use a different toolset. I may be wrong in this though and would love to know more!
 
Upvote 0

imbault

Well-Known Member
Licensed User
Longtime User
There's nothing that stops you from building web services in B4J. Do note that it depends what your target environment is going to look like. If you have control over the server environment(i.e. you can install Java on it), you will be better served by jRDC if all you want to do is to expose DB data using queries to your B4A or B4i apps. If you intend to publish your web services as an API for a third party, then you should look into building a B4J web application, and build RESTful services for your users. B4J is very good with this.
Last point is, I personally do not think that B4J is ver well suited to building SOAP web services. So if this is required, you should perhaps use a different toolset. I may be wrong in this though and would love to know more!

I feel the same concerning building a SOAP ws using B4J, SOAP objects can be very complex, so I gave up with B4J using Java with Spring framework
 
Upvote 0
Top