Tagged: JPA
- This topic has 1 reply, 2 voices, and was last updated 6 years ago by support-tony.
-
AuthorPosts
-
MorkParticipantI created a one-table JPA project very easily using the excellent reverse engineering tools in MyE! (So cool.)
And, I have it auto-deployed and synchronized in Tomcat. Cool again.
—
But, oops, I forgot to actually add the JAX-WS stuff. I have no WSDL, etc.
So, how do I add/refactor this JAP project so I can then deploy it as a JAX WS Service?
So far, my web.xml only has …
<?xml version=”1.0″ encoding=”UTF-8″?>
<web-app xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns=”http://xmlns.jcp.org/xml/ns/javaee” xsi:schemaLocation=”http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd” version=”4.0″>
<display-name>WebServiceJAXWS</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>—
Thanks very much in advance for your help and suggestions.
support-tonyKeymasterMork,
You can add the JAX-WS facet, probably the same way you added the JPA facet – for example, right click on the project and go to
Configure Facets...>Install JAX-WS Facet
. This can also be done from the Project Facets page of the project properties.After that, you’ll be able to right click on the project and select
New>Web Service
, as though you’d started with a Web Services Project. You may need to create the class you want to use from which to generate the web service, before generating the web service.Please let us know how this works for you or if you have further questions.
-
AuthorPosts