The JAX-WS Spec dictates these things.   Basically, in the absence of 
customizations (JAX-WS has a customization language to customize some of 
this), the interface comes from the wsdl portType name,  the service factory 
comes from the wsdl service name, and the method on the factory is from the 
name of the port in the service.    

Dan


On Wed March 11 2009 3:09:24 pm Valerio Schiavoni wrote:
> Hello everyone,i'd like to understand which are the naming conventions (or
> the rules, if they're standardized) adopoted by wsdl2java when, given an
> input wsdl, it generates java interfaces, and factory classes to
> instantiate such interfaces.
>
> Given these 2 examples:
>
> http://www.webservicex.net/globalweather.asmx?wsdl
> http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl
>
> I get two different set of classes and methods:
> interface: GlobalWeatherSoap
>  factory  : GlobalWeather
>  method:  GlobalWeather.getGlobalWeatherSoap()
>
> and
> interface : AWSECommerceServicePortType
> factory   : AWSECommerceService
> method: : AWSECommerceService.getAWSECommerceServicePort()
>
> Now: which are the rules behind which wsdl2java chooses the classes to
> generate ?
> Thanks for any helpful pointer.
>
> Best Regards,
> Valerio

-- 
Daniel Kulp
[email protected]
http://www.dankulp.com/blog

Reply via email to