JBossWS cannot identify element in an RPC/Literal SOAP message within a target namespace

Solution Verified - Updated -

Issue

Given this sample request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.jboss.org/namespace">
  <soapenv:Header/>
  <soapenv:Body>
    <ns1:GetData>
      <ns1:MyMethodParameter>
        ...
      </ns1:MyMethodParameter>
    </ns1:GetData>
  </soapenv:Body>
</soapenv:Envelope>

The following error is thrown in the error log when invoking a webservice call. The element is present in the target namespace but is unable to identify it.

    org.jboss.ws.WSException: Cannot find child element: MyMethodParameter

Note that this is using an RPC-Literal web service binding.

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 4.3
    • 5.x
    • 6.x
  • JBossWS

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.