Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Why is the "Generate Client" on a WSDL file trying to start a server?
Why is the "Generate Client" on a WSDL file trying to start a server? [message #79598] Thu, 03 March 2005 06:17 Go to next message
Eclipse UserFriend
Originally posted by: michael.refactored-networks.com

In various places inside a larger project I simply want to create the
stubs for a web services client from some WSDL. So I install WTP (I think,
the directions aren't very clear for someone relatively new to eclipse)
and right click on the wsdl file and say "Generate Client". The wizard
that comes up eventually asks me about things like the server type and
then if I click Finish tries to startup Tomcat and Axis. Why? Shouldn't
"Generate Client" simply do what WSDL2Java does but with a useful wizard
to it? What am I missing about WTP?
Re: Why is the "Generate Client" on a WSDL file trying to start a server? [message #79808 is a reply to message #79598] Thu, 03 March 2005 15:04 Go to previous messageGo to next message
Kathy Chan is currently offline Kathy ChanFriend
Messages: 93
Registered: July 2009
Member
Hi Michael,

"Web Services -> Generate Client" does more than just calling WSDL2Java. It
creates a Web project if the project does not already exist, creates a
server, associate the project with the server, calls WSDL2Java to generates
the client stub, optionally allows the user to test the Web service by using
the sample JSP or Web Services Explorer, and finally allows the user to run
the test on the server.

If you prefer not to start up Tomcat, you should not check the "Test the Web
service" check box on the first page. This would just generates the stub.
If you still want to generate the sample JSP but not start the server,
deselect the "Run test on server" check box on the Web Service Client Test
page.

Hope this helps!

Kathy Chan

"Michael Mealling" <michael@refactored-networks.com> wrote in message
news:pan.2005.03.03.06.17.08.392286@refactored-networks.com...
> In various places inside a larger project I simply want to create the
> stubs for a web services client from some WSDL. So I install WTP (I think,
> the directions aren't very clear for someone relatively new to eclipse)
> and right click on the wsdl file and say "Generate Client". The wizard
> that comes up eventually asks me about things like the server type and
> then if I click Finish tries to startup Tomcat and Axis. Why? Shouldn't
> "Generate Client" simply do what WSDL2Java does but with a useful wizard
> to it? What am I missing about WTP?
Re: Why is the "Generate Client" on a WSDL file trying to start a server? [message #79869 is a reply to message #79808] Thu, 03 March 2005 16:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: michael.refactored-networks.com

On Thu, 03 Mar 2005 10:04:49 -0500, Kathy Chan wrote:
> "Web Services -> Generate Client" does more than just calling WSDL2Java. It
> creates a Web project if the project does not already exist, creates a
> server, associate the project with the server, calls WSDL2Java to generates
> the client stub, optionally allows the user to test the Web service by using
> the sample JSP or Web Services Explorer, and finally allows the user to run
> the test on the server.

As a user I would find that a little bit overkill for a client
application (i.e. something to use Google's web services).

> If you prefer not to start up Tomcat, you should not check the "Test the Web
> service" check box on the first page. This would just generates the stub.
> If you still want to generate the sample JSP but not start the server,
> deselect the "Run test on server" check box on the Web Service Client Test
> page.

Hmm... I turned both of those off and it still attempts to startup Tomcat.
I've kludged what I was after by building a custom build.xml that calls
the ant-wsdl2java task that axis adds and adding its output to the
project by hand, but I'd rather it be less kludgy. Just $,02 from a user....

-MM
Re: Why is the "Generate Client" on a WSDL file trying to start a server? [message #87028 is a reply to message #79869] Thu, 24 March 2005 19:21 Go to previous message
Chris Brealey is currently offline Chris BrealeyFriend
Messages: 104
Registered: July 2009
Senior Member
Michael,
the choices on the first page of the wizard are supposed to let you ask the wizard
to skip any steps you don't want, such as server startup. The intent behind the
wizard is to allow anything from basic WSDL2Java codegen up to complete deployment
and testing, thus meeting the varying needs of folks that are building Web
services and clients. The Window->Preferences->Web Services->Scenario Defaults
preference page is also there to help you set your options once.

All that philisophical stuff said, we have an item lurking in our M4 milestone
plan [1] to get the "Start..." (aka. "Run...") checkbox on page 1 working
properly, since it isn't behaving itself too well now. Feel free to also open a
bug [2] to report the problem.

[1] http://www.eclipse.org/webtools/jst/components/ws/M4/milesto ne_plan.html
[2] https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Web%20To ols

Cheers - CB.

Michael Mealling wrote:

> On Thu, 03 Mar 2005 10:04:49 -0500, Kathy Chan wrote:
> > "Web Services -> Generate Client" does more than just calling WSDL2Java. It
> > creates a Web project if the project does not already exist, creates a
> > server, associate the project with the server, calls WSDL2Java to generates
> > the client stub, optionally allows the user to test the Web service by using
> > the sample JSP or Web Services Explorer, and finally allows the user to run
> > the test on the server.
>
> As a user I would find that a little bit overkill for a client
> application (i.e. something to use Google's web services).
>
> > If you prefer not to start up Tomcat, you should not check the "Test the Web
> > service" check box on the first page. This would just generates the stub.
> > If you still want to generate the sample JSP but not start the server,
> > deselect the "Run test on server" check box on the Web Service Client Test
> > page.
>
> Hmm... I turned both of those off and it still attempts to startup Tomcat.
> I've kludged what I was after by building a custom build.xml that calls
> the ant-wsdl2java task that axis adds and adding its output to the
> project by hand, but I'd rather it be less kludgy. Just $,02 from a user....
>
> -MM
Previous Topic:"java.lang.NullPointerException" when trying to edit the server used to deploy a web servi
Next Topic:Project Structure
Goto Forum:
  


Current Time: Sat Dec 21 14:44:35 GMT 2024

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

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

Back to the top