diff options
author | jortel <devnull@localhost> | 2008-06-26 14:28:34 +0000 |
---|---|---|
committer | jortel <devnull@localhost> | 2008-06-26 14:28:34 +0000 |
commit | da602bacf0dbce99a01132fefa33dcd48819c00d (patch) | |
tree | f67ca29e094180a937278bf2383564acff5cb9b2 /README | |
parent | b1e87a04bb9b60fa8fc78548d4f4948c3c2c46c2 (diff) | |
download | suds-da602bacf0dbce99a01132fefa33dcd48819c00d.tar.gz |
Add notes for message/reply injection
Diffstat (limited to 'README')
-rw-r--r-- | README | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -404,6 +404,35 @@ NIL VALUES ServiceProxy specifies weather Object values = None are sent to the WS server in the soap message as <tag xsi:nil="true"/> or <tag/>. + MESSAGE INJECTION (Testing) + + The service API provides for message/reply injection. To inject either a soap + message to be sent or to inject a reply to be processed as if returned by the + soap server, simply specify the 'inject' keyword argument with a value of a + dictionary containing either {msg:'<message string>'} | {reply:'<reply string>'} + when invoking the service. Eg: + +> +> reply = \ +> """ +> <SOAP-ENV:Envelope xmlns="HelloWorldService.HelloWorldService" +> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" +> xmlns:tns="HelloWorldService.HelloWorldService" +> xmlns:xs="http://www.w3.org/2001/XMLSchema" +> xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"> +> <SOAP-ENV:Body> +> <testResponse> +> <retval xmlns="" xsi:type="tns:stringArray"> +> <string xmlns="" xsi:type="xs:string">str1</string> +> <string xmlns="" xsi:type="xs:string">str2</string> +> </retval> +> </testResponse> +> </SOAP-ENV:Body> +> </SOAP-ENV:Envelope> +>""" +> +> print client.service.test(inject={'reply':reply}) +> TECHNICAL (FYI) NOTES |