cxf Webサービスで私のリクエストは
<student>
<name>jaleel</name>
<age>26</age>
</student>
ここで私はオプションとして年齢を取得したい
それがどのように可能か;
cxfでSpring Javaを使用しています。
私の終着点は
<bean id="tsetService" class="com.maxartists.tsm.server.TestServiceImpl"></bean>
<jaxws:endpoint id="issure_password_request"
address="/testserver">
<jaxws:implementor>
<bean parent="tsetService" />
</jaxws:implementor>
</jaxws:endpoint>
私のWebサービスメソッドは
@WebService
public interface TestService {
@WebMethod
public String test( Testvo type);
@WebMethod
public Result validation(@WebParam(name="pwvalue") Studentvo ipvo);
これは私のパラメータタイプです
public class Studentvo {文字列名; 年齢;
public String getName() {
return name;
}
public void setName(String name) {
this.name= name;
}
public void setAge(整数年齢){
this.age = age;
}
public int getAge(){ rerun age; }