I believe that WSDL2Java only generates Holder classes if there are multiple output parameters. For example, if a service method only has one output parameter, then WSDL2Java will generate a Java method with the output parameter as its return type. (That's probably why you don't have any Holder classes -- my guess is that your method only has one output, so WSDL2Java doesn't need to create any Holder classes.) But if there are two or more output parameters, it generates Holder classes for complex types so that you can set multiple return values.

-- Albert

On Monday, December 29, 2003, at 08:27 AM, Massimo Barabino wrote:

Hi all,
when are Holder Classes generated by WSDL2Java?
Reading the user guide, it says that they are generated if a type is used
as an input or uotput parameter. In my own service I use a complex type
(JavaBean) as input (and output) parameter of one of my service' s methods.
The problem is that I don' t see the Holder class generated. WSDL2Java just
generates a class for that type.
Should I expect to see a Holder or have I misunderstood the user guide?
Thanks in advance


Massimo Barabino




Reply via email to