Salı, Kasım 04, 2008

Ufak bi Spring WS örneği

önce alıp vereceğimiz capmpaign modelini oluşturuyoruz.

package tr.hba.springws.model;

public class Campaign {

private String name;
private String code;
private String content;

public Campaign(String name, String content){
this.name = name;
this.content = content;
}

/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @param name the name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* @return the code
*/
public String getCode() {
return code;
}
/**
* @param code the code to set
*/
public void setCode(String code) {
this.code = code;
}
/**
* @return the content
*/
public String getContent() {
return content;
}
/**
* @param content the content to set
*/
public void setContent(String content) {
this.content = content;
}

}