Eclipse Web服务-传递参数时无响应

Eclipse Web服务-传递参数时无响应,eclipse,Eclipse,我在EclipseHelios中创建了一个WEB服务,它只返回我传递给它的值 当我编写一个没有参数的函数并在服务器中运行时,“状态”字段在Web Service Explorer中显示999 package com.dyn.amic; public class DoSomething { public int Something(){ return 999; } } 但是,当我传递一个参数并再次运行它时,“Status”字段为空 package com.dyn.

我在EclipseHelios中创建了一个WEB服务,它只返回我传递给它的值

当我编写一个没有参数的函数并在服务器中运行时,“状态”字段在Web Service Explorer中显示999

package com.dyn.amic;

public class DoSomething {

    public int Something(){

        return 999;
}

}
但是,当我传递一个参数并再次运行它时,“Status”字段为空

package com.dyn.amic;

public class DoSomething {

public int Something(int num){

    return num;

    }
}
控制台未显示任何错误或异常。但当我调用它而不传递任何数字时,它会显示IOException


请给出你的建议。。。我一整天都在为此奋斗

现在工作正常。忘记在我的java动态项目(@WebService和@WebMethod)中添加web服务和web方法注释了!!我的错

1) Created Java file with classes and functions
2) Added @WebService above the class
3) Added @WebMethod above the method
4) Right Click on the java file --> Webservice --> Create Web Service --> Select the appropriate Apache Axis, select Monitor the web service and finish