如何使用wsld从“我的Api响应”中获取数据XML或属性值?

时间:2018-09-11 05:34:23

标签: java wsdl

我正在使用wsdl Web服务。我在这里生成了代码。我想直接从myClass获取xml键值。在这里,我想获取 out_BIN_Data,out_Status和out_XML_Data 属性值。

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ApiResponse", namespace = "http://response.api", propOrder = {
"outBINData",
"outStatus",
"outXMLData"
 })
public class ApiResponse {

@XmlElement(name = "out_BIN_Data", required = true, nillable = true)
protected String outBINData;
@XmlElement(name = "out_Status", required = true, nillable = true)
protected String outStatus;
@XmlElement(name = "out_XML_Data", required = true, nillable = true)
protected String outXMLData;

}

请帮助我

0 个答案:

没有答案