Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Soap Handlers in JAX-WS 2.0

 
Ravikanth Reddy Bapathi
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic