[jboss-user] [JBossWS] - Re: Two webservice classes define method with same name (bug
richard_opalka
do-not-reply at jboss.com
Mon Aug 27 05:40:46 EDT 2007
Hi,
how did you get it? I tried your usecase and it works for me :-( Here's my experiment:
//---------
// File TestClass1.java
//---------
package com.XXXX;
import javax.ejb.Stateless;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
@WebService
@Stateless
public interface TestClass1 extends java.rmi.Remote {
@WebMethod
public Integer method(@WebParam(name="f")Float f) throws java.rmi.RemoteException;
}
//---------
// File TestClass2.java
//---------
package com.XXXX;
import javax.ejb.Stateless;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
@WebService
@Stateless
public interface TestClass2 extends java.rmi.Remote {
@WebMethod
public Double method(@WebParam(name="f")Float f) throws java.rmi.RemoteException;
}
//---------
// File wstools-config1.xml
//---------
<?xml version="1.0" encoding="UTF-8"?>
<configuration xmlns="http://www.jboss.org/jbossws-tools"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.org/jbossws-tools
http://www.jboss.org/jbossws-tools/schema/jbossws-tool_1_0.xsd">
<java-wsdl>
<namespaces target-namespace="http://XXXX.com/" type-namespace="http://XXXX.com/types/" />
<webservices servlet-link="TestClass1"/>
</java-wsdl>
//---------
// File wstools-config2.xml
//---------
<?xml version="1.0" encoding="UTF-8"?>
<configuration xmlns="http://www.jboss.org/jbossws-tools"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.org/jbossws-tools
http://www.jboss.org/jbossws-tools/schema/jbossws-tool_1_0.xsd">
<java-wsdl>
<namespaces target-namespace="http://XXXX.com/" type-namespace="http://XXXX.com/types/" />
<webservices servlet-link="TestClass2"/>
</java-wsdl>
//---------
// File generatewsdl.sh
//---------
#!/bin/sh
./wstools.sh -cp output -config wstools-config1.xml
./wstools.sh -cp output -config wstools-config2.xml
//---------
In both cases it generates correct WSDLs for me. I also tried to change the style from "rpc" to "document" but again it worked very well for me.
Can you describe me your problem and how did you get it more detailly?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078281#4078281
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078281
More information about the jboss-user
mailing list