<?xml version="1.0" encoding="utf-8"?>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig">
asasas
</Signature>
这是请求的XML
@XmlRootElement(name = "Signature")
public class Signature {
private String xmlns;
private String text;
// getter setter
@XmlAttribute(name = "xmlns")
public String getXmlns() {
return xmlns;
}
public void setXmlns(String xmlns) {
this.xmlns = xmlns;
}
@XmlValue
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
}
但是我得到了错误 ----------
请帮帮我。
预期元素
@XmlRootElement(name = "Signature", namespace="http://www.w3.org/2000/09/xmldsig")