title: Generated web service not receiving parameters
body: <p>I've generated my web service from WSDL in Netbeans 7.1. For security concerns, I can't show it, but you can safely assume that it's ok, It's been production tested.</p>
  
  <p>I can call the web-service ok. If I make the function return and then dump it, it even returns the correct values. What is wrong though, it never receives any parameters from the SOAP call. This is the way I invoke it in the <code>index.jsp</code>:</p>
  
  <pre><code>try {
      Soap.ServiceService service = new Soap.ServiceService();
      javax.xml.namespace.QName portQName = new javax.xml.namespace.QName("http://external.example.com/", "ServicePort");
      String req = "&lt;getTimestampCount  xmlns=\"http://external.example.com/\"&gt;&lt;msisdn&gt;656&lt;/msisdn&gt;&lt;/getTimestampCount&gt;";
      javax.xml.ws.Dispatch&lt;javax.xml.transform.Source&gt; sourceDispatch = null;
      sourceDispatch = service.createDispatch(portQName, javax.xml.transform.Source.class, javax.xml.ws.Service.Mode.PAYLOAD);
  
  
          javax.xml.transform.Source result = sourceDispatch.invoke(new javax.xml.transform.stream.StreamSource(new java.io.StringReader(req)));
  
          javax.xml.transform.TransformerFactory factory = javax.xml.transform.TransformerFactory.newInstance();  
  javax.xml.transform.Transformer transformer = factory.newTransformer();  
  java.io.StringWriter writer = new java.io.StringWriter();  
  javax.xml.transform.Result stringOut = new javax.xml.transform.stream.StreamResult(writer);      
  transformer.transform(result, stringOut);  
  writer.close();  
  out.print(writer.toString());
  
      } catch (Exception ex) {
      out.print(ex.getMessage());
      }
  </code></pre>
  
  <p>And this is the function that returns the result:</p>
  
  <pre><code>public long getTimestampCount(java.lang.String msisdn) throws ParameterException, UnknownException_Exception {
          //TODO implement this method
          System.out.println(msisdn);
          throw new UnsupportedOperationException("Not implemented yet.");
      }
  </code></pre>
  
  <p>The printing always produces <code>null</code>. I can't for the life of me figure out why it's working, finding the right function, but not passing on the values.</p>
  
  <hr>
  
  <p>Also, I've tested it with this code, and the values returned are correct:</p>
  
  <pre><code>try {
      Soap.ServiceService service = new Soap.ServiceService();
      Soap.Service port = service.ServicePort();
       // TODO initialize WS operation arguments here
  
      java.lang.String msisdn = "5";
  
      // TODO process result here
      long result = port.getTimestampCount(msisdn);
      out.println("Result = "+result);
  } catch (Exception ex) {
      out.println(ex.getMessage());
      // TODO handle custom exceptions here
  }
  </code></pre>
  
  <p>as expected, this returns a value of 5. This would do fine if I wanted to generate the SOAP response by myself, but I would prefer to receive the response, like the first function does - as SOAP.</p>
  
  <p>Anything else I should post to make this easier? If so, say it, and I'll try to provide everything needed.</p>