[ 
https://issues.apache.org/jira/browse/CXF-426?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bozhong Lin updated CXF-426:
----------------------------

        Fix Version/s: 2.0-RC
             Assignee: maomaode
    Affects Version/s:     (was: 2.0-M1)
                       2.0-RC

> 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-RC
>         Environment: all
>            Reporter: Frank Lynch
>         Assigned To: maomaode
>             Fix For: 2.0-RC
>
>
> 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.

Reply via email to