getSecuredEnvelope method

Envelope getSecuredEnvelope(
  1. Body body,
  2. [Authorization? authorization]
)

XML for the SOAP envelope

Implementation

Envelope getSecuredEnvelope(
  Body body, [
  Authorization? authorization,
]) =>
    Envelope(
        body: body,
        header: Header(
            security: Security(
          usernameToken: UsernameToken(
              authorization: authorization ??
                  Authorization(
                    authInfo: authInfo,
                    timeDelta: timeDelta,
                  )),
          mustUnderstand: 1,
        )));