using xataface librairy

14 views
Skip to first unread message

zainelabidi...@esprit.tn

unread,
Apr 20, 2018, 6:42:13 AM4/20/18
to CodenameOne Discussions
If you are experiencing an issue please mention the full platform your issue applies to:
IDE:/IDEA
Desktop OS
Simulator
Device
Hello, i have already generated a database using symfony in mysql server...
Now, i want to use this database from codenameOne project....They told me that we need a web service , which the  web application will convert data from database to JSON and will send it to my mobile application when i do some requests...
In your site , i see XATAFACE a ready webService that we can use it ,  the question is .. if i use XATAFACE, must i take the script of the database in mysql or i can directly connect with this library to the same database ?
Hope that my writing was clear.
And thank you

Steve Hannah

unread,
Apr 20, 2018, 7:39:44 AM4/20/18
to codenameone...@googlegroups.com
If you already have a web service set up with Symfony, then you wouldn't use Xataface.  You should just use the built-in Rest API (https://www.codenameone.com/blog/terse-rest-api.html) to connect to your web service.

Alternatively you could just connect using a regular ConnectionRequest, which is lower level.  https://www.codenameone.com/javadoc/com/codename1/io/ConnectionRequest.html

Steve

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/8e462c8e-2561-4360-b6ae-5e948f74ce55%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Steve Hannah
Software Developer
Codename One
Reply all
Reply to author
Forward
0 new messages