Here is one sample that I worked up for the server-side:

  | package org.jboss.samples; //note: not part of anything official
  | 
  | import javax.jws.WebMethod;
  | import javax.jws.WebService;
  | import javax.jws.soap.SOAPBinding; 
  | import javax.jws.soap.SOAPBinding.Use;
  | 
  | @WebService
  | @SOAPBinding(style = SOAPBinding.Style.RPC)
  | public class POJOService {
  |    @WebMethod(operationName="GetPersonByID")
  |    public Person getPerson(String id)
  |    {
  |       System.out.println("Looking for " + id);
  |       Person somebody = new Person();
  |       somebody.setName("Burr Sutter");
  |       somebody.setAge(24);
  |       somebody.setBirthDate(new java.util.Date());
  |       return somebody;
  |    }
  |    
  |    @WebMethod (operationName="GetAllPeopleArray")
  |      public Person[] getPeople2() {
  |       Person[] results = new Person[2];
  |       Person a = new Person();
  |       a.setName("Burr Sutter");
  |       a.setAge(24);
  |       a.setBirthDate(new java.util.Date());
  |       results[0] = a;
  |       Person b = new Person();
  |       b.setName("Thomas Diesler");
  |       b.setAge(23);
  |       b.setBirthDate(new java.util.Date());
  |       results[1] = b;
  |       
  |       return results;
  |    }
  | }


My client code is in VB.NET so I suspect that isn't helpful to you.   I might 
get around to building a Java client to this service over the weekend.  

Burr



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946719#3946719

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3946719


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to