users@glassfish.java.net

AW: Very basic question

From: Markus Karg <karg_at_quipsy.de>
Date: Mon, 28 Sep 2009 13:29:12 +0200

I guess that you will see the setName method as soon as you make it public.

Regards
Markus

> -----Ursprüngliche Nachricht-----
> Von: glassfish_at_javadesktop.org [mailto:glassfish_at_javadesktop.org]
> Gesendet: Montag, 28. September 2009 09:29
> An: users_at_glassfish.dev.java.net
> Betreff: Very basic question
>
> Hi,
> I am very new to Glassfish and web services in general.
>
> I am trying to write a simple test web service, just to get me going.
> I will need to be able to use a user type as an argument and a return
> value for a web method.
>
> So I created the simple object:
>
> public class Project{
>
> private String name;
>
> setName(String name){
> this.name=name;
> }
> }
>
> In my WebService I have a method:
>
> @WebMethod()
> public void setProject(Project project){
> ....some stuff....
> }
>
>
> Now In my c# client I expected to see a class called Project, which I
> did. But it didn't have a setName property in it.
>
> Could someone please give me a simple example to show a c# client
> setting and passing in a user type to a Glassfish WebService, and an
> example of the Java code on Glassfish to handle it.
>
> Using Axis2, I was able to use POJO's quite easily, and set instances
> up on the c# client, and pass them to a WebMethod easily. Am I missing
> something here on Glassfish?
>
> Many thanks,
> John.
> [Message sent by forum member 'mpegjohn' (john_wilkinson3_at_sky.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=365999
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net