1
"Customer"というクラスを型として使用する "Customer_Service"というJava Webサービスがあります。 "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;
}
}
クリーンでビルドしました。ありがとう! –