use of org.openecard.ws.soap.SOAPBody in project open-ecard by ecsec.
the class JAXBMarshaller method add2soap.
@Override
public synchronized SOAPMessage add2soap(Document content) throws SOAPException {
SOAPMessage msg = soapFactory.createMessage();
SOAPBody body = msg.getSOAPBody();
body.addDocument(content);
return msg;
}
use of org.openecard.ws.soap.SOAPBody in project open-ecard by ecsec.
the class MarshalTest method testConversion.
@Test
public void testConversion() throws Exception {
JAXBMarshaller m = new JAXBMarshaller();
Document doc = m.str2doc(xmlStr);
org.openecard.ws.soap.SOAPMessage msg = m.doc2soap(doc);
SOAPBody body = msg.getSOAPBody();
Node result = body.getChildElements().get(0);
// System.out.println(m.doc2str(result));
Object o = m.unmarshal(result);
doc = m.marshal(o);
assertNotNull(doc);
// System.out.println(m.doc2str(doc));
}
use of org.openecard.ws.soap.SOAPBody in project open-ecard by ecsec.
the class AndroidMarshaller method add2soap.
@Override
public SOAPMessage add2soap(Document content) throws SOAPException {
SOAPMessage msg = soapFactory.createMessage();
SOAPBody body = msg.getSOAPBody();
body.addDocument(content);
return msg;
}
Aggregations