On Mon, 2005-10-17 at 10:25 +0600, Ajith Ranabahu wrote: > Hi, > The WSDL is at > http://svn.apache.org/viewcvs.cgi/webservices/axis2/trunk/java/modules/codegen/test-resources/SalesRankNPrice.wsdl?rev=293558&view=markup > > This includes two porttypes which has the same operation name (but > refers to two sets of messages). Our algorithm did not take into > account multiple porttypes :)
Ah yes .. this is an old MSFT-style WSDL where they were generating one portType for each binding. Duh. (Its from their SDL legacy.) The solution is simple - we support generating stubs and skels only one portType at a time. So let's add some code to check whether there's more than one portType and if so ask the user to indicate which one to use (for the skeleton). If its to generate a stub, we need to do the same for multiple <service> elements and multiple <port> elements within a service: the user needs to indicate which service/port to generate a stub for. Sanjiva.
