Skip to main content

could not get binding from WSDL! Please help!

1 reply [Last post]
james1980
Offline
Joined: 2009-04-05

I am new to java ws and have been struggling with this error for a long time. Any help at all will sure be appreciated!

Stack Trace, wsdl, sun-jaxws.xml, web.xml are below. I am deploying to Tomcat 6

The error is:

SEVERE: WSSERVLET11: failed to parse runtime descriptor: could not get binding from WSDL! service: {http://webservice/}BackgroundCheckService or port {http://webservice/}BackgroundCheckPort not found in the WSDL jndi:/localhost/xmlinterface/WEB-INF/wsdl/BackgroundCheck.wsdl
could not get binding from WSDL! service: {http://webservice/}BackgroundCheckService or port {http://webservice/}BackgroundCheckPort not found in the WSDL jndi:/localhost/xmlinterface/WEB-INF/wsdl/BackgroundCheck.wsdl

My sun-jaxws.xml file looks like (you will see I have tried populating the optional wsdl, service and port attributes of the endpoint tag but the error remains)

<?xml version="1.0" encoding="UTF-8"?>

My WSDL:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

Finally my web xml:

<?xml version="1.0" encoding="UTF-8"?>

com.sun.xml.ws.transport.http.servlet.WSServletContextListener

JAX-WS endpoint
WSServlet
WSServlet
com.sun.xml.ws.transport.http.servlet.WSServlet
1

WSServlet
/xmlinterface/*

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
james1980
Offline
Joined: 2009-04-05

I figured this out, or rather went the smarter route of letteing IntelliJ create the .war file and what-do-ya-know it works perfectly.