aspose file tools*
The moose likes Web Services and the fly likes Soap Handlers in JAX-WS 2.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Soap Handlers in JAX-WS 2.0" Watch "Soap Handlers in JAX-WS 2.0" New topic
Author

Soap Handlers in JAX-WS 2.0

Ravikanth Reddy Bapathi
Greenhorn

Joined: Apr 13, 2007
Posts: 29
Hi,

I am trying to deploy a webservice which includes a server side SOAPHandler.
I am getting the following error message while generating the classes using wsimport.

wsimport -d . -p com.test -b custom-server.xml mywsdl.wsdl

error: XPath evaluation of "wsdl efinitions/wsdl:types/xs:schema[@targetNamespace='http://mynamespace']" results in empty target node and
the bindings in custom-server.xml are



<jaxws:bindings xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
wsdlLocation="mywsdl.wsdl">
<jaxws:bindings node="wsdl efinitions">
<package name="com.test" />
</jaxws:bindings>
<jaxws:bindings
node="wsdl efinitions/wsdl:types/xs:schema[@targetNamespace='http://mynamespace']"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<jaxb:schemaBindings>
<jaxb ackage name="com.test" />
</jaxb:schemaBindings>
</jaxws:bindings>
<jaxws:bindings node="wsdl efinitions"
xmlns:jws="http://java.sun.com/xml/ns/javaee">
<jws:handler-chains>
<jws:handler-chain>
<jws:handler>
<jws:handler-class>
com.test.LoggingHandler
</jws:handler-class>
</jws:handler>
</jws:handler-chain>
</jws:handler-chains>
</jaxws:bindings>
</jaxws:bindings>



Quick Help is appreciated.

Thanks.
Ravikanth.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Soap Handlers in JAX-WS 2.0