1
我有一個名爲「Customer_Service」的Java Web服務,它使用名爲「Customer」的類作爲類型。您可以使用「Customer_Service」將「客戶」對象添加到數據庫。在客戶端,我無法在「客戶」中調用某種方法。除此方法外,其他所有方法都可以正常工作。以下是我的Customer類的外觀。客戶端調用時缺少JAX-WS項目類中的方法
public class Customer {
private int customerId;
private String dob;
public int getCustomerId() {
return customerId;
}
public void setCustomerId(int customerId) {
this.customerId = customerId;
}
public String getDob() {
return dob;
}
// this method cannot be accessed by client
public void setDob(String dob) {
this.dob = dob;
}
}
清潔和構建做到了。謝謝! –