cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank Lynch (JIRA)" <j...@apache.org>
Subject [jira] Created: (CXF-426) wsdl2java generates code/annotations with absolute paths even if relative paths are specified on the command line.
Date Thu, 15 Feb 2007 21:07:05 GMT
wsdl2java generates code/annotations with absolute paths even if relative paths are specified
on the command line.
------------------------------------------------------------------------------------------------------------------

                 Key: CXF-426
                 URL: https://issues.apache.org/jira/browse/CXF-426
             Project: CXF
          Issue Type: Bug
          Components: Tooling
    Affects Versions: 2.0-M1
         Environment: all
            Reporter: Frank Lynch


if you execute wsdl2java ./HelloWorld.wsdl or wsdl2java file:wsdl/hello_world.wsdl
You will find that the generated code and annotations use absolute paths like the following:

import org.apache.hello_world_soap_http.Greeter;
/**
 * This class was generated by the CXF 2.0-M1-IONA
 * Tue Jan 30 14:59:09 EST 2007
 * Generated source version: 2.0-M1-IONA
 * 
 */

@WebServiceClient(name = "SOAPService", targetNamespace = "http://apache.org/hello_world_soap_http",
wsdlLocation = "file:/opt/celtix/samples/service_creation/hello_world/wsdl/hello_world.wsdl")
public class SOAPService extends Service {


I had a quick email chat with Dan Kulp on this topic, he said: 

"Looking into this some more, this is a huge bug in the code generators.   I 
have a minor fix that will get the file:wsdl/hello_world.wsdl thing working.   
However, acording to the JAX-WS spec, the wsdlLocation attribute MUST be 
relative URL (section 5.2.5.3).   Thus, the generated code is very wrong.   
However, fixing that is a big deal as the runtime would need to be updated to 
follow the section 5.2 rules as well.  In anycase, please log some bugs 
around this."

so here is the bug. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message