axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "R J Scheuerle Jr" <>
Subject RE: What should Wsdl2java generate?
Date Thu, 29 Nov 2001 00:03:08 GMT

When I ready the note I assumed that it was using wsdl references to 
control generation.

Let's say a wsdl file only had a types and message element.
  - the types are a, b, and c.
  - the single message X has parts that reference a & b.

So my assumption would be that Wsdl2Java would generate types a & b (not 
a, b & c).

Russell please clarify...

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

Tom Jordahl <>
11/28/2001 04:26 PM
Please respond to axis-dev

        To:     "''" <>
        Subject:        RE: What should Wsdl2java generate?


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 

                    02:52 PM

                    Please respond

                    to axis-dev



Wsdl2java should really only generate stuff that's needed.  For example, 
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 
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 
start from.  But if the binding is the anchor, then the bindings and all 
the portTypes used by those bindings can be generated.

I propose that the anchor simply be the lowest things in the immediate 
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, 

Russell Butek

View raw message