java - Why are only some of my attributes shown in the response xml of jaxws? -
i created jaxws webservice, returns of attributes of objects in response xml.
e.g.
public class myobject { private string attribute1; private string attribute2; //getter , setter }
but returned xml contains
<soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:body> <ns2:mynamespaceresponse xmlns:ns2="mynamespace"> <myobject> <attribute1>stringcontent</attribute1> </myobject> ....
attributes null not shown in xml. in example, attribute 2 null, , therefore it's not shown.
Comments
Post a Comment