webservices client

topic posted Tue, May 11, 2004 - 3:36 PM by  Unsubscribed
Share/Save/Bookmark
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!
posted by:
Unsubscribed
Advertisement
Advertisement
  • Re: webservices client

    Wed, May 12, 2004 - 4:38 PM
    let 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.
    • B
      B
      offline 120

      Re: webservices client

      Wed, May 12, 2004 - 6:01 PM
      What 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 PM
    The AXIS project in Jakarta is very good.
    • Unsu...
       

      Re: webservices client

      Thu, May 13, 2004 - 9:29 AM
      Unfortunately 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 PM
        Jakarta 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 AM
        I 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
        • B
          B
          offline 120

          Re: webservices client

          Fri, May 19, 2006 - 6:33 AM
          I 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.

Recent topics in "Java Monkeys"

Topic Author Replies Last Post
Javascripting costs Schirin 3 May 17, 2007
Design patterns and principles emblylan 6 February 14, 2007
open source hosting alternatives? Mark 2 February 3, 2007
Ruby > Java Unsubscribed 6 January 9, 2007
efficient way to compare file content? ~cec~ 3 November 17, 2006