Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
This is my first programming in my life. Now I MUST create Web Service(Rest but when Soap is suitable way for this situation,i try Soap method ) with Java. From XML Database in own FTP Server pick up data and return.

DB→(XML)→REST Web service→(XQuery) →DB

XML Database : Text, Bild, URL,name, year.

<planes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nonamespaceschemalocation="file:///C:/xml_database_schema.xsd">
<<plane>>
<<name>>Adam A500<</name>
<<stock>7>
<<firstday>2002-07-11Z>
<<uri>http://de.dbpedia.org/resource/Adam_A500>
<<text> (Stand April 2011).>
<<pix>http://commons.wikimedia.org/wiki/Special:FilePath/Adam500-N504AX-051111-02.jpg?width=300>
<</plane>>

I tried to create the web service for a week. install software and plug-in, in addition to checking to run all of them;

XQuery API for Java, Tomcat 8.0 localhost, Jersey 2.0, Eclipse 4.4 Luna and plug-in, JAVA  1.8, JDK 8, apache-maven-3.3.3 (sometimes Error, therefore i can’t use it always), Jboss, Grasfish

I read tutorials for example: http://www.vogella.com/tutorials/REST/article.html http://www.ibm.com/developerworks/data/library/techarticle/dm-0901rodrigues/


Process in eclipse:
1.create Projekt(dynamic web)
2.copy jersey and xqjapi in lib
3.create Aplication=package
4.web service RESTful
5.create javaclass
6.web.xml
7. run

But it failed. I didn’t understand how write the program with XQuery API for Java and RESTful together. I am having problems finding useful resources to help me approach this issue, and I would appreciate advice on how to proceed.
Posted
Updated 20-Jun-15 4:05am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900