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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content