Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Creating multiple web services.
Creating multiple web services. [message #175813] Mon, 31 July 2006 18:44 Go to next message
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 #175840 is a reply to message #175813] Mon, 31 July 2006 21:59 Go to previous messageGo to next message
Eclipse User
Originally posted by: avinh.verizon.net

Hi jd,

I would be happy if I could create just ONE Web Service. I can't even get
Eclipse to start Tomcat properly. Eventhough it says that Tomcat is
running in the Console, yet if I go to https://localhost:8443, I don't see
any welcome page.

Can you tell me how you got Tomcat to start inside of Eclipse
successfully? If I can get past this hurdle, I would be on the same page
as you and perhaps we can figure out how to create those Web Services.

I can start Tomcat via its own monitor program fine, Eclipse can't seem to
start it though. Eclipse is looking under its own workspace, e.g.
c:\workspace\Servers, for the server configuration XML & properties files.
My Tomcat is actually installed under c:\tomcat_5.5. I believe that I have
installed the runtime environment for Tomcat 5.5.12 correctly in the
"Preferences" window so I'm not sure what the problem is.

I'm running Tomcat 5.5.12 with Eclipse 3.1.2 on WinXP.

Thanks for any info/help that you can give me

Regards - Alan
Re: Creating multiple web services. [message #175868 is a reply to message #175813] Tue, 01 August 2006 12:45 Go to previous messageGo to next message
Chris Brealey is currently offline Chris Brealey
Messages: 104
Registered: July 2009
Senior Member
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
Re: Creating multiple web services. [message #176127 is a reply to message #175868] Wed, 02 August 2006 15:47 Go to previous message
Eclipse User
Originally posted by: jdoyleoss.gmail.com

Thanks CB, cheesy will fit the bill here. I'll also log a request.
Previous Topic:JSP document tag content assist not working inside included (fragment) files
Next Topic:newbie question HTML editor
Goto Forum:
  


Current Time: Sun Sep 21 18:26:47 GMT 2014

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

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