summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorjortel <devnull@localhost>2009-04-07 17:16:54 +0000
committerjortel <devnull@localhost>2009-04-07 17:16:54 +0000
commitc44127fedc7b3325a06b267b86d22a5c833cde4e (patch)
tree39b32c221aeee3e1fa70818acc8ad4d23e6a206e /tests
parent852b1efbe28a85da96d41c7344149d36b752309f (diff)
downloadsuds-c44127fedc7b3325a06b267b86d22a5c833cde4e.tar.gz
Fix marshaller.Encoded encode() to handle resolved being xs:any. Update options to handle cases where a Transport is passed or set as option. In this case, the client options needs to be updated with transports options and then the Transport's options needs to be set (=) to the client's options so everything stays in sync. The fix for this handles any Options value that also contains an Options attribute.
Diffstat (limited to 'tests')
-rw-r--r--tests/rhq.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/rhq.py b/tests/rhq.py
index 304cacf..bbc9c6a 100644
--- a/tests/rhq.py
+++ b/tests/rhq.py
@@ -29,6 +29,8 @@ from tests import *
from suds import WebFault
from suds.client import Client
from suds.xsd.sxbasic import Import
+from suds.transport.http import HttpTransport
+from suds.transport.cache import FileCache
errors = 0
@@ -40,6 +42,12 @@ Import.bind('http://schemas.xmlsoap.org/soap/encoding/')
#logging.getLogger('suds.metrics').setLevel(logging.DEBUG)
#logging.getLogger('suds').setLevel(logging.DEBUG)
+class MyTransport(HttpTransport):
+ pass
+
+mycache = FileCache(days=90)
+mytransport = MyTransport(cache=mycache)
+
def start(url):
global errors
print '\n________________________________________________________________\n'
@@ -52,7 +60,7 @@ def basic_doc_literal():
try:
url = 'http://localhost:7080/rhq-rhq-enterprise-server-ejb3/WebServiceTestBean?wsdl'
start(url)
- client = Client(url)
+ client = Client(url, transport=mytransport)
print client
#
# create name