I have created a JAVA Soap web service that inserts data into mysql using JDBC. i want to modify it so that it inserts data into a Excel table instead of mysql. Can someone please give a in depth description as to how i can do it. I do not know how to use excel. So i expect a clear explanation
Excel table isn't a data structure, its a software.
You could build a file in a form that excel respects, like xml or csv,
and opening the file using ms-excel.
https://docs.oracle.com/javase/tutorial/jaxp/xslt/writingDom.html
Related
My requirement is to get polarion data and store that to our sql server database.
I went through Polarion SDK document and I feel webservice is the way to do that....
Which is the best way to read and store specific data from polarion to SQL server.
The webservice is very slow and depending on your size it will not be practicable to export your data with help of the webservice.
However the data in Polarion is stored in an SVN-repository in form of small .xml-files. So you can read these XML files directly from the repository.
As Polarion is not stored in a database compatible format, you need to setup your own DB-schema and the transform from the XML-files should be straight forward.
You can either checkout a complete Polarion Project or you retrieve the files on demand via http(s) second approach will be slightly slower again.
Can anyone give me an idea on how data can be pulled from redis cache to excel?
Can we pull data from Soap UI or need to write java code?
Thanks
Ekta
I have a jsp page with one browse button and one submit button.After selecting any excel file(.xlsx) when I click submit button, I want to store all the value of excel page to postgresql database.
There is no simple and ready solution. You have to build implementation parsing .xlsx, handle data, and then insert into your database.
You can use Apache POI or JExcel for parsing Microsoft documents.
Working with database:
JDBC
Or you can use framework for simplify your job:
Spring JDBC
Or you can use ORM, if you will work with many entities and frequent CRUD operations:
Hibernate
I am working on a Java program that connects to a databases and serves as a design and data manipulation tool. I eventually want to port my program to an XML database of some kind.
More specifically, I want to be able to use Java to upload XSD (representing a database) that I generate to an actual XML database (like Sedna) and then connect to this database and query/update it.
I have been exploring Sedna and the XQJ API and I don't see how to do this. Can it be done through Java?
Edit I don't have any data I want to map to XML or a database. I have a database structure specified in XSD, and I just want to create the corresponding database on a server somewhere.
There are at least two frameworks worth trying for XML to database mapping:
Castor XML http://www.castor.org
Hibernate http://docs.jboss.org/hibernate/orm/3.3/reference/en/html/xml.html
I have a excel file with testing data and am trying to send these parameters to a new web service (Testing) in java. These data will inturn be sent to another web service that is already in use now. After sending the request data, I will also need to get the response and update the excel file with the testing result ,say pass or fail. I haven't worked with web services(java) before , so am not sure how to go about this. Any tutorials or advice on this from people who have worked on this before will be great.
Thanks
Hope you have worked with Java before because this is not a straightforward assignment.
You will need an API to read the Excel spreadsheet ( look up JXL or Apache POI ), you will need to generate a web services client for your WS endpoint using JAX-WS ( wsimport ). Once you have that, you can call your web service via Java and the response will be a Java object that you can then use to update your Excel sheet ( via the api of your choice ).
Good luck.
http://jexcelapi.sourceforge.net/
http://download.oracle.com/javase/6/docs/technotes/tools/share/wsimport.html
http://poi.apache.org/spreadsheet/index.html