axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anne Thomas Manes <atma...@gmail.com>
Subject Re: Java Client to return Complex Type
Date Sun, 05 Jun 2005 12:14:12 GMT
Please provide more information.

On 6/5/05, Suresh KC <suresh79k@hotmail.com> wrote:
> 
> 
> >From: "Suresh KC" <suresh79k@hotmail.com>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: Java Client to return Complex Type
> >Date: Sat, 04 Jun 2005 13:45:37 +0000
> >
> >I am trying to return a complex type back from the Web Service.
> >
> >Complex Type Class
> >
> >public class Employee implements java.io.Serializable {
> >   private int sn;
> >   public Employee(int a){this.sn = a;}
> >   public void setSn(int sn) { this.sn = sn;}
> >   public int getSn () {return this.sn;}
> >}
> >
> >
> >Web Service Method
> >public Employee getEmployee() {
> >    return new Employee(14);
> >}
> >
> >I am getting the error: Document root element is missing.
> >
> >Java Client
> >
> >Service sv = new Service();
> >Call call = (Call) sv.createCall();
> >call.setTargetEndpointAddress("http://localhost:8080/axis/EmployeeService.jws");
> >call.setOperationName("getEmployee");
> >
> >Employee o = (Employee) call.invoke (new Object[]{});
> >
> >Any direction would be helpful
> >
> >_________________________________________________________________
> >Sell your car for $9 on carpoint.com.au
> >http://www.carpoint.com.au/sellyourcar
> >
> 
> _________________________________________________________________
> Sell your car for $9 on carpoint.com.au
> http://www.carpoint.com.au/sellyourcar
> 
>

Mime
View raw message