construct an envelope that represents a ``Bye`` message
(service)
| 9 | |
| 10 | |
| 11 | def constructBye(service): |
| 12 | "construct an envelope that represents a ``Bye`` message" |
| 13 | |
| 14 | env = SoapEnvelope() |
| 15 | env.setAction(NS_ACTION_BYE) |
| 16 | env.setTo(NS_ADDRESS_ALL) |
| 17 | env.setMessageId(uuid.uuid4().urn) |
| 18 | env.setInstanceId(str(service.getInstanceId())) |
| 19 | env.setMessageNumber(str(service.getMessageNumber())) |
| 20 | env.setEPR(service.getEPR()) |
| 21 | return env |
| 22 | |
| 23 | |
| 24 | def createByeMessage(env): |
no test coverage detected