【发布时间】:2010-04-27 12:32:05
【问题描述】:
我创建了一个 jaxws webservice,但它只返回响应 xml 中我的对象的一些属性。
例如
public class MyObject {
private String attribute1;
private String attribute2;
//getter and setter
}
但是返回的 XML 只包含
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns2:mynamespaceResponse xmlns:ns2="mynamespace">
<myObject>
<attribute1>stringcontent</attribute1>
</myObject>
....
【问题讨论】: