hello,

we try to implement a webservice with axis2. the requirements from our client 
are quite demanding:
a) the service is defined in about 10 wsdl files, each file contains one object 
with one or more methods
b) the services have to be accessable like this:
http://<server>:<port>/services/ServiceOne
http://<server>:<port>/services/ServiceServiceTwo
there may be another path element but it has to be the same for all services.
c) we have to use the standard tomcat deployment (putting a standard war into 
tomcat/webapps). we are not supposed to deploy in axis2 webapp.
d) we want to use the java code generated with WSDL2java

the deployment is the part that seems to be difficult.
we already managed to deploy *one* service as described here: 
http://www.wso2.net/kb/90
in short the steps are the following:

1) we generate java classes with WSDL2java

2) we add AxisServlet to web.xml

<web-app>
    <servlet>
        <servlet-name>AxisServlet</servlet-name>
        <display-name>Apache-Axis Servlet</display-name>
        <servlet-class>
            org.apache.axis2.transport.http.AxisServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
  <servlet-mapping>
    <servlet-name>AxisServlet</servlet-name>
    <url-pattern>/services/*</url-pattern>
  </servlet-mapping>
</web-app>

3) we use the services.xml generated by WSDL2java for one wsdl (one service in 
the service group)

<serviceGroup>
        <service name="ServiceOne"
                        <!-- everything else here -->
        </service>
</serviceGroup>

4) we deploy the java classes like any other class in our webapp and add 
services.xml like this:
\---WEB-INF
    |   web.xml
    |
    \---services
        \---ServiceOne
            \---META-INF
                    services.xml
                    
                    
it works!

our problem now is that we are not able to deploy a *second* (and more) 
services.
we tried to do it this way

5)
\---WEB-INF
    |   web.xml
    |
    \---services
        \---ServiceOne
            \---META-INF
                    services.xml       
        \---ServiceTwo
            \---META-INF
                    services.xml
                    
with the second service described in the services.xml in the corresponding 
subfolder.
does not work.
we also tried to put both services into one services.xml in the same group and 
have a structure like 4)
doesn't work either.

does anyone have an idea or even some experience with embeding axis2 
webservices into a webapp?
thank you very much for your help!

regards
martin

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to