users@glassfish.java.net

How to use objects of "own" classes in WS?

From: <glassfish_at_javadesktop.org>
Date: Mon, 12 Mar 2007 10:35:43 PST

Hello,

I'm a beginner in the field of WS. I'm developing with Java jdk 1.6 and I'm using the application server platform ed. 9.
When I use a self-defined object like bar (uncommented line: "private Foo bar;"), my WS doesn't work anymore...It's not listed in the System App. Server Admin Console. What have I to do?

Thanks!

Code:
-----------------------------------------------------
package endpoint;

import javax.jws.WebService;
import javax.jws.WebMethod;

@WebService
public class Hello{
// private Foo bar;
        
        @WebMethod
    public String getHello(String name)
    {
        return "Hallo" + name + "!";
    }
}
[Message sent by forum member 'cello1234' (cello1234)]

http://forums.java.net/jive/thread.jspa?messageID=207479