[ 
http://jira.codehaus.org/browse/XFIRE-674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_86999
 ] 

B. Garvelink commented on XFIRE-674:
------------------------------------

Consider this WSDL fragment:

{code:xml}
<service name="example-service">
  <port name="example-port" binding="what:ever">
    <!-- blah blah -->
  </port>
</service>
{code}


The service name of "example-service" causes the code generator to fail at 
startup. When the service name taken care of (e.g. by using underscores), the 
code generator will do its magic, but the port name causes Java variable and 
method names with an embedded '-' sign to be generated, resulting in 
noncompileable code such as quoted in the original comment.

> WSGen (xmlbeans) generates invalid code if illegal chars for variables are in 
> the location
> ------------------------------------------------------------------------------------------
>
>                 Key: XFIRE-674
>                 URL: http://jira.codehaus.org/browse/XFIRE-674
>             Project: XFire
>          Issue Type: Bug
>          Components: Generator
>    Affects Versions: 1.2.1
>         Environment: JDK 1.5, Windows
>            Reporter: Erich Oliphant
>         Assigned To: Dan Diephouse
>            Priority: Critical
>
> After generating XMLBeans based stubs for our JIRA installation noticed 
> errors in the generated code.   Such as:
> -- 
> public JiraSoapServiceServiceClient() {
>         create0();
>         Endpoint jirasoapservice-v2EP = service0 .addEndpoint(new 
> QName("http://.../jira/rpc/soap/jirasoapservice-v2";, "jirasoapservice-v2"), 
> new QName("http:/..../jira/rpc/soap/jirasoapservice-v2", 
> "jirasoapservice-v2SoapBinding"), 
> "http://.../jira/rpc/soap/jirasoapservice-v2";);
>         endpoints.put(new QName("http:/.../jira/rpc/soap/jirasoapservice-v2", 
> "jirasoapservice-v2"), jirasoapservice-v2EP);
> --
> Where the endpoint ends up with an embedded dash.
> I assume the Endpoint var is taking it's name from the location or 
> targetNamespace in the WSDL.  Presumably the var generation needs to verify 
> that it can use WSDL identifier directly as a java var.
> Can be reproduced with the Codehaus jira's wsdl
>    

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to