0 Replies Latest reply on Aug 21, 2006 8:21 AM by zohar sheinberg

    Problem with User defined object in Jboss web service - "Can

    zohar sheinberg Newbie

      Hi,

      When I call a ws method - test1() - that gets a user defined object from a .Net client I get an exception on the client side:

      "Cannot find child element: MyClass_1"} System.Web.Services.Protocols.SoapException {System.Web.Services.Protocols.SoapHeaderException}

      I use jboss 4.0.4GA + Java 1.5.0_06-b05

      Any ideas ?
      Thanka

      *Here are my classes:

      public interface TestInterface extends Remote {
      public String test1 (String a, MyClass b) throws RemoteException;
      }
      -------------------------------------------------------------------------

      @Stateless
      @WebService
      @SOAPBinding(style = SOAPBinding.Style.RPC)
      public class TestFacade implements TestFacadeInterface {

      @WebMethod
      public String test1 (String a, MyClass b) throws RemoteException{
      return a;
      }
      }

      -------------------------------------------------------------------------------

      public class MyClass implements Serializable{
      String a;

      public String getA() {
      return a;
      }
      public void setA(String a) {
      this.a = a;
      }
      }