CXF WSDLToJava Not Generating Void Return Type

Solution Unverified - Updated -

Issue

  • org.apache.cxf.tools.wsdlto.WSDLToJava is generating one of my methods as returning void instead of the correct type
  • WSDLToJava has generated a method with the response values as parameters with Holder objects but I would prefer a generated response type.
  • For example:
    public void sampleMethiod(java.lang.String parameterId, javax.xml.ws.Holder<java.lang.Boolean> firstOutput, javax.xml.ws.Holder<java.lang.Boolean> secondOutput)

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 6
  • CXF generating Java client code from WSDL with WSDLToJava

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.