You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Chad Schoettger (JIRA)" <be...@incubator.apache.org> on 2005/06/13 21:23:47 UTC

[jira] Created: (BEEHIVE-807) Service control generation gens controls which will fail compilation

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


Re: [jira] Commented: (BEEHIVE-807) Service control generation gens controls which will fail compilation

Posted by Daryoush Mehrtash <dm...@gmail.com>.
Good point. As you pointed out we clearly need to keep the original WSDL 
names. There are two issues that we are trying to solve here:

 a) we need the "encoding" for java class names, method names, parameters 
names, and Exceptions (potentially the package name also)).

b) We have so far identified more than one use case for this encoding, 
WSDL->Annotated Java and WSDL -> JCX

 I did some digging in the JaxRPC spec and the Axis code. Chapter 20 on the 
JaxRPC spec (version 1.1) talks about Mapping of XML Names, there is an 
implementation of it in Axis org.apache.axis.utils.JavaUtils. 
xmlNameToJava(). I think there must also be one in XMLBeans which we might 
be able to tap in as oppose to doing our own.

 I think we need to make distinction between XML Names and Java names. My 
proposal is to add methods in the object model (where we need this 
"encoding") to get the Java names in addition to the current methods that 
expose the WSDL names. 


On 6/14/05, Chad Schoettger <ch...@gmail.com> wrote:
> 
> 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) <be...@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
> >
> >
> 
> 


-- 
Daryoush

Weblog: http://perlustration.blogspot.com/

Re: [jira] Commented: (BEEHIVE-807) Service control generation gens controls which will fail compilation

Posted by Chad Schoettger <ch...@gmail.com>.
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) <be...@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
> 
>

[jira] Resolved: (BEEHIVE-807) Service control generation gens controls which will fail compilation

Posted by "Eddie O'Neil (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-807?page=all ]
     
Eddie O'Neil resolved BEEHIVE-807:
----------------------------------

    Resolution: Fixed

Fixed in SVN 190655.

> 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
>     Assignee: Eddie O'Neil
>      Fix For: TBD
>  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


[jira] Updated: (BEEHIVE-807) Service control generation gens controls which will fail compilation

Posted by "Eddie O'Neil (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-807?page=all ]

Eddie O'Neil updated BEEHIVE-807:
---------------------------------

    Fix Version: TBD
      Assign To: Eddie O'Neil

> 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
>     Assignee: Eddie O'Neil
>      Fix For: TBD
>  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


[jira] Updated: (BEEHIVE-807) Service control generation gens controls which will fail compilation

Posted by "Jacob Danner (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-807?page=all ]

Jacob Danner updated BEEHIVE-807:
---------------------------------

    Attachment: ReservedKeywordDocLit.wsdl

WSDL 1 - doc literal version (wrapped type)

> 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: v1m1
>     Reporter: Chad Schoettger
>     Assignee: Eddie O'Neil
>      Fix For: V1
>  Attachments: BEEHIVE-807.diff, ReservedKeywordDocLit.wsdl, ReservedKeywordRpcLit.wsdl, ReservedKeywordTest.wsdl
>
> 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


[jira] Commented: (BEEHIVE-807) Service control generation gens controls which will fail compilation

Posted by "Jacob Danner (JIRA)" <be...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/BEEHIVE-807?page=comments#action_12319332 ] 

Jacob Danner commented on BEEHIVE-807:
--------------------------------------

