Get the soap message for the specified method, args and soapheaders. This is the entry point for creating the outbound soap message. @param method: The method being invoked. @type method: I{service.Method} @param args: A list of args for the method invoked.
(self, method, args, kwargs)
| 102 | raise Exception('not implemented') |
| 103 | |
| 104 | def get_message(self, method, args, kwargs): |
| 105 | """ |
| 106 | Get the soap message for the specified method, args and soapheaders. |
| 107 | This is the entry point for creating the outbound soap message. |
| 108 | @param method: The method being invoked. |
| 109 | @type method: I{service.Method} |
| 110 | @param args: A list of args for the method invoked. |
| 111 | @type args: list |
| 112 | @param kwargs: Named (keyword) args for the method invoked. |
| 113 | @type kwargs: dict |
| 114 | @return: The soap envelope. |
| 115 | @rtype: L{Document} |
| 116 | """ |
| 117 | |
| 118 | content = self.headercontent(method) |
| 119 | header = self.header(content) |
| 120 | content = self.bodycontent(method, args, kwargs) |
| 121 | body = self.body(content) |
| 122 | env = self.envelope(header, body) |
| 123 | if self.options().prefixes: |
| 124 | body.normalizePrefixes() |
| 125 | env.promotePrefixes() |
| 126 | else: |
| 127 | env.refitPrefixes() |
| 128 | return Document(env) |
| 129 | |
| 130 | def get_reply(self, method, reply): |
| 131 | """ |
no test coverage detected