Advertisement
Hey all,
I'm looking for a decent tutorial or example on writing webservices (SOAP) in java. Basically, I have an EJB in weblogic that I'd like to be able to expose (without using workshop) as a webservice, and then I need to write a test client. Any good references out there?
Thanks!
I'm looking for a decent tutorial or example on writing webservices (SOAP) in java. Basically, I have an EJB in weblogic that I'd like to be able to expose (without using workshop) as a webservice, and then I need to write a test client. Any good references out there?
Thanks!
posted by:
|
|
Unsubscribed |
Advertisement
Advertisement
-
-
-
Re: webservices client
Thu, May 13, 2004 - 1:46 PMThen you might also take a look at the WASP plugin for Eclipse. I haven't used it myself, but a friend says it worked like a charm for him: www.systinet.com/products/...r/overview
Here's an article that walks through building a web service with Eclipse/WASP: www.devx.com/webdev/Article/16853/0
It's a bit dated, but still very useful IMHO.
r.m.
-
-
Re: webservices client
Wed, May 12, 2004 - 4:38 PMlet us know how you did it. I tried for a good week or two to get a trivial example running (including their examples) and failed; as far as I'm concerned Weblogic's web services stuff just doesn't work. -
-
Re: webservices client
Wed, May 12, 2004 - 6:01 PMWhat product are you using from Weblogic? When they first came out with their HTML package we used that. It worked but it was extremely heavy weight and cumbersome. I ended up building a smaller lightweight packed to replace it. Lost none of the functionality but gained a lot in performance (and saved lots of money every year).
-
-
Re: webservices client
Wed, May 12, 2004 - 10:35 PMThe AXIS project in Jakarta is very good. -
-
Unsu...
Re: webservices client
Thu, May 13, 2004 - 9:29 AMUnfortunately my company has committed to weblogic... I've done lots of work with Jakarta, and I agree, it's very good. -
-
Re: webservices client
Mon, May 17, 2004 - 3:48 PMJakarta is a collection of a number of open source J2EE projects such as JMeter (), ECS (a markup language API), Tomcat (a servlet and JSP engine), Commons (an *outstanding* collection of some useful basic classes), Taglibs (a collection of tag libraries and tools) , ORO (text processing classes), Cactus (a serverside unit testing framework), Struts and Velocity (MVC frameworks) and several other projects as well.
Tomcat wouldn't do much for you since you're already running a servlet engine within WebLogic, but almost all of the other projects can be run under any J2EE compliant app server. We use IBM WebSphere App Server and utilize several Jakarta projects, most notably Struts, Commons and Cactus.
You owe it to yourself to check 'em out: jakarta.apache.org/
Oh, in relation to your original question about Web Services there are several Apache projects (not under the Jakarta umbrella) for use in WS development. Check out Axis, an implimentation of SOAP. ws.apache.org/
r.m.
-
Re: webservices client
Fri, May 19, 2006 - 2:28 AMI have implemented a similar solution for exposing EJB as a webservice. The most generic way to do this so that It works for any application server (e.g. weblogic, jboss, etc.) is by using Apache WSIF (Webservices Invocation Framework). I have successfully implemented this and the same solution works for all the servers mentioned above. You can use the WSIF EJB Binding in your WSDL to map the Webservice Operation to the underlying EJB remote method.
e.g.
<service>
<port>
<ejb:address
className="com.sample.MyEJBHome"
jndiName="com/sample/MyEJB"
initialContextFactory="weblogic.jndi.WLInitialContextFactory"
jndiProviderURL="t3://localhost:7001" />
</port>
</service>
You can find more documentation at ws.apache.org/wsif/index.html
You can construct a WSDL using libraries like WSDL4J sourceforge.net/projects/wsdl4j.
I have also used Axis but WSIF is much simpler and pretty straight forward to use.
-
M -
-
Re: webservices client
Fri, May 19, 2006 - 6:33 AMI switched to Jetty. It's basically Apache and Tomcat combined. An open source webserver application server in Java. The nice part about it is being able to add new handlers and tightly integrate applications right into the webserver.
-
-
-
