You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Russell Butek <bu...@us.ibm.com> on 2001/11/28 21:52:51 UTC
What should Wsdl2java generate?
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:
(highest)
types
portType
binding
service
(lowest)
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,
B.
Russell Butek
butek@us.ibm.com