I've attached 2 wsdls for testing purposes
ReservedKeywordDocLit.wsdl
ReservedKeywordRpcLit.wsdl
Together they should help with making sure the service control gets created properly.
Verification of reserved method names, parameter names (Chad's patch), xsd:NCName, and java.lang class names. 
It does not include a full suite of all of the reserved names (methods for each reserved word, etc) but should be enough to get started.

Cheers,
-Jacobd


> 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: v1m1
>     Reporter: Chad Schoettger
>     Assignee: Eddie O'Neil
>      Fix For: V1
>  Attachments: BEEHIVE-807.diff, ReservedKeywordDocLit.wsdl, ReservedKeywordRpcLit.wsdl, ReservedKeywordTest.wsdl
>
> 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


[jira] Updated: (BEEHIVE-807) Service control generation gens controls which will fail compilation

Posted by "Jacob Danner (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-807?page=all ]

Jacob Danner updated BEEHIVE-807:
---------------------------------

    Attachment: ReservedKeywordTest.wsdl

place this in trunk\system-controls\test\src\webservice\jcxgen-tests\wsdls\
ant run 'ant'
from 
 trunk\system-controls\test\src\webservice\

> 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: v1m1
>     Reporter: Chad Schoettger
>     Assignee: Eddie O'Neil
>      Fix For: V1
>  Attachments: BEEHIVE-807.diff, ReservedKeywordTest.wsdl
>
> 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


[jira] Updated: (BEEHIVE-807) Service control generation gens controls which will fail compilation

Posted by "Eddie O'Neil (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-807?page=all ]

Eddie O'Neil updated BEEHIVE-807:
---------------------------------

    Fix Version: V1
                     (was: TBD)

Setting fix version

> 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: v1m1
>     Reporter: Chad Schoettger
>     Assignee: Eddie O'Neil
>      Fix For: V1
>  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


[jira] Commented: (BEEHIVE-807) Service control generation gens controls which will fail compilation

Posted by "Jacob Danner (JIRA)" <be...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/BEEHIVE-807?page=comments#action_12319320 ] 

Jacob Danner commented on BEEHIVE-807:
--------------------------------------

I'd re-open this if I could ;)
The reserved word list is missing enum.
What about common java.lang words like Exception which do not get qualified during jcxgen?
Method Names are not respected
I've attached a test wsdl for the purpose of testing this issue, it includes the Exception keywords, but feel free to comment it out if you disagree.


Also, I've filed
http://issues.apache.org/jira/browse/XMLBEANS-191
and attached a fix to the issue with keywords in xmlbeans.

> 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: v1m1
>     Reporter: Chad Schoettger
>     Assignee: Eddie O'Neil
>      Fix For: V1
>  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


[jira] Reopened: (BEEHIVE-807) Service control generation gens controls which will fail compilation

Posted by "Chad Schoettger (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-807?page=all ]
     
Chad Schoettger reopened BEEHIVE-807:
-------------------------------------

     Assign To: Chad Schoettger  (was: Eddie O'Neil)

re-opened to incorporate jacob's additional issues found

> 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: v1m1
>     Reporter: Chad Schoettger
>     Assignee: Chad Schoettger
>      Fix For: V1
>  Attachments: BEEHIVE-807.diff, ReservedKeywordDocLit.wsdl, ReservedKeywordRpcLit.wsdl, ReservedKeywordTest.wsdl
>
> 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


[jira] Commented: (BEEHIVE-807) Service control generation gens controls which will fail compilation

Posted by "Jacob Danner (JIRA)" <be...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/BEEHIVE-807?page=comments#action_12319323 ] 

Jacob Danner commented on BEEHIVE-807:
--------------------------------------

simple fixes would be to add enum to the list in 
org.apache.beehive.controls.system.webservice.generator.GeneratorUtils

and add java.lang. to the servicecontrol.vm template under the same directory as GeneratorUtils


> 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: v1m1
>     Reporter: Chad Schoettger
>     Assignee: Eddie O'Neil
>      Fix For: V1
>  Attachments: BEEHIVE-807.diff, ReservedKeywordTest.wsdl
>
> 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


[jira] Updated: (BEEHIVE-807) Service control generation gens controls which will fail compilation

Posted by "Chad Schoettger (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-807?page=all ]

Chad Schoettger updated BEEHIVE-807:
------------------------------------

    Attachment: BEEHIVE-807.diff

Added checks for java reserved words for paramter names -- if a java reserved word is used 'encode' it by prefixing an '_' character.

> 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


[jira] Commented: (BEEHIVE-807) Service control generation gens controls which will fail compilation

Posted by "Jacob Danner (JIRA)" <be...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/BEEHIVE-807?page=comments#action_12319324 ] 

Jacob Danner commented on BEEHIVE-807:
--------------------------------------

okay, one more issue here
names in xsd and wsdl are allowed to have dots (.) and other such characters 

when service control gen is run over such wsdls methods like
     public void dot.name(
are produced

I'll attach a more comprehensive set of wsdls to test this later

> 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: v1m1
>     Reporter: Chad Schoettger
>     Assignee: Eddie O'Neil
>      Fix For: V1
>  Attachments: BEEHIVE-807.diff, ReservedKeywordTest.wsdl
>
> 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


[jira] Updated: (BEEHIVE-807) Service control generation gens controls which will fail compilation

Posted by "Jacob Danner (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-807?page=all ]

Jacob Danner updated BEEHIVE-807:
---------------------------------

    Attachment: ReservedKeywordRpcLit.wsdl

WSDL 2 - Rpc Lit - parameterized types and operations names to verify xsd:NCName values 

> 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: v1m1
>     Reporter: Chad Schoettger
>     Assignee: Eddie O'Neil
>      Fix For: V1
>  Attachments: BEEHIVE-807.diff, ReservedKeywordDocLit.wsdl, ReservedKeywordRpcLit.wsdl, ReservedKeywordTest.wsdl
>
> 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


[jira] Commented: (BEEHIVE-807) Service control generation gens controls which will fail compilation

Posted by "Jacob Danner (JIRA)" <be...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/BEEHIVE-807?page=comments#action_12319396 ] 

Jacob Danner commented on BEEHIVE-807:
--------------------------------------

xmlbeans has a pretty decent solution for this
xmlbeans\trunk\src\common\org\apache\xmlbeans\impl\common\NameUtil.java
http://svn.apache.org/viewcvs.cgi/xmlbeans/trunk/src/common/org/apache/xmlbeans/impl/common/NameUtil.java?rev=169117&view=log

> 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: v1m1
>     Reporter: Chad Schoettger
>     Assignee: Eddie O'Neil
>      Fix For: V1
>  Attachments: BEEHIVE-807.diff, ReservedKeywordDocLit.wsdl, ReservedKeywordRpcLit.wsdl, ReservedKeywordTest.wsdl
>
> 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


[jira] Commented: (BEEHIVE-807) Service control generation gens controls which will fail compilation

Posted by "daryoush mehrtash (JIRA)" <be...@incubator.apache.org>.
    [ 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