cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Good <>
Subject Re: wsdl2java and holders
Date Wed, 28 Feb 2007 01:39:14 GMT
Here's the wsdl.  I ran "wsdl2java.bat -client server-appl.wsdl" on windows.  Thanks!

<?xml version="1.0" encoding="UTF-8"?>
    <message name="startApplicationSession">
    <part name="body" element="aps:StartApplicationSession" />
  <message name="startApplicationSessionPosResponse">
    <part name="outbody" element="aps:StartApplicationSessionPosResponse" />
  <message name="startApplicationSessionNegResponse">
    <part name="faultbody" element="aps:StartApplicationSessionNegResponse" />
  <portType name="ApplicationSessionServices">
    <operation name="StartApplicationSession">
      <input message="tns:startApplicationSession" />
      <output message="tns:startApplicationSessionPosResponse" />
      <fault name="StartFault" message="tns:startApplicationSessionNegResponse" />
  <binding name="ApplicationSessionBinding" type="tns:ApplicationSessionServices">
    <operation name="StartApplicationSession">
        <soap:body use="literal" />
        <soap:body use="literal" />
      <fault name="StartFault">
        <soap:fault name="StartFault" use="literal" />
  <service name="MyWebService">
    <port name="ApplicationSessionServicesSoapHttpPort" binding="tns:ApplicationSessionBinding">

----- Original Message ----
From: Dan Diephouse <>
Sent: Friday, February 23, 2007 2:41:43 PM
Subject: Re: wsdl2java and holders

Hi Matthew,

CXF should only generate Holders if you have multiple outputs or the
input/output message contain the same message part.  An example of the later
would be something like this:

<message name="echoRequest">
  <part name="text" type="xsd:string"/>

<message name="echoResponse">
  <part name="text" type="xsd:string"/>

I believe if you change the part names it won't treat it as an "IN/OUT"

If you provide a WSDL sample I can probably help more. Cheers,

- Dan

On 2/23/07, Matthew Good <> wrote:
> When I use wsdl2java to generate client source, I get all these holders in
> the operation calls.  These are for return values.  This is really a pain to
> create these.  How can I get it to generate code that just returns a single
> object?

Dan Diephouse
Envoi Solutions |

View raw message