[jbossws-issues] [JBoss JIRA] Updated: (JBWS-2018) JavatoWSDL Package to Namespace mapping does not support multiple packages
Magesh Kumar B (JIRA)
jira-events at lists.jboss.org
Mon Mar 3 03:14:57 EST 2008
[ http://jira.jboss.com/jira/browse/JBWS-2018?page=all ]
Magesh Kumar B updated JBWS-2018:
---------------------------------
Description:
Consider the following SEI:
package org.jboss.test.ws.jbws1217;
public interface MySEI extends java.rmi.Remote
{
public void testException() throws com.other.exception.TestException, java.rmi.RemoteException;
}
And the additional classes:
package com.other.exception;
public class TestException
extends com.other.base.BaseException{
public TestException(){
}
}
package com.other.base;
public class BaseException
extends Exception{
public BaseException(){
}
}
Using the following wstools config:
<configuration xmlns="http://www.jboss.org/jbossws-tools">
<global>
<package-namespace package="com.other.base" namespace="http://com.other.base"/>
<package-namespace package="com.other.exception" namespace="http://com.other.exception"/>
</global>
<java-wsdl>
<service name="MySEI" style="rpc" endpoint="org.jboss.test.ws.jbws1217.MySEI"/>
<namespaces target-namespace="http://org.jboss.test.ws.jbws1217" type-namespace="http://org.jboss.test.ws.jbws1217"/>
<mapping file="jaxrpc-mapping.xml" />
<webservices ejb-link="MyEJB"/>
</java-wsdl>
</configuration>
The WSDL generated ignores the global mappings and the namespace is derived from the class packages.
was:
Consider the following SEI:
package org.jboss.test.ws.jbws1217;
public interface MySEI extends java.rmi.Remote
{
public void testException() throws com.other.exception.TestException, java.rmi.RemoteException;
}
And the additional classes:
package com.other.exception;
public class TestException
extends com.other.base.BaseException{
public TestException(){
}
}
package com.other.base;
public class BaseException
extends Exception{
public BaseException(){
}
}
Using the following wstools config:
<configuration xmlns="http://www.jboss.org/jbossws-tools">
<global>
<package-namespace package="com.other.base" namespace="http://com.other.base"/>
<package-namespace package="com.other.exception" namespace="http://com.other.exception"/>
</global>
<java-wsdl>
<service name="MySEI" style="rpc" endpoint="org.jboss.test.ws.jbws1217.MySEI"/>
<namespaces target-namespace="http://org.jboss.test.ws.jbws1217" type-namespace="http://org.jboss.test.ws.jbws1217"/>
<mapping file="jaxrpc-mapping.xml" />
<webservices ejb-link="MyEJB"/>
</java-wsdl>
</configuration>
The WSDL ignores the global mappings and generates the namespace derived from teh class packages.
> JavatoWSDL Package to Namespace mapping does not support multiple packages
> --------------------------------------------------------------------------
>
> Key: JBWS-2018
> URL: http://jira.jboss.com/jira/browse/JBWS-2018
> Project: JBoss Web Services
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: tools-jaxrpc
> Reporter: Magesh Kumar B
> Assigned To: Magesh Kumar B
> Priority: Minor
> Fix For: jbossws-native-2.0.4
>
>
> Consider the following SEI:
> package org.jboss.test.ws.jbws1217;
> public interface MySEI extends java.rmi.Remote
> {
> public void testException() throws com.other.exception.TestException, java.rmi.RemoteException;
> }
> And the additional classes:
> package com.other.exception;
> public class TestException
> extends com.other.base.BaseException{
> public TestException(){
> }
> }
> package com.other.base;
> public class BaseException
> extends Exception{
> public BaseException(){
> }
> }
> Using the following wstools config:
> <configuration xmlns="http://www.jboss.org/jbossws-tools">
> <global>
> <package-namespace package="com.other.base" namespace="http://com.other.base"/>
> <package-namespace package="com.other.exception" namespace="http://com.other.exception"/>
> </global>
>
> <java-wsdl>
> <service name="MySEI" style="rpc" endpoint="org.jboss.test.ws.jbws1217.MySEI"/>
> <namespaces target-namespace="http://org.jboss.test.ws.jbws1217" type-namespace="http://org.jboss.test.ws.jbws1217"/>
> <mapping file="jaxrpc-mapping.xml" />
> <webservices ejb-link="MyEJB"/>
> </java-wsdl>
> </configuration>
> The WSDL generated ignores the global mappings and the namespace is derived from the class packages.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbossws-issues
mailing list