cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johnson Ma (JIRA)" <j...@apache.org>
Subject [jira] Created: (CXF-447) The java2wsdl tool generated wrong namespace for datatypes
Date Mon, 05 Mar 2007 10:23:50 GMT
The java2wsdl tool generated wrong namespace for datatypes
----------------------------------------------------------

                 Key: CXF-447
                 URL: https://issues.apache.org/jira/browse/CXF-447
             Project: CXF
          Issue Type: Bug
            Reporter: Johnson Ma


@WebService(wsdlLocation = "file:/C:/projects/stp/workspace/runtime-New_configuration(2)/JavaFirstTest0305/wsdl/com/iona/HelloWorld.wsdl",
targetNamespace = "http://iona.com/", name = "HelloWorld")

public interface HelloWorld {

	@WebMethod(operationName = "sayHi")
    public void sayHi(
        java.lang.Float f1,
        java.lang.Float f2
    );
}

Since we do not define @RequestWrapper.className, so the JAXB class used by java2wsdl will
be 'com.iona.jaxws.SayHi'

However, if we call the wsdl2java on the generated wsdl, it will generate type class 'com.iona.SayHi'

The reason is:
from  the spec, the default jaxb class is packagename+jaxws+methodName.
But in the generated wsdl, schema namespace is 'com.iona' , which should be set to 'com.iona.jaxws'

-- 
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