this.service = service;
this.endpoint = endpoint;
}
public DocumentFragment getAsReference(QName operationName) {
try {
SourceTransformer st = new SourceTransformer();
String xml = new XStream(new DomDriver()).toXML(this);
Document doc = (Document) st.toDOMNode(new StringSource(xml));
DocumentFragment df = doc.createDocumentFragment();
df.appendChild(doc.getDocumentElement());
return df;
} catch (Exception e) {
throw new RuntimeException(e);