1 Reply Latest reply on Dec 6, 2002 8:27 AM by rgjawanda

    How to deploy SOAP 2.2 web services when jboss is a service

    rgjawanda

      I have jboss running as a Windows Service.
      I have SoAP 2.2 xml descriptors where I run

      java org.apache.soap.server.ServiceManagerClient http://bmdrjawanda:8080/soap/servlet/rpcrouter deploy DeploymentDescriptor.xml

      My question is: Does anybody know how I can automate this process.
      ie: jboss starts as a service.... I have to wait until jboss is started. Then I deploy the service. Since I have this on a server where nobody logs into it I am wondering how to do this.

      Any ideas?
      Thanks for your help
      rjawanda@husky.ca (to e-mail me)
      or reply here.
      Thanks!

        • 1. Re: How to deploy SOAP 2.2 web services when jboss is a serv
          rgjawanda

          Here is how you do it.
          Unjar the soap.web
          modify web.xml



          <servlet-name>rpcrouter</servlet-name>
          <display-name>Apache-SOAP RPC Router</display-name>
          no description
          <servlet-class>
          org.apache.soap.server.http.RPCRouterServlet
          </servlet-class>
          <init-param>
          <param-name>faultListener</param-name>
          <param-value>
          org.apache.soap.server.DOMFaultListener
          </param-value>
          </init-param>
          <init-param>
          <param-name>ConfigFile</param-name>
          <param-value>
          c:/jboss-3.0.4/config/soap.xml</param-value>
          </init-param>


          soap.xml should then contain


          <!-- Apache SOAP Server Configuration File -->










          Jar up the soap.war file.


          Run jboss once and deploy a web service using the interactive SOAP 2.2 interface http://localhost:8080/soap
          Make sure it is deployed (your service)

          When you deploy the service watch the conf directory. DeployedServices.ds will be created during your manual deployment.


          You must then unjar the soap.war file again.
          Place the DeployedServices.ds in the root directory and then jar it up again into soap.war.

          Now re-deploy soap.war in your jboss deploy directory.

          When you start jboss up this time you won't get an error message saying 'cant read DeployedServices.ds' anymore.
          You can go directly to the soap interface and list your web services. No manual start necessary.

          Ron