axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Jordahl <>
Subject RE: What should Wsdl2java generate?
Date Wed, 28 Nov 2001 22:26:34 GMT

Messages don't correspond to a emitted java file.
They map to return values and argument lists.

So I don't believe it makes sense to have them on the list.

Tom Jordahl

-----Original Message-----
From: R J Scheuerle Jr []
Sent: Wednesday, November 28, 2001 4:40 PM
Subject: Re: What should Wsdl2java generate?

Shouldn't the list be:
   messages     <----

Your idea seems very reasonable, and I  '+1' that this should be the
default for Wsld2Java.

Could we have....

   1) An "emitAll" option which would generate all of the bindings.
   2) A "emitIfNotThere" option which would not overwrite pre-existing

Rich Scheuerle
XML & Web Services Development
512-838-5115  (IBM TL 678-5115)



                    Butek/Austin/I       To:

                    BM@IBMUS             cc:

                                         Subject:     What should Wsdl2java

                    02:52 PM

                    Please respond

                    to axis-dev



Wsdl2java should really only generate stuff that's needed.  For example, if
a portType exists in a WSDL file but no binding refers to it, then no
interface should be generated for it.  But this raises an issue:  what
should be the anchor from which we start the evaluation?  For instance,
what if a WSDL file contains portTypes and bindings, but no service?  If we
assume that a service is the anchor and check for references starting from
the service, then nothing will get generated because there is no service to
start from.  But if the binding is the anchor, then the bindings and all of
the portTypes used by those bindings can be generated.

I propose that the anchor simply be the lowest things in the immediate WSDL
file.  Where the list is:

Time for an example:
types.wsdl contains types A, B, C.
portTypes.wsdl contains portTypes pt1, pt2, pt3 and imports types.wsdl for
types A and B.
bindings.wsdl contains b1, b2, b3 and imports portTypes.wsdl for portTypes
pt1 and pt2.
service.wsdl contains s1 and imports bindings.wsdl for bindings b2 and b2.

Wsdl2java types.wsdl would generate bindings for A, B, C.
Wsdl2java portTypes.wsdl would generate bindings for pt1, pt2, pt3, A, B.
Wsdl2java bindings.wsdl would generate bindings for b1, b2, b3, pt1, pt2,
A, B.
Wsdl2java service.wsdl would generate bindings for s1, b1, b2, pt1, pt2, A,

Russell Butek

View raw message