SqlLite in Soap Service.

9 views
Skip to first unread message

Ramaraju V.N

unread,
Jul 24, 2015, 7:54:24 AM7/24/15
to wsf-staff
HI All,

 Can any one tell how to integrate or create sql database with existing soap web service using staff(C++ based on Axis2/C) framework. 
 I am struggling to find out? Can you please provide any example/sample code for that?

-Ram

Dmitry Utkin

unread,
Jul 24, 2015, 8:15:48 AM7/24/15
to wsf-staff, v.nagar...@gmail.com, v.nagar...@gmail.com
If you want to use DB in C++ service you should connect to DBMS and use it's functions as you done it for generic console application, Only you should take care of  OnCreate and OnDestroy methods to handle DB connection properly.

IMO much easier is to work with DB using DAS. In this case you will not write C++ web services bug deploy web services in XML. There are several of DBMS supported: sqlite, postgres, mysql (as well as shell provider available). 
Examples: 


Example of DAS web service:





пятница, 24 июля 2015 г., 14:54:24 UTC+3 пользователь Ramaraju V.N написал:

Ramaraju V.N

unread,
Jul 24, 2015, 10:23:09 AM7/24/15
to Dmitry Utkin, wsf-staff
Thank you very much Dmitry Utkin. I will try.

-Ram
Reply all
Reply to author
Forward
0 new messages