1 Reply Latest reply on Nov 7, 2008 9:01 AM by Alessio Soldano

    How to pass whole ValueObjects as parameter to a webservice?

    Peter Steiner Newbie

      Nearly all of the web service examples show on how to pass single input parameters as "string" or "int" to a web service.

      But what if I want to pass a whole Java class ValueObject like e.g.

      public class MyValueObj {
      public String name;
      public int value;
      protected boolean result; }

      Is there somewhere an example (client and webservice implementation)
      of passing such more complex ValueObjects to a web service?

      Peter

        • 1. Re: How to pass whole ValueObjects as parameter to a webserv
          Alessio Soldano Master

           

          "pxstein" wrote:
          Nearly all of the web service examples show on how to pass single input parameters as "string" or "int" to a web service.

          But what if I want to pass a whole Java class ValueObject like e.g.

          public class MyValueObj {
          public String name;
          public int value;
          protected boolean result; }

          Is there somewhere an example (client and webservice implementation)
          of passing such more complex ValueObjects to a web service?

          Peter

          Take a look at the jbossws testsuite, package org.jboss.test.ws.jaxws.samples.advanced.retail for instance.