Could you help with the following problem?
When generating WS client code (with the wsimport ant task), all classes are automatically generated in one package (for example, helloservice.endpoint) as a web service, for example. if my web service has a method
public Node getNode ();
therefore, the helloservice.endpoint.Node class is generated. However, I have my own helloservice.Node class that I want to use in a web service.
I defined the bind.xml file:
<bindings version="2.0" xmlns="http://java.sun.com/xml/ns/jaxb" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > <bindings node="wsdl:definitions/wsdl:portType[@name='Node']"> <class name="helloservice.Node"/> </bindings> </bindings>
and pass it to wsimport task as binding parameter, but get the error:
[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
Could someone please recommend what is wrong here? Can I use my own classes in the generated web service classes this way, or do I need something more complex?
Thanks in advance.
source share