Problems with web services with return type SOAPBodyElement

Solution Verified - Updated -

Issue

  • I have a web service operation that has one parameter of org.w3c.dom.Element and a return type of SOAPBodyElement. I get the following exception when making a request to the service:
The exception and stack trace:
09:59:16,889 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
java.lang.IllegalStateException: Parameter meta data not available
    at org.jboss.ws.core.soap.SOAPContentElement.getParamMetaData(SOAPContentElement.java:111)
    at org.jboss.ws.core.soap.SOAPContentElement.getXmlType(SOAPContentElement.java:123)
    at org.jboss.ws.core.soap.XMLContent.unmarshallObjectContents(XMLContent.java:155)
    at org.jboss.ws.core.soap.XMLContent.transitionTo(XMLContent.java:96)
    at org.jboss.ws.core.soap.DOMContent.transitionTo(DOMContent.java:74)
    at org.jboss.ws.core.soap.SOAPContentElement.transitionTo(SOAPContentElement.java:140)
    at org.jboss.ws.core.soap.SOAPBodyElementDoc.transitionTo(SOAPBodyElementDoc.java:85)
    at org.jboss.ws.core.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:172)
    at org.jboss.ws.core.EndpointInvocation.transformPayloadValue(EndpointInvocation.java:273)
    at org.jboss.ws.core.EndpointInvocation.getReturnValue(EndpointInvocation.java:197)
    at org.jboss.ws.core.CommonSOAPBinding.bindResponseMessage(CommonSOAPBinding.java:445)
    at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:274)
    at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:469)
    at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:294)
    at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:203)
    at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:129)
    at org.jboss.wsf.common.servlet.AbstractEndpointServlet.service(AbstractEndpointServlet.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

Environment

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

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