Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » WTP Web Services Tutorial M4
WTP Web Services Tutorial M4 [message #98791] Wed, 04 May 2005 16:52 Go to next message
Eclipse UserFriend
Originally posted by: jason.jones.med.va.gov

When running the tutorial "Web Service Client Supporting Flexible
Projects" for WTP M4, (running Eclipse M6, j2sdk_1.4.2_08, and Tomcat
5.028), I get as far as step 7, but then the JSPs do not appear (resource
not found). I discovered that the "sampleAreaServiceProxy" folder that
contains the JSPs was not getting placed into the .deployables directory.
I copied it manually in, and also copied the webserviceutils.jar into the
deployables\areaClient\WEB-INF\lib folder, as I discovered next, due to
an error was not copied over publishing (again - why?). Finally, I was
able to successfully run the TestClient.jsp. However, it is returning a
value of -3, instead of 10, for the height value of 2.0 and width of 5.0.
Any clues as to what's going wrong here, and why my Eclipse is not working
as it's supposed to?

My system is as clean as possible - no multiple version of the JDK or JRE,
one version of Tomcat, and the latest Milestone versions of Eclipse and
the WTP.

-Jason
Re: WTP Web Services Tutorial M4 [message #98869 is a reply to message #98791] Wed, 04 May 2005 18:52 Go to previous message
Seng Phung Lu is currently offline Seng Phung LuFriend
Messages: 62
Registered: July 2009
Member
Hi Jason,
The return value "-3" is an arbitrary number set to be returned by the
skeleton stub implementation of a web service you created.

If you started with a Java bean(aka Bottom up), you should enable
"Generate Proxy" and "Test the Web service". As you continue "Next"
thru the wizard, you should see the various places that files will be
generated in your workspace. Finishing out of this wizard should give
you the JSPs gen'd to a new project, and it should launch the client in
a browser for you.

You shouldn't need to copy JSPs or Jars; that would be a bug. =)

Having said that, there is a known bug when working with multiple
modules in the same project where the JSPs are generated into the wrong
module, and the testclient point's to the wrong URL.

If you start with a WSDL, you can either create a client OR a skeleton
Web service to be implemented by you. I suspect you went thru the
"Skeleton java bean Web service" scenario, instead of the Client Web
service scenario.

Thanks for your interest and comments!
-Seng




Jason Jones wrote:
> When running the tutorial "Web Service Client Supporting Flexible
> Projects" for WTP M4, (running Eclipse M6, j2sdk_1.4.2_08, and Tomcat
> 5.028), I get as far as step 7, but then the JSPs do not appear
> (resource not found). I discovered that the "sampleAreaServiceProxy"
> folder that contains the JSPs was not getting placed into the
> .deployables directory. I copied it manually in, and also copied the
> webserviceutils.jar into the deployables\areaClient\WEB-INF\lib folder,
> as I discovered next, due to an error was not copied over publishing
> (again - why?). Finally, I was able to successfully run the
> TestClient.jsp. However, it is returning a value of -3, instead of 10,
> for the height value of 2.0 and width of 5.0. Any clues as to what's
> going wrong here, and why my Eclipse is not working as it's supposed to?
>
> My system is as clean as possible - no multiple version of the JDK or
> JRE, one version of Tomcat, and the latest Milestone versions of Eclipse
> and the WTP.
> -Jason
>
Previous Topic:Difference between WST/xsd-component and xsd-project
Next Topic:Can't see it installed
Goto Forum:
  


Current Time: Fri Apr 26 10:06:04 GMT 2024

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

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

Back to the top