Creating multiple web services. [message #175813] |
Mon, 31 July 2006 14:44  |
Eclipse User |
|
|
|
Originally posted by: jdoyleoss.gmail.com
I would like to use web tools to quickly create and deploy a bunch of web
services as a testbed for my soap client. My plan was to build some
bottom up web services from simple java classes and deploy them to tomcat.
I would like to build all three styles supported by web tools from each
of the simple java classes (doc/literal wrapped, doc/literal, and rpc) but
have found that each successive wizard run overwrites the previous.
Is there a standard way that I should structure my project to avoid this,
or do I really have to have a separate project for each web service?
thanks
|
|
|
|
Re: Creating multiple web services. [message #175868 is a reply to message #175813] |
Tue, 01 August 2006 08:45   |
Eclipse User |
|
|
|
You can create multiple Web services in a single project, however, they need
to be created from different implementation classes since most of the
generated files and identifiers - the WSDL and the elements within it, the
stubs, the serializers, etc. - have their names derived from that of the
implementation class. Most of this stuff could be made configurable with
sufficient enhancement to the tools. This hasn't been done since the
requirement to support multiple SOAP bindings with varying mappings, uses and
styles to a single implementation artifact has not arisen before, AFAIK.
Please open an RFE [1] if you are looking for an enhancement here.
Meanwhile, one cheesy way around this is to define 'n-1' light-weight facade
classes that delegate to the original so that you have 'n' uniquely named
implementations from which to generate your different services.
Depending on the number of Web services you are trying to create, as of WTP
1.0 we introduced Ant tasks roughly equivalent in function to the wizards. See
the tutorials [2] for more information on them.
Cheers - CB.
[1]
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Web%20To ols&component=jst.ws&rep_platform=all&op_sys=all &bug_severity=enhancement
[2]
http://www.eclipse.org/webtools/jst/components/ws/1.0/tutori als/WebServiceAntTask/WebServiceAntTask.html
jd wrote:
> I would like to use web tools to quickly create and deploy a bunch of web
> services as a testbed for my soap client. My plan was to build some
> bottom up web services from simple java classes and deploy them to tomcat.
> I would like to build all three styles supported by web tools from each
> of the simple java classes (doc/literal wrapped, doc/literal, and rpc) but
> have found that each successive wizard run overwrites the previous.
>
> Is there a standard way that I should structure my project to avoid this,
> or do I really have to have a separate project for each web service?
>
> thanks
|
|
|
|
Powered by
FUDForum. Page generated in 0.05671 seconds