Convert Existing Codes to Web Service [message #173734] |
Mon, 10 July 2006 09:21 |
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 |
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 |
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
|
|
|
Powered by
FUDForum. Page generated in 0.03838 seconds