[jboss-user] [JBossWS] - the generated java file has errors when using wsprovide
Grid.Qian
do-not-reply at jboss.com
Tue Nov 11 22:03:13 EST 2008
Hi guys,
I used wsprovide in the bin folder of jboss as 4.2.2GA to generate wsdl and java files.
the class is :
package echo;
|
| @javax.jws.WebService
| public class Echo
| {
| public String echo(String input)
| {
| return input;
| }
| }
the command line : wsprovide.bat -ktw echo.Echo
the generated files have a wsdl and two java files.
A java file is : EchoResponse.java
| package echo.jaxws;
|
| import javax.xml.bind.annotation.XmlAccessType;
| import javax.xml.bind.annotation.XmlAccessorType;
| import javax.xml.bind.annotation.XmlElement;
| import javax.xml.bind.annotation.XmlRootElement;
| import javax.xml.bind.annotation.XmlType;
|
| @XmlRootElement(namespace = "http://echo/", name = "echoResponse")
| @XmlType(namespace = "http://echo/", name = "echoResponse")
| @XmlAccessorType(XmlAccessType.FIELD)
| public class EchoResponse {
|
| @XmlElement(namespace = "", name = "return")
| private String return;
|
| public String getReturn() {
| return this.return;
| }
|
| public void setReturn(String return) {
| this.return = return;
| }
|
| }
the return is key of java, but in the java file , return is used to the name of a variable. This is big issue.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188640#4188640
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188640
More information about the jboss-user
mailing list