【发布时间】:2015-12-07 21:25:53
【问题描述】:
我已经通过 RAD(eclipse) 创建了一个 JaX Webservice,并且我可以将 @WebParam 注释与我的函数参数一起使用,但是我也想使用 @webresult 等但不知道我应该在哪里指定它们,在谷歌上我有接口,但在这里我只有类和委托类。
我的班级是
public class GetFPDDataClass {
public String GetFPDDataInput(String PolicyNumber)
{
return PolicyNumber;
}
}
这是我的委托课程
@WebService (targetNamespace="fpd", serviceName="GetFPDDataClassService", portName="GetFPDDataClassPort")
public class GetFPDDataClassDelegate{
fpd.GetFPDDataClass _getFPDDataClass = null;
public String GetFPDDataInput (@WebParam(name="PolicyNumber") String PolicyNumber) {
return _getFPDDataClass.GetFPDDataInput(PolicyNumber);
}
public GetFPDDataClassDelegate() {
_getFPDDataClass = new fpd.GetFPDDataClass(); }
}
【问题讨论】:
标签: java eclipse web-services jax-ws rad