|
Re: developing Web Services with Eclipse [message #158205 is a reply to message #158126] |
Fri, 27 January 2006 16:28   |
Eclipse User |
|
|
|
Hi BigBill,
Here are a few ways you can use the Web services wizards in WTP to test the
Web service you created:
1. Test with the Web Services Explorer
- right-click on the WSDL file and select "Test with Web Services Explorer"
or follow the tutorial:
http://www.eclipse.org/webtools/community/tutorials/WebServi ceExplorer/WebServiceExplorer.html
and paste the WSDL file in the WSDL page.
2. Generate a Web service client and write a Java program to call the Web
service.
3. Generate a Web service client and select "Test the Web service" to
generate sample JSP to call the Web service (this is what the tutorial had
taken you through). You can write JSPs to call the Web service through the
generated client code similar to the sample JSP.
With a simple Web browser, you can ensure that the Web service is live by
pinging the endpoint URL of the Web service.
You can find the endpoint URL of the Web service from the <wsdlsoap:address>
location attribute in the WSDL file. The WSDL file is located in the Web
project/WebContent/WSDL-INF/wdl folder.
For example, for the Bottom-up Web service, the endpoint URL is:
http://localhost:8080/ConverterProj/services/Converter
Once you get the endpoint URL of the Web service, you can also get the WSDL
file by adding "?WSDL" to the endpoint URL. For example,
http://localhost:8080/ConverterProj/services/Converter?WSDL
Hope this info helps!
Regards,
Kathy Chan
"BigBill" <incalnoir@hotmail.com> wrote in message
news:83c2d41416028fccbf03060a991d0da4$1@www.eclipse.org...
> Hello everybody,
>
> I'm a beginner in Eclipse/webservices, I tried to use WTP 1.0 which offers
> very interesting possibilities :
>
> http://www.eclipse.org/webtools/jst/components/ws/1.0/tutori als/index.html
>
> than I tested some tutorials :
>
> 1)How to create a Web service bottom-up from Java
>
> 2)How to create a Web service Java skeleton top-down from WSDL
> 3)How to create a Java client to a Web service
>
> but once I finished, I did'nt succeed to know how to use my webservices
> from a simple navigator like Internet Explorer/mozilla ...
>
> I tried
> http://localhost:8080/AreaProjClient/sampleServiceProxy/Test Client.jsp
> for the 2) and 3) tutorials
>
> but the error page indicated
> the wanted ressource is not available...
>
> I verified that the apache tomcat server is running ==> it was
> functionning.
>
> is it the right way, what should i do ..?
>
>
> thanks in advance
> BigBill
>
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04202 seconds