I had thought about pushing it into the the XMLBeanWSDLProcessor but it 
seemed that would case problems at runtime, since the object model is used 
at runtime by the service control.

If for example, parameter names in the model were tweaked ('_return' for 
example), they would no longer match the WSDL and would cause problems in 
calling the web service operation. Same thing for the web service operation 
names. It seems like this functionality needs to stay at the code generation 
level. Let me know if I'm not understanding this correctly.

- Chad


On 6/13/05, daryoush mehrtash (JIRA) <beehive-dev@incubator.apache.org> 
wrote:
> [ 
http://issues.apache.org/jira/browse/BEEHIVE-807?page=comments#action_12313512]
> 
> daryoush mehrtash commented on BEEHIVE-807:
> -------------------------------------------
> 
> Chad,
> 
> This is a great piece of functionality to add, there are two issues that I 
see:
> 
> a) Shouldn't the reserve word rule applies to any names and not just 
parameter name (eg. method names, class names, more?) I think the name 
conversion should take place at those points also.
> 
> b) I think this functionality doesn't belong to the ExtensionMaker, rather 
it should be done in XMLBeanWSDLProcessor. The Extension make should let the 
object model enforce rules on the wsdl. One thing to keep in mind is that 
the WSM also generates Java source code from the Object model (from WSDL use 
case). To have this in Extension Maker means that the same thing is 
duplicated in the WSDL2AJava.
> 
> 
> > Service control generation gens controls which will fail compilation
> > --------------------------------------------------------------------
> >
> > Key: BEEHIVE-807
> > URL: http://issues.apache.org/jira/browse/BEEHIVE-807
> > Project: Beehive
> > Type: Bug
> > Components: Controls
> > Versions: V1
> > Reporter: Chad Schoettger
> > Attachments: BEEHIVE-807.diff
> >
> > The web service control's generator does not create valid Java code when 
the return value for a web method call is included in a control method's 
paramter list and has the name of 'return'. It is possible to generate the 
control from the WSDL but the compilation of the control fails.
> 
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
> http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see:
> http://www.atlassian.com/software/jira
> 
>

Reply via email to