facebook

How to Add JAX-WS libraries, WSDL, etc., to existing JPA Application

  1. MyEclipse IDE
  2.  > 
  3. General Development

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #607273 Reply

    Mork
    Participant

    I 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&#8221; xmlns=”http://xmlns.jcp.org/xml/ns/javaee&#8221; xsi:schemaLocation=”http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd&#8221; 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.

    #607336 Reply

    support-tony
    Keymaster

    Mork,

    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.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: How to Add JAX-WS libraries, WSDL, etc., to existing JPA Application

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in