Some corrections (sorry) and additions: Correction: had a look at the wrong (raw) .war file. The content is as described before, plus mapping.xml (generated by wscompile) and webservices.xml.
web.xml is <?xml version="2.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" version="2.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <display-name>HelloService</display-name> <servlet> <servlet-name>HelloServiceServletImpl</servlet-name> <servlet-class>de.rochade.srap.ws.HelloServiceServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>HelloServiceServletImpl</servlet-name> <url-pattern>/hello</url-pattern> </servlet-mapping> <env-entry> <env-entry-name>TestEnvironmentEntry</env-entry-name> <env-entry-type>java.lang.String</env-entry-type> <env-entry-value>this is the value!</env-entry-value> </env-entry> </web-app> webservices.xml is <?xml version="1.0" encoding="UTF-8"?> <webservices xmlns="http://java.sun.com/xml/ns/j2ee" version="1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd"> <webservice-description> <display-name>SunHelloService</display-name> <webservice-description-name>SunHelloService</webservice-description-nam e> <wsdl-file>WEB-INF/wsdl/WSHelloService.wsdl</wsdl-file> <jaxrpc-mapping-file>WEB-INF/mapping.xml</jaxrpc-mapping-file> <port-component> <display-name>HelloServicePort</display-name> <port-component-name>HelloServicePort</port-component-name> <wsdl-port xmlns:wsdl-port_ns__="urn:rochade">wsdl-port_ns__:HelloServicePort</wsdl -port> <service-endpoint-interface>de.rochade.srap.ws.HelloService</service-end point-interface> <service-impl-bean> <servlet-link>HelloServiceServletImpl</servlet-link> </service-impl-bean> </port-component> </webservice-description> </webservices> Addition: I could sucessfully deploy this .war file to WebSphere 6, it works. When I put the file to Tomcat (Axis installed) webapps folder nothing besides from unpacking and log to stdout happens: INFO: Installing web application at context path /HelloService from URL file :D:/work/soap/jakarta-tomcat-5.0.27_Axis-1.2RC1/webapps/HelloService Thank you! Merten > -----Original Message----- > From: Merten Schumann [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 06, 2004 11:15 AM > To: [EMAIL PROTECTED] > Subject: JAX-RPC support in Axis 1.2, how to use when coming > from Sun J2EE 1.4? > > I'm about to create some webservice stuff and used until now Sun J2EE > 1.4 RI for the basics. At the end I have to provide a web > service, which > could be deployed to different containers which support JAX-RPC. > > Thanx to the tutorial > http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html > and some documentation > https://jax-rpc.dev.java.net > https://jax-rpc.dev.java.net/whitepaper/1.1/index-part1.html > I ended up with a .war file with classes, web.xml and a file > jaxrpc-ri.xml (the "raw" .war file). I can deploy that in Sun > App Server > (wow;-), it creates all the necessary stuff (stubs ..) behind the > scenes. With Sun's wsdeploy tool I can create a "cooked" > (implementation > specific) .war file and deploy that too in Sun App Server. > > I can use Tomcat as container for the webservice when I do create the > "cooked" .war file by using Sun's wsdeploy. For that, off > course I have > to bring all necessary JAX-RPC stuff from Sun to Tomcat (either in the > .war itself or by copying it to common/lib or so). This works pretty > well. > > Now I would like to use Axis 1.2 since I found it supports JAX-RPC - > with it's own implementation (great!). The approach via simply writing > .jws files is nice, like good "old" .jsp stuff! > > But, could I/how could I let Axis use my raw .war file? The .war > contains (HelloWorld sample) > HelloService.class (Interface) > HelloServiceServlet.class (Impl) > jaxrpc-ri.xml Sun specific? JAXRPC specific? > model.xml.gz Sun specific? JAXRPC specific? > sun-web.xml If I want to deploy in Sun App Srv > web.xml > > The web.xml looks like this: > <?xml version="1.0" encoding="UTF-8"?> > <web-app xmlns="http://java.sun.com/xml/ns/j2ee" version="2.4" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> > <env-entry> > <env-entry-name>TestEnvironmentEntry</env-entry-name> > <env-entry-type>java.lang.String</env-entry-type> > <env-entry-value>this is the value!</env-entry-value> > </env-entry> > </web-app> > > The file model.xml.gz is generated with wscompile from J2EE 1.4. I > thought this wscompile + model + jaxrpc-ri.xml would be a fundamental > JAX-RPC feature but it seems it's Sun implementation specific > ... Could > anyone clarify this for me? > > So, I've got my .war file and don't know what to do with it. > :-) I tried > to put it in the Axis folder but nothing happens. I tried to put it in > the plain webapps folder and the .war gets unpacked but nothing more > happens. So, is there an "autodeploy" feature in Axis? > > I guess I have to write something like a deploy.xml. How should this > look like for my .war? Do I need to have a .jws file as a "starting > point" for my web service, if I want to deploy it to Axis? I mean, for > commercial use where you often want to hide your > implementation, I could > imagine to write - for deployment to Axis - a .jws file and > put the rest > of the implementation as .class files in a .jar or so. Is this the > correct way for using Axis JAX-RPC implementation? > > Where's the possibility to influence the creation of the WSDL? I mean, > is it possible to influence what get's created: rpc/literal or > document/literal? > > Or, is there a way ("cooked" .war as described in the documentation > mentioned above) to create with something like "wsdeploy" a "cooked" > .war for Axis? > > Thank you very much! > Merten >
