I try to handle <asd>'90'<asd>
this soap message but i get NPE while i try to handle.
Here is the WSDL :
<xsd:element maxOccurs="1" minOccurs="1" name="asd" type="xsd:string"/>
and here is my JAVA code :
@XmlElement(required = true)
protected String asd;
when i do .getAsd()
i get NPE, What do i do wrong? I think problem is the response but i couldnt change it, i have to handle <asd>'90'<asd>
response. what should i do?
Thanks in advance.
Did you annotate it with @XmlRootElement?
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "contentType", namespace = "unknown", propOrder = {
"asd"
})
public class MyClass {
@XmlElement(required = true)
protected String asd;
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.