Hi Martin,
there is some truth in your statement - I had no problems getting Axis2
to run but there is hardly any good documentation and what really turns
me off is the dependency nightmare when setting up the M2 project - and
I still don't have a clean dependency set. Actually the blame not only
goes to Axis2 but a few other libraries have really strange transitive
dependency.
Regarding the long journey
+) the reason why I started with Axis2 is that it still runs on JDK 1.4
but I think we will switch to JDK 1.5 anytime soon
+) the other contenders for JDK 1.4 were no impressive either - Axis1
with more than 900 open issues and no release for ages, XFire left alone
in the dark due to CXF incubation
+) having said that when starting from JDK 1.5 I would have had a look
at Metro because colleagues of mine are happily using it
+) my applications does not run in a servlet container so I also wrote a
fulcrum-jetty plugin to run Axis2 within Jetty
So if I run into serious problems with Axis2 I will make the move
towards Metro ....
Thanks in advance
Siegfried Goeschl
Martin Lidgard | Tibet Server wrote:
Hi all,
we spent _way_too_much_ time trying to get Axis to work and finally realized
that it just wouldn't be worth while.
Instead we went with Sun's Metro and it worked like a charm! Now we're
exposing webservices and tapping straight into Turbine services using a
listener and a servlet in the Turbine servlet's web.xml.
The steps to get started are roughly:
1. Download Metro from https://metro.dev.java.net/
2. Follow the docs for creating a web service
https://metro.dev.java.net/guide/
3. Copy the following files to $CATALINA_HOME/shared/lib/
webservices-extra-api.jar
webservices-extra.jar
webservices-rt.jar
webservices-tools.jar
4. Copy the following file to $CATALINA_HOME/common/endorsed/
webservices-api.jar
5. Copy the following file to $CATALINA_HOME/webapps/${mywebapp}/WEB-INF/
sun-jaxws.xml
It should look something like this:
<?xml version="1.0" encoding="UTF-8"?>
<endpoints xmlns='http://java.sun.com/xml/ns/jax-ws/ri/runtime'
version='2.0'>
<endpoint
name='myfirstmetro'
implementation='com.mydomain.myfirstmetro.ws.HelloWorld'
url-pattern='/sayHelloWorld'/>
</endpoints>
6. Add the following lines to
$CATALINA_HOME/webapps/${mywebapp}/WEB-INF/web.xml after the
<servlet-mapping> entry for Turbine:
<!-- Start of Web Service configuration for MyFirstMetro -->
<listener>
<listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListen
er</listener-class>
</listener>
<servlet>
<description>JAX-WS endpoint - MyFirstMetro</description>
<display-name>myfirstmetro</display-name>
<servlet-name>myfirstmetro</servlet-name>
<servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet-clas
s>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>myfirstmetro</servlet-name>
<url-pattern>/sayHelloWorld</url-pattern>
</servlet-mapping>
<!-- End of Web Service configuration for MyFirstMetro -->
7. HelloWorld.java looks like this:
package com.tibetserver.plugins.branova.ws;
import javax.jws.WebService;
@WebService(name = "MyFirstMetro",
targetNamespace = "http://ws.myfirstmetro.mydomain.com")
public interface HelloWorld {
public String sayHelloWorld(String request);
}
8. HelloWorldImpl.java looks something like this:
package com.tibetserver.plugins.branova.ws;
@WebService(endpointInterface = "com.mydomain.myfirstmetro.ws.HelloWorld")
public class HelloWorld {
public String sayHelloWorld(String userName) {
String greeting =
Turbine.getConfiguration().getString("myfirstmetro.ws.HelloWorld.greeting");
User user = TurbineSecurity.getUser(userName);
System.out.println(greeting + user);
}
}
9. Your webservice should be available at www.mydomain.com/sayHelloWorld
after deployment.
Please forgive me if I missed any steps, it was a while ago that we worked
on this.
Good luck!
/Martin
-----Ursprungligt meddelande-----
Från: Siegfried Goeschl [mailto:[EMAIL PROTECTED]
Skickat: den 16 juli 2008 21:11
Till: Turbine Developers List
Ämne: [fulcrum] Fulcrum Axis2 Integration
Hi folks,
anyone interested in exposing webservices (Jürgen?) using Fulcrum - I'm on
the way to get it working and it was long way ...
+) dependency nightmare
+) works on JDK 1.4
+) I got some regression tests running
Cheers,
Siegfried Goeschl
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]