users@glassfish.java.net

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

From: Vijay Ramachandran <Vijay.Ramachandran_at_Sun.COM>
Date: Tue, 13 Mar 2007 10:07:04 -0700

Check this out : http://blogs.sun.com/vijaysr/entry/a_service_and_a_client

Vijay

glassfish_at_javadesktop.org wrote:
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>