title: WebService with ComplexData type as input
body: <p>I have the question why when I use the Java Annotation (import javax.jws.*) for WebServices, I don't get an complex java class members with the correct value?</p>
  
  <p>f.e:</p>
  
  <p>[1.] With simple type as service input</p>
  
  <pre><code>import javax.jws.WebMethod;
  
  @WebService
  public class WebServiceClass{
  
      @WebMethod
      public void webMethodSample(int inValue){
          int i = inValue;
  
      }
  }
  </code></pre>
  
  <p>Result: That works fine.</p>
  
  <p>[2.] With Java Class/Object (Complex type) as service input:</p>
  
  <pre><code>import javax.jws.WebMethod;
  
  @WebService
  public class WebServiceClass{
  
      @WebMethod
      public void webMethodSample(SimpleObj inObj){
          int i = inObj.getValue();
  
      }
  }
  </code></pre>
  
  <p>-> SimpleObj:</p>
  
  <pre><code>public class SimpleObj {
      private int m_Value = 0;
  
      public void setValue(int inValue){
          this.m_Value = inValue;
      }
      public int getValue(){
          return this.m_Value;            
      }
  }
  </code></pre>
  
  <p>Result: The variable 'i' which comes from the "SimpleObj" inputObject is not the value which I pass from an SOAP Client Program.</p>
  
  <p>Can anybody helps me what I do wrong?</p>
  
  <p>Thanks and Greets</p>
  
  <p>Tommy</p>