title: need to use custom classes instead of generated (by wsimport) in web-services
body: <p>Could you, please, help with the following issue?</p>
  
  <p>When generate WS client code (with wsimport ant task), all classes are generated automatically in the same package (e.g. helloservice.endpoint) as web service, e.g. if my web-service has method</p>
  
  <p>public Node getNode();</p>
  
  <p>so class helloservice.endpoint.Node is generated.
  Nevertheless, I have my own helloservice.Node class that I want to use in web-service.</p>
  
  <p>I defined bind.xml file :</p>
  
  <pre><code>
  &lt;bindings version=&quot;2.0&quot; xmlns=&quot;http://java.sun.com/xml/ns/jaxb&quot; xmlns:wsdl=&quot;http://schemas.xmlsoap.org/wsdl/&quot; &gt;
      &lt;bindings node=&quot;wsdl:definitions/wsdl:portType[@name=&#39;Node&#39;]&quot;&gt;
          &lt;class name=&quot;helloservice.Node&quot;/&gt;
      &lt;/bindings&gt;
  &lt;/bindings&gt;
  
  </pre>
  
  <p>and pass it to wsimport task as binding parameter, but get the error : </p>
  
  <pre> [wsimport] [ERROR] XPath evaluation of "wsdl:definitions/wsdl:portType[@name='Node']" results in empty target node
   [wsimport]   line 2 of file:/C:/work/projects/svn.ct/trunk/jwstutorial20/examples/jaxws/simpleclient/bind.xml
  </code></pre>
  
  <p>Could anybody, please, recommend what is wrong here?
  Can I use my own classes in generated web-service classes in such way, or I need smth more complicated?</p>
  
  <p>Thanks in advance.</p>