web服务我可以在ApacheAxis1中使用自定义Java对象吗
假设我有课
public class Person{
private String name;
private String country
}
在使用字符串数组的web服务方法rahter中,我希望接收Person对象。这可以在apache axis 1中实现吗
public boolean savePerson(Person per)
我正在使用eclipse juno
你可以在下面搜索框中键入要查询的问题!
假设我有课
public class Person{
private String name;
private String country
}
在使用字符串数组的web服务方法rahter中,我希望接收Person对象。这可以在apache axis 1中实现吗
public boolean savePerson(Person per)
我正在使用eclipse juno
# 1 楼答案
是的,你确实可以
最简单的方法可能是创建一个描述对象数据格式的WSDL文件。Axis将允许您在XML和POJO之间生成转换器
有关更多信息,请参见http://axis.apache.org/axis/java/user-guide.html#Using_WSDL_with_Axis