bye static method
Implementation
static XmlDocument bye({String? messageId, String? address}) {
builder.declaration(encoding: 'UTF-8');
builder.element(
'Envelope',
namespaceUri: 'http://www.w3.org/2003/05/soap-envelope',
nest: () {
builder.namespaceUri('s', 'http://www.w3.org/2003/05/soap-envelope');
builder.namespaceUri(
'a',
'http://schemas.xmlsoap.org/ws/2004/08/addressing',
);
builder.namespaceUri(
'd',
'http://schemas.xmlsoap.org/ws/2005/04/discovery',
);
builder.element(
'Header',
// namespace: 'http://www.w3.org/2003/05/soap-envelope',
nest: () {
builder.element(
'Action',
namespaceUri: 'http://schemas.xmlsoap.org/ws/2004/08/addressing',
nest: 'http://schemas.xmlsoap.org/ws/2005/04/discovery/Bye',
);
builder.element(
'MessageID',
namespaceUri: 'http://schemas.xmlsoap.org/ws/2004/08/addressing',
nest: 'uuid:${messageId ?? uuid}',
);
},
);
builder.element(
'Body',
nest: () {
builder.element(
'Bye',
namespaceUri: 'http://schemas.xmlsoap.org/ws/2005/04/discovery',
nest: () {
builder.element(
'EndpointReference',
namespaceUri:
'http://schemas.xmlsoap.org/ws/2004/08/addressing',
nest: () {
builder.element(
'Address',
nest: 'urn:uuid:${address ?? uuid}',
);
},
);
},
);
},
);
},
);
return builder.buildDocument();
}