get method

FutureOr<HttpClientResponse> get(
  1. String action,
  2. String body
)

Implementation

FutureOr<HttpClientResponse> get(String action, String body) async {
  final xml =
      """<?xml version="1.0"?>\n<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:$action xmlns:u="$serviceType">$body</u:$action></s:Body></s:Envelope>""";
  final r = await req.postUri(url,
      headers: {
        "Content-Type": "text/xml",
        "SOAPAction": "$serviceType#$action"
      },
      body: xml);
  return r;
}