users@glassfish.java.net

Very basic question

From: <glassfish_at_javadesktop.org>
Date: Mon, 28 Sep 2009 00:28:37 PDT

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