title: What to do with generated SOAP calls from a WSDL file in Netbeans
body: <p>I'm just starting out with Java, but my boss is pushing for this. I've taken the WSDL file we had, and generated a web service and a web client in Netbeans. Also, I've dragged the new service into my client and made sure, that the code works. But now I have a question. How do work with the result? The code in my JSP looks like this:</p>
  
  <pre><code>try {
      Soap.PDFSignatureServiceService service = new Soap.PDFSignatureServiceService();
      javax.xml.namespace.QName portQName = new javax.xml.namespace.QName("http://external.ltc.com/", "PDFSignatureServicePort");
      String req = "&lt;getTimestamp  xmlns=\"http://external.ltc.com/\"&gt;&lt;msisdn&gt;ENTER VALUE&lt;/msisdn&gt;&lt;/getTimestamp&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)));
  
  
  
          out.print(result.toString());
  
      } catch (Exception ex) {
      out.print(ex.getMessage());
      }
  </code></pre>
  
  <p>The code works, but what it is printing out is: <code>com.sun.xml.ws.util.xml.StAXSource@90fe8e</code>. What in the world do I do with this? I was expecting either a SOAP message, or an integer of some sorts. How do I get to somewhere from here?</p>
  
  <p>Thanks!</p>