Web service fails to deploy with javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL

Solution Unverified - Updated -

Issue

  • We receive the following exception when we deploy a web service:
Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=INVALID_WSDL: Could not determine element name from header: {http://example.com}PortName->HeaderName
        at org.jboss.ws.tools.wsdl.WSDL11Reader.processBindingReference(WSDL11Reader.java:1453)
        at org.jboss.ws.tools.wsdl.WSDL11Reader.processBindingInput(WSDL11Reader.java:1366)
        at org.jboss.ws.tools.wsdl.WSDL11Reader.processBindingOperation(WSDL11Reader.java:1317)
        at org.jboss.ws.tools.wsdl.WSDL11Reader.processBindingOperations(WSDL11Reader.java:1277)
        at org.jboss.ws.tools.wsdl.WSDL11Reader.processBinding(WSDL11Reader.java:1107)
        at org.jboss.ws.tools.wsdl.WSDL11Reader.processPort(WSDL11Reader.java:1614)
        at org.jboss.ws.tools.wsdl.WSDL11Reader.processPorts(WSDL11Reader.java:1599)
        at org.jboss.ws.tools.wsdl.WSDL11Reader.processServices(WSDL11Reader.java:1569)
        at org.jboss.ws.tools.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:177)
        at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:128)
        ... 36 more
  • When attempting to make a call to Web Service endpoint, the following error is reported
Caused by: javax.wsdl.WSDLException: WSDLException (at /soap:Envelope): faultCode=INVALID_WSDL: Expected element '{http://schemas.xmlsoap.org/wsdl/}definitions'.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 4.x
    • 5.x
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.