Post the relevant segment of your WSDL and the parameters used to call
wsdl2java.

I use Axis2 to generate a lot of complex types with a single element without
problems

On Thu, May 20, 2010 at 2:05 PM, McBride, Devin (TS)
<[email protected]>wrote:

>  I have a complex class that, for the time, only holds a single element.
> While WSDL2Java runs successfully (without errors) no stub is created for
> this complex type.  Further, a call to this operation returns a type of the
> element being held by the complex type, rather than the complex type itself.
>
>
>
> While troubleshooting, I was able to ‘fix’ this by adding any second
> element.  Running WSDL2Java then creates the class for the complex type.
> Obviously since is not the fix I want, I’m wondering if there is a way
> around this – specifically: I want a complex type to be created that holds a
> single element.
>
> The odd thing about this is I was able to generate a complex Request Type
> with a single element just fine – the Response Type is the only one having
> an issue.  By design?
>
> Please advise.
>
> Thank you,
>
> Devin
>
>
>

Reply via email to