1 Reply Latest reply on Feb 15, 2006 9:22 AM by Thomas Diesler

    webserivce deployment  using JAX-WS tools for server side ar

    Balaji Narasimhan Newbie

      I'm using Sun's WSDPack's JAX-WS tool(wsimport) to create server side artifacts for my web service. .

      This does not create jaxrpc-mapping.xml file. (But wscompile from jaxrpc does create that ).

      If I understand it correct, I don't need the jaxprc-mapping file at all because the schema types are annotated in the created java classes itself.

      Also, I don't need webservices.xml to define my services when I deploy the services. ( visit http://blogs.sun.com/roller/page/vijaysr/20060117 for more info).


      But there should be a way to define the webservices when I deploy the services. This is what I've done in my web.xml.


      <servlet-name>OrderProcess</servlet-name>
      <servlet-class>org.jboss.webservice.server.ServiceEndpointServlet</servlet-class>
      <load-on-startup>1</load-on-startup>


      <servlet-mapping>
      <servlet-name>OrderProcess</servlet-name>
      <url-pattern>/OrderProcess</url-pattern>
      </servlet-mapping>

      <service-ref>

      <service-ref-name>OrderProcessService</service-ref-name>
      <service-interface>webservice.test.jboss.org.samples2.OrderProcessService</service-interface>
      <wsdl-file>WEB-INF/wsdl/order.wsdl</wsdl-file>
      <service-qname xmlns:servicens="urn:OrderProcessService">servicens:OrderProcessService</service-qname>
      </service-ref>




      And in jboss-web.xml

      <?xml version="1.0" encoding="ISO-8859-1"?>

      <!DOCTYPE jboss-web PUBLIC
      "-//JBoss//DTD Web Application 2.4//EN"
      "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">

      <jboss-web>


      <context-root>jaxws1</context-root>
      <service-ref>
      <service-ref-name>OrderProcessService</service-ref-name>
      <port-component-ref>
      <service-endpoint-interface>webservice.test.jboss.org.samples2.OrderProcess</service-endpoint-interface>
      </port-component-ref>
      <wsdl-override>http://localhost:8080/jaxws1/OrderProcess?wsdl</wsdl-override>

      </service-ref>
      </jboss-web>


      ..
      With the above, I couldn't deploy the service. I don't know if I'm missing something .
      I get 'page not found' on the url :- http://localhost:8080/jaxws1/OrderProcess?wsdl

      Has anybody used jax-ws from WSDP to deploy the service on Jboss4.0.4RC1.


      Advance Thanks for your help.