1 Reply Latest reply on Nov 8, 2007 10:05 AM by Richard Opalka

    Is it valid?

    Pierre De Paepe Newbie


      I'm very noob on WS, so, excuse me in advance.
      I wish to submit several Users in one soap request.
      Let's say that a user is :

      public class User implements Serializable
       private int id;
       private String uid;
       public User(){}
       public int getId()
       return id;
       public void setId(int id)
       this.id = id;
       public String getUid()
       return uid;
       public void setUid(String uid)
       this.uid = uid;

      Is such web method allowed?

      @WebService(name = "UserService", serviceName = "UserService")
      public class UserService implements UserServiceRemote
       private static Log log;
       public int countUsers (
       @WebParam(name="users") User[] users){
       return users.length;

      In soapUi, i'm abble to build easily a soap envelope wich return the exact count of users, but in PHP (nusoap or php5lib), the parser never build the correct enveloppe. So i have some doubts on the validity of my service.

      (i have to try a java client too).

      Thank you.