3 Replies Latest reply on Jun 9, 2005 1:17 PM by mackenna

    DESPERATE: trying to get axis ws deployed automatically

    mschwarz

      Hi there,

      it's 9:30 PM here now, and I'm really pissed.
      I've been trying all day to include the deployment of my ws in my JBoss ear-file and I failed miserably.

      What I did so far:
      1. I learned how to create a ws using axis; it's a "message"-service with only one method; the implementation consits of a single servlet class
      2. I deployed the ws on my local environment using the AdminService
      3. I went to http://localhost:8080/axis/services/MyService?wsdl and saved the displayed xml content to MyService.wsdl

      Now, I need to integrate the service in my .ear in order to deploy it on our customer's system (tomorrow !!!) .

      I read through a dozen forums and docs and thought I needed to generate some stubs. Is that correct ?

      My first approach was to use an ant task to generate those files, but I could not get the java call to "org.apache.axis.wsdl.WSDL2Java" to do its work (classpath error).

      Next I experimented with wscompile but all I got was a mapping.xml.

      I tried to question the recommended JBoss Wiki but in fact, it takes hours to load the pages (no joke).

      PLEASE can anybody tell me, what to do and how to do it.
      I'm using Java 1.4.2, Axis 1.2, Ant 1.6.1, JBoss-3.2.1_Tomcat-4.1.24 .
      And please, don't tell me to switch to another JBoss version, it's not possible in time.

      1024 thanx

        • 1. Re: DESPERATE: trying to get axis ws deployed automatically
          mschwarz

          Okay, I finally managed to deploy the ws on the clients system.
          I created a small script which is run on the system and calls the local AdminService with a wsdd-File.
          What's still confusing to me is the fact that I had to "enableRemoteAdmin" for the AdminService.

          This is also the reason why I'm still looking for a smart way to get my ws deployt.
          I'm sure, someone can help me....

          Has anybody achieved to integrate the AXIS deployment in ANT ?

          • 2. Re: DESPERATE: trying to get axis ws deployed automatically
            mschwarz

            Main entry: desperation
            Pronunciation: "des-p&-'rA-sh&n
            Function: noun
            1. hacking your web service into the server-config.wsdd file in order to get it deployed automatically

            • 3. Re: DESPERATE: trying to get axis ws deployed automatically
              mackenna

              I am using an ant script to create a jar file that contains the session bean based rpc web service.

              I am using an EJB 2.0 based session bean. I added on a javax.xml.rpc.Service derived interface and a Remote derived interface to the remote , home and bean classes.

              assembled them into a directory from which I would jar . Added the class files and libs. Used the ant task axis-java2wsdl to output the wsdl file into the META-INF/wsdl directory of the jar file. ( Example on the axis site , I think)

              Added a jaxrpc-mapping.xml . webservices.xml to the META-INF directory.

              jared it all up from the directory that I assembled it in and copied it to the deploy / farm directory.

              It works fine.

              I can see the service / wsdl and make calls on it.

              Hope this helps. Again this is an RPC / literal service.