Created
October 21, 2013 20:00
-
-
Save SpencerCooley/7089952 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from SOAPpy import WSDL | |
association_id = "my-association-id" | |
url = "http://membersuite.com/contracts/IConciergeAPIService/WhoAmI" | |
#The location of our webservice description | |
WSDLFile = url+association_id | |
#Object to handle the requests and responses from our | |
#webservice | |
proxy = WSDL.Proxy(WSDLFile) | |
print proxy.methods.keys() | |
output: | |
Traceback (most recent call last): | |
File "test.py", line 11, in <module> | |
proxy = WSDL.Proxy(WSDLFile) | |
File "/Library/Python/2.7/site-packages/SOAPpy/WSDL.py", line 85, in __init__ | |
self.wsdl = reader.loadFromString(str(wsdlsource)) | |
File "/Library/Python/2.7/site-packages/wstools/WSDLTools.py", line 47, in loadFromString | |
return self.loadFromStream(StringIO(data)) | |
File "/Library/Python/2.7/site-packages/wstools/WSDLTools.py", line 28, in loadFromStream | |
document = DOM.loadDocument(stream) | |
File "/Library/Python/2.7/site-packages/wstools/Utility.py", line 645, in loadDocument | |
return xml.dom.minidom.parse(data) | |
File "/Library/Python/2.7/site-packages/_xmlplus/dom/minidom.py", line 1915, in parse | |
return expatbuilder.parse(file) | |
File "/Library/Python/2.7/site-packages/_xmlplus/dom/expatbuilder.py", line 930, in parse | |
result = builder.parseFile(file) | |
File "/Library/Python/2.7/site-packages/_xmlplus/dom/expatbuilder.py", line 207, in parseFile | |
parser.Parse(buffer, 0) | |
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment