Symfony 1.4 and Webservice - web-services

I am having a IPAD Native application and a symfony 1.4 application. I am having a local sql-lite DB with the same schema as that of symfony app. Now when I click on sync in the Ipad the data has to be stored in the mysql db of the web server. Similarly if there is new data in the webserver that has to be again added in the local sql Lite. The data transfer has been done by PLIST files. I am now using a normal PLIST parser for parsing the plist and storing it in DB. Also I am using Content-Disposition mechanism for sending data.
Note: There are data from both the sides since both device and web server can add data.
Can any one help me out with this since, if we are adding data in both the sides, we may get same id(primary key). How to solve this issue. Is there any plugin to do this in symfony?.
Thanks in Advance.

Related

Website using Python Oracle and Javascript

I have a HTA tool that connects to oracle database. It's created using HTML,Javascript and oracle as backend.
Javascript connects to oracle database using OLEDB drive. It pulls data and create dynamic rows.
Tool is working but now am planning to convert it as Web Application.
Being a DBA , am not that much familiar with Java and i thought i will explore options in Python.
I have recently done a automation using Python and Selenium. So yes , i know bit of Python. But i have no idea about website using python.
I also don't want to change lot of code. I want javascript to do all the dynamic front-end stuffs.
All i need is interface that can connect to oracle database and pull the information and pass it to javascript function.
Can someone please guide to how to start with.
Thanks.
I don't know Python but if you don't want to change a lot of code, you may consider PHP. It's made to generate HTML code dynamicaly.
It is dangerous to connect to your DB directly by using javascript. Every user can read the JS code in the page and event modify it(sending every value they want).
PHP is executed on the server, it mean that you can check and validate the received value before risking to corupt your DB.
That's why a PHP page between the JS and the DB is better. Python should be secure too but I think it's easier to use PHP because it's open source and well documented.
I wish you a good continuation!

Camunda h2 database persistence

We are using camunda-bpm-jboss-7.1.0-Final in our java web project. The UI part is created using jsf and the database is mysql.
However, camunda comes with default h2 database, which does not persists data.
Each time we turn the jboss server off, we loose some process -id's.So my question is, is there a way to configure the h2 database, so that it persists data?
camunda currently supports H2, MySQL, PostgreSQL, DB2, Oracle and MSSQL. If you don't want to use the default H2 configuration you can change the data source in your JBoss configuration. Please see the installation guide: http://docs.camunda.org/latest/guides/installation-guide/jboss/#bpm-platform-install-the-platform-on-a-vanilla-jboss-creating-a-datasource
Yes, simply change your JDBC connection string to :
jdbc:h2:file:full-path-to-file
*nix:
jdbc:h2:file:/tmp/my-database-file
Windows:
jdbc:h2:file:C:/data/test
For more information, see: http://www.h2database.com/html/faq.html#database_files

wso2esb: can I use my own way to build a page that can add new proxy services?

wso2esb is based on a datasource, at first I thought that the data stored by the datasource contains the proxy service what is added by the wso2esb console, but I didn't find
corresponding data in that database, that is a big trouble for me.
Some users told me that the ui of wso2esb console is too complex and professional, so I want to build new pages that can let them add new proxy services and the methods are based on the original methods of wso2esb;
Is there original codes of method that can help me with this?
I read the source code of wso2esb, but I didn't know how it handle the data from the webpage and how the data user input saved.
As I know, wso2esb deploys service automatically, if you put file in right directory. I advice to create artifact with UI, name it and then search in wso2esb home directory.
For example, directory for services: $CARBON_HOME/repository/deployment/server/synapse-configs/default/proxy-services
Although, I think that creating of UI with similar functionality is very strange idea and could be very hard.

webservice as datasource in vs 2008 crystal report

How to use webservice as a data source in VS2008 crystal report?
Crystal reports can take xml as its data by setting the database drivers to ADO and the database to the location of your xml producing webservice (it takes a URL) - its as simple as that!
My original route was more convoluted that I thought; when you create the report there is an option in the "Database Expert" called "XML and Web Services" which gives you an option to use an HTTP(S) data source - that should be your webservice URL. The report will then, as if by programming, automatically get data from that service.

How to log XML SOAP messages (Request and Response) to SQL Database?

In my web application, I need to log all the SOAP messages to my SQL 2005 database whenever I make a web service call to my business partners' web service. How do I accomplish that?
Thanks in Advance,
Tony
You haven't specified what language you are using but assuming C# / .NET you could use SOAP extensions to get the SOAP content as a string and then use a simple INSERT to add to an arbitrary DB table.
There are probably far more elegant methods but I've implemented the above and it works fine.
Just remember to have a large column size in the DB table since the SOAP output could potentially be large.
Note: seems to be a bug in stackoverflow - the URL is:
http://msdn.microsoft.com/en-us/library/esw638yk(VS.71).aspx
Consider using Log4net configured with an Appender that targets the database table.