Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Convert Existing Codes to Web Service
Convert Existing Codes to Web Service [message #173734] Mon, 10 July 2006 09:21 Go to next message
Eclipse User
Originally posted by: folken9999.yahoo.com

Hi,

The buttom up web service sample works well. That was easy -it only has 1 class which we exposed as a webservice

I have an existing java application which consist of lots of objects and packages, how do i convert it to a web service using WTP?

Any help would be appreciated


thanks,


Kurei
Re: Convert Existing Codes to Web Service [message #174098 is a reply to message #173734] Wed, 12 July 2006 14:49 Go to previous messageGo to next message
Seng Phung Lu is currently offline Seng Phung Lu
Messages: 62
Registered: July 2009
Member
Hi Kurei,
You can apply the same procedure from the bottom up Web service sample.
The wizard is capable of introspecting Java beans, walk the parameter
objects(as long as its in your classpath), and generate the necessary
code for creating Web services.

To begin, select the Java bean which has the operation you wish to
convert into a Web service. Make sure "Bottom up Java bean Web service"
is the type, and follow the instructions in the wizard as you click Next
thru the pages.

If you encounter any problems along the way, feel free to post to this
newsgroup or open a bug report.

Thanks,
Seng

Kurei wrote:
> Hi,
>
> The buttom up web service sample works well. That was easy -it only has 1 class which we exposed as a webservice
>
> I have an existing java application which consist of lots of objects and packages, how do i convert it to a web service using WTP?
>
> Any help would be appreciated
>
>
> thanks,
>
>
> Kurei
Re: Convert Existing Codes to Web Service [message #174362 is a reply to message #174098] Thu, 13 July 2006 13:25 Go to previous message
Chris Brealey is currently offline Chris Brealey
Messages: 104
Registered: July 2009
Senior Member
Kurei,
further to Seng's remarks, make sure that (1) your existing Java application's prospective service class and the classes it uses comply to
the JAX-RPC standard (WTP 1.5 will check several, if not quite all, of JAX-RPC's rules here), and (2) that the classes or jars comprising
your Java application are loadable by the Web project to contain your deployed Web service (ie. by placing the classes directly in the
project, or by placing the jars in web-inf/lib, etc.).

Cheers - CB.

Seng Phung-Lu wrote:

> Hi Kurei,
> You can apply the same procedure from the bottom up Web service sample.
> The wizard is capable of introspecting Java beans, walk the parameter
> objects(as long as its in your classpath), and generate the necessary
> code for creating Web services.
>
> To begin, select the Java bean which has the operation you wish to
> convert into a Web service. Make sure "Bottom up Java bean Web service"
> is the type, and follow the instructions in the wizard as you click Next
> thru the pages.
>
> If you encounter any problems along the way, feel free to post to this
> newsgroup or open a bug report.
>
> Thanks,
> Seng
>
> Kurei wrote:
> > Hi,
> >
> > The buttom up web service sample works well. That was easy -it only has 1 class which we exposed as a webservice
> >
> > I have an existing java application which consist of lots of objects and packages, how do i convert it to a web service using WTP?
> >
> > Any help would be appreciated
> >
> >
> > thanks,
> >
> >
> > Kurei
Previous Topic:Serving Web Content out of Root
Next Topic:WTP 1.5 Web Services Explorer does not work
Goto Forum:
  


Current Time: Thu Oct 23 18:06:10 GMT 2014

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

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