1
我已經通過RAD(eclipse)創建了一個JaX Webservice,並且能夠使用@WebParam註釋和我的函數參數,但是我也想使用@webresult等,但是使用Don不知道我應該在哪裏指定他們,在谷歌我有接口,但在這裏我只有類和委託類。哪裏可以包括@Webresult,@ WebMethod等
我的課是
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(); }
}
謝謝,我試着至 在我的方法上設置@WebResult,但是這對SOAPUI中的結果沒有幫助,我應該創建接口並嘗試 – Friendy