axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Russell Butek" <bu...@us.ibm.com>
Subject Re: [PATCH] WSDL2Java - BindingStub not registering all types.
Date Wed, 01 May 2002 20:32:24 GMT
Your solution would work.  And thanks for offering it!

But this brings up an issue.  What do we do when a WSDL file has two (or
more) portTypes/bindings in it?  Your solution would register ALL
referenced types in ALL stubs.  When the --all flag is turned on, that's
probably what we MUST do.  But when it's not turned on, then we should only
register those types used by that stub.  So the old code should be used
when --all is not used, and your new code should be used when --all is
turned on.

Sound reasonable to folks?  Comments?

Russell Butek
butek@us.ibm.com


"Ng, Charles" <Charles.Ng@cognos.com> on 05/01/2002 03:16:30 PM

Please respond to axis-dev@xml.apache.org

To:    "'axis-dev@xml.apache.org'" <axis-dev@xml.apache.org>
cc:
Subject:    [PATCH] WSDL2Java - BindingStub not registering all types.



I've attached a patch for this problem.

The type mappings were generated from types that are used in operations.
Having the "-a" option does not change that fact.

I've modified the code to get the types from the symbol table and only
generate the type mappings where the types are referenced. (The "-a" flag
makes all symbol table entries referenced)

Charles

> -----Original Message-----
> From: Russell Butek [mailto:butek@us.ibm.com]
> Sent: Monday, April 22, 2002 12:07 PM
> To: axis-dev@xml.apache.org
> Subject: Re: WSDL2Java - BindingStub not registering all types.
>
>
> Sylvain, I thought the -a option ws supposed to register all
> types.  We
> discussed this a while ago and I believe we agreed.  Either
> we never did
> the work or it was inadvertently removed.
>
> All types should be registered in both the Stub AND in the
> deploy.wsdd file
> if -a is turned on.
>
> I'll fix this after beta 2.
>
> Russell Butek
> butek@us.ibm.com
>
>
> "St-Germain, Sylvain" <Sylvain.StGermain@cognos.com> on
> 04/22/2002 10:19:58
> AM
>
> Please respond to axis-dev@xml.apache.org
>
> To:    "Axis Dev (E-mail)" <axis-dev@xml.apache.org>
> cc:
> Subject:    WSDL2Java - BindingStub not registering all types.
>
>
>
> Hi all,
>
> When the -a option was added to WSDL2Java it was mainly to serve the
> purpose
> of being able to use (thus serialize) the objects defined in
> the WSDL even
> though they appeared unused from a WSDL perspective.
>
> I realize now that WSDL2Java does some smarts about it and
> will not define
> the QName for a type for which it does not find a
> reference... or something
> like that.
>
> All types I define (this is true for all my SOAP Header types) are not
> being
> mapped in my BindingStub.   Is it possible to add mapping in the
> BindingStub
> for all types defined in the WSDL regardless of them being
> referred to or
> not?
>
> This is using -the somewhat old- March 25th build.  I will
> check with a
> more
> recent build.
> --
> Sylvain
>
> This message may contain privileged and/or confidential
> information.  If
> you
> have received this e-mail in error or are not the intended
> recipient, you
> may not use, copy, disseminate or distribute it; do not open any
> attachments, delete it immediately from your system and
> notify the sender
> promptly by e-mail that you have done so.  Thank you.
>
>

This message may contain privileged and/or confidential information.  If
you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so.  Thank you.







Mime
View raw message