You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org> on 2007/11/19 17:24:43 UTC
[jira] Updated: (TUSCANY-1899) Java2WSDL (trivial) - do we have to
assume method names start w/ a lowercase char?
[ https://issues.apache.org/jira/browse/TUSCANY-1899?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kelvin Goodson updated TUSCANY-1899:
------------------------------------
Component/s: (was: Java SDO Tools)
In the SDO tools we do this is in generation of XML schemas from existing Properties and Types. We do have a method "formGlobalElementName" which does this lower casing of the first letter when generating a global element in the schema. The behaviour is due to the paragraph in section 10 of the SDO spec which says ...
The global element for the type:
• lowercase(TYPE.NAME) is the type name with the first letter converted to lower
case as defined type java.lang.Character.toLowerCase() ....
> Java2WSDL (trivial) - do we have to assume method names start w/ a lowercase char?
> ----------------------------------------------------------------------------------
>
> Key: TUSCANY-1899
> URL: https://issues.apache.org/jira/browse/TUSCANY-1899
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Tools
> Affects Versions: Java-SCA-1.0, Java-SCA-1.0.1
> Reporter: Scott Kurz
> Priority: Trivial
> Fix For: Java-SCA-Next
>
>
> The fact that: TuscanyWSDLTypesGenerator .createSchemaTypeForMethodPart
> on line 267 calls:
> globalElement.setName(formGlobalElementName(localPartName));
> which lowercases the first char in the parm passed to formGlobalElementName ends up implying that method names must start in a lowercase char. Because otherwise..the elem name
> so constructed won't match the operation name... which will cause us to not end up with doc-lit-wrapped WSDL.
> Since everyone uses lowercase method names this in Java, I ranked this as 'trivial'.
> Still, I opened this anyway because I didn't see why we bother to lowercase this string at all, and thought that if someone cancelled this JIRA, at least I'd learn
> there was a good reason for doing so.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org