parseRequest method
Request Message Format:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
...
</s:Body>
</s:Envelope>
xmlDoc
returns
Implementation
String parseRequest(XmlDocumentFragment xmlDoc) {
final xmlBuilder = XmlBuilder();
xmlBuilder.declaration(encoding: "utf-8");
xmlBuilder.element(EpsonXmlHttpClient._xmlRoot,
attributes: {'xmlns:s': 'http://schemas.xmlsoap.org/soap/envelope/'},
nest: () {
xmlBuilder.element(EpsonXmlHttpClient._xmlBody, nest: xmlDoc);
});
return xmlBuilder.buildDocument().toXmlString(pretty: true);
}