Geronimo beginner: Make JavaEETutorial work with Eclipse/Gernoimo

2009-09-03 Thread scholz

Hi everybody, I'm a bare beginner with JavaEE and Geronimo.  

I'm reading the JavaEETutorial
(http://java.sun.com/javaee/5/docs/tutorial/doc/), which is made for
NetBeans and GlassFish. I try to make the examples work in Eclipse.  I've
installed Ecllipse 3.5 EE and first things work.   

Now I try to make a Web Service run.  It's the example HelloServiceBean on
pages 668/669.

The web service is started and synchronized.  But when I open the web page
http://localhost:8080/HelloWorld/HelloWorld I only get Hi, this is
'HelloWorldService' web service. (OK, I use HelloWorld instead of
HelloServiceBean).  How do I access the service sayHello?

The tutorial states for NetBeans:

1. The [NetBeans] Application Server Admin Console allows you to test the
methods of a web service endpoint. To test the sayHello method of
[HelloWorld], do the following:Open the
Admin Console [...]
2. Enter the admin username and password to log in to the Admin Console.
3. Click Web Services in the left pane of the Admin Console.
4. Click helloservice.
5. Click Test.
6. UnderMethods, enter a name as the parameter to the sayHello method.
7. Click the sayHello button.
This will take you to the sayHelloMethod invocation page.
8. UnderMethod returned, you’ll see the response from the endpoint.

Is there a corresponding functionality of the Geronimo Console?  I did not
find it.

Ulrich
-- 
View this message in context: 
http://www.nabble.com/Geronimo-beginner%3A-Make-JavaEETutorial-work-with-Eclipse-Gernoimo-tp25279326s134p25279326.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Geronimo beginner: Make JavaEETutorial work with Eclipse/Gernoimo

2009-09-03 Thread Stephan Mehlhase
Hi Ulrich,

have you tried the Eclipse Web Services Explorer?
http://cwiki.apache.org/GMOxDOC21/developing-a-jax-ws-pojo-web-service.html#DevelopingaJAX-WSPOJOWebService-TesttheWebServiceusingEclipseWebServicesExplorer
I haven't used it yet, but it seems to do what you want without using
wsimport or something like that to generate a client.
Be sure to use http://localhost:8080/HelloWorld/HelloWorld?wsdl as
WSDL location.

However, the Web Services Explorer seems not to be located in the Run
Menu anymore but can be found in the Java EE perspective as a button
in the bar.

Best,
Stephan


On Thu, Sep 3, 2009 at 18:14, scholzd...@thispla.net wrote:

 Hi everybody, I'm a bare beginner with JavaEE and Geronimo.

 I'm reading the JavaEETutorial
 (http://java.sun.com/javaee/5/docs/tutorial/doc/), which is made for
 NetBeans and GlassFish. I try to make the examples work in Eclipse.  I've
 installed Ecllipse 3.5 EE and first things work.

 Now I try to make a Web Service run.  It's the example HelloServiceBean on
 pages 668/669.

 The web service is started and synchronized.  But when I open the web page
 http://localhost:8080/HelloWorld/HelloWorld I only get Hi, this is
 'HelloWorldService' web service. (OK, I use HelloWorld instead of
 HelloServiceBean).  How do I access the service sayHello?

 The tutorial states for NetBeans:

 1. The [NetBeans] Application Server Admin Console allows you to test the
 methods of a web service endpoint. To test the sayHello method of
 [HelloWorld], do the following:Open the
 Admin Console [...]
 2. Enter the admin username and password to log in to the Admin Console.
 3. Click Web Services in the left pane of the Admin Console.
 4. Click helloservice.
 5. Click Test.
 6. UnderMethods, enter a name as the parameter to the sayHello method.
 7. Click the sayHello button.
 This will take you to the sayHelloMethod invocation page.
 8. UnderMethod returned, you’ll see the response from the endpoint.

 Is there a corresponding functionality of the Geronimo Console?  I did not
 find it.

 Ulrich
 --
 View this message in context: 
 http://www.nabble.com/Geronimo-beginner%3A-Make-JavaEETutorial-work-with-Eclipse-Gernoimo-tp25279326s134p25279326.html
 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.