Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Connecting to web services from a plugin
Connecting to web services from a plugin [message #436507] Fri, 09 September 2005 21:09 Go to next message
Eclipse UserFriend
Originally posted by: bdberry.us.ibm.com

I am trying to connect to web services that I have developed and
deployed in websphere. Any ideas what jar files I am supposed to
include to execute the proxy beans to connect to these services? I have
created the Java proxies using Rational Software Architect. I tried by
including runtime libraries webservices.jar and qname.jar. I keep
getting class not found exceptions and I add jars as appropriate. I end
up with like seven jars and then it starts giving me exceptions about a
class that is in webservices.jar that cannot be found even thought hat
one is included.
Re: Connecting to web services from a plugin [message #436508 is a reply to message #436507] Fri, 09 September 2005 22:02 Go to previous messageGo to next message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
Brian Berry wrote:
> I am trying to connect to web services that I have developed and
> deployed in websphere. Any ideas what jar files I am supposed to
> include to execute the proxy beans to connect to these services? I have
> created the Java proxies using Rational Software Architect. I tried by
> including runtime libraries webservices.jar and qname.jar. I keep
> getting class not found exceptions and I add jars as appropriate. I end
> up with like seven jars and then it starts giving me exceptions about a
> class that is in webservices.jar that cannot be found even thought hat
> one is included.

Connecting to WAS is evil.

Try this approach:
I discuss it a bit here: http://blog.mea-culpa.net/?p=5

On the WAS jars plugin (create plugin from exisiting JARS)
Eclipse-BuddyPolicy: registered

On any plugin that needs those jars!
Eclipse-RegisterBuddy: <was plugin id>

You should be good!

Cheers,
Re: Connecting to web services from a plugin [message #436513 is a reply to message #436507] Sat, 10 September 2005 16:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pdavis.airisen.net

Brian Berry wrote:

> I am trying to connect to web services that I have developed and
> deployed in websphere. Any ideas what jar files I am supposed to
> include to execute the proxy beans to connect to these services? I have
> created the Java proxies using Rational Software Architect. I tried by
> including runtime libraries webservices.jar and qname.jar. I keep
> getting class not found exceptions and I add jars as appropriate. I end
> up with like seven jars and then it starts giving me exceptions about a
> class that is in webservices.jar that cannot be found even thought hat
> one is included.

Brian,

I tried this a while ago (albeit from a swing application) and had a
terrible time of it. I did eventually get it to work by packaging most of
the jars in the IBM Web Services Development kit and some of the WebSphere
jars. The size of the resulting application, coupled with the very murky
licensing picture made me abandon this solution. As Chris says "connecting
to WAS is evil", if you're trying to use the IBM client tools.

I've had great success using Axis for a java client (RCP, Swing)instead of
the IBM client tools.

At a hight level, develop your web service within RSA as normal for the
service provider part. Then feed the generated WSDL (assuming you're
creating your service from a model bean) into the Axis
org.apache.axis.wsdl.WSDL2Java generator. The Axis WSDL2Java will generate
fully compatible client proxies, including the service locator and service
proxy, which you can drop into your RCP application.

In the long run, this may turn out to be a better option for an RCP app as
the Eclipse Web Tools project (also providing a Web Service toolkit) uses
Axis.
Re: Connecting to web services from a plugin [message #436519 is a reply to message #436513] Sat, 10 September 2005 21:42 Go to previous message
Eclipse UserFriend
Originally posted by: bdberry.us.ibm.com

javasOK wrote:
> Brian Berry wrote:
>
>
>>I am trying to connect to web services that I have developed and
>>deployed in websphere. Any ideas what jar files I am supposed to
>>include to execute the proxy beans to connect to these services? I have
>>created the Java proxies using Rational Software Architect. I tried by
>>including runtime libraries webservices.jar and qname.jar. I keep
>>getting class not found exceptions and I add jars as appropriate. I end
>>up with like seven jars and then it starts giving me exceptions about a
>>class that is in webservices.jar that cannot be found even thought hat
>>one is included.
>
>
> Brian,
>
> I tried this a while ago (albeit from a swing application) and had a
> terrible time of it. I did eventually get it to work by packaging most of
> the jars in the IBM Web Services Development kit and some of the WebSphere
> jars. The size of the resulting application, coupled with the very murky
> licensing picture made me abandon this solution. As Chris says "connecting
> to WAS is evil", if you're trying to use the IBM client tools.
>
> I've had great success using Axis for a java client (RCP, Swing)instead of
> the IBM client tools.
>
> At a hight level, develop your web service within RSA as normal for the
> service provider part. Then feed the generated WSDL (assuming you're
> creating your service from a model bean) into the Axis
> org.apache.axis.wsdl.WSDL2Java generator. The Axis WSDL2Java will generate
> fully compatible client proxies, including the service locator and service
> proxy, which you can drop into your RCP application.
>
> In the long run, this may turn out to be a better option for an RCP app as
> the Eclipse Web Tools project (also providing a Web Service toolkit) uses
> Axis.
>

Thank you so much! Even after trying what Chris had suggested I was
still unable to connect to the web services through my RCP app. after
about 20 minuts of setting up my project to use Apache Axis and
generating the proxy classes it worked like a charm. I wasted so much
time on that websphere stuff - I wish I went with Axis from the start.
This works great now.
Previous Topic:Fancy Editor Tabs (How to add the swoosh)
Next Topic:FormEditor Example
Goto Forum:
  


Current Time: Sat Dec 07 18:03:45 GMT 2024

Powered by FUDForum. Page generated in 0.02149 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top