Please lend me your wisdom!I tried to do it on my own for about a week while looking at books and the Internet, but it was perfect, so let me ask you a question here.
It's my first time doing programming.
You must create a REST web service that retrieves information from the XML database in xml and returns it in XQuery.
Contents:
XML database (attached image>10 items are listed in XML for each plane, including the name of the plane, date of manufacture, image, and description)
I want to write a REST web service in Java to view this data.
XML database
The goal is
on the server.
Example: I want to sort the date of manufacture in order of new
→ See data from this database at that time
→ Data such as sorted photos are displayed
Software we have arranged for this development:
Tomcat 8.0 localhost
Jersey 2.0
Eclipse 4.4 (package with Luna PHP, etc.)
JAVA 1.8
JDK8
Books and
for a complete beginner.
Tutorial on YouTube and Webseite (http://www.vogella.com/tutorials/REST/article.html, http://javabrains.koushik.org/tutorials/javaee_jaxrs/Introduction.html, installationInstall and launch each software individually for
The flow is
on Eclipse.
Write Web service programming
Create a page with @path, etc. and corresponding java page as follows
Create Web Client Pages
Or, in this case, is it okay to just use the web client side?
Please let me know if there are any good methods or sites (regardless of language) that have programs to refer to.
Thank you for your cooperation.
I have read your question.
This is probably my first programming, so I think I have a lot of things to learn including creating a development environment.Please do your best。To avoid repeating the same mistake, we recommend that you create a task log.
Regarding the development environment, I think there is no problem.
However, maven takes a long time to learn, so you can skip it when you fail.
Tomcat 8.0 localhost
Jersey 2.0
Package containing Eclipse 4.4 Luna PHP and others
If this is your first time using Eclipse, I recommend Pleiades All in One, which is compatible with Japanese.
http://mergedoc.osdn.jp/index.html#/pleiades.html
JAVA 1.8
JDK8
apache-maven-3.3.3
Jboss
If your goal is to create a REST-enabled application server, read Jersey's tutorial first.Then you should write a small prototype source.
I posted a link to the description of the application server using XML/JSON in the comment
© 2024 OneMinuteCode. All rights reserved.