I am trying to learn how to use the pysimplesoap client to consume a service outside of Web2Py.
Example in book works great, and I have not some useful threads in the community about authentication which is phase 2, but I am just trying to start simple. Unfortunately, my proof of concept to use the soap client to readily available services on the WWW is bombing. I am sure it is something simple... Any help is appreciated. def test_4(): from gluon.contrib.pysimplesoap.client import SoapClient, SoapFault client = SoapClient (wsdl="http://www.webservicex.net/geoipservice.asmx?wsdl", location="http://www.webservicex.net/", cacert=None, trace=False) # call SOAP method response = client.GetGeoIP(IPAddress='24.194.5.187') try: result = response['GetGeoIPResult'] except SoapFault: result = None return dict(xml_request=client.xml_request, xml_response=client.xml_response, result=result) Here is my Traceback raceback (most recent call last): File "C:\web2py_src\web2py\gluon\restricted.py", line 227, in restricted exec ccode in environment File "C:/web2py_src/web2py/applications/webservices/controllers/sample.py" <http://127.0.0.1:8000/admin/default/edit/webservices/controllers/sample.py>, line 102, in <module> File "C:\web2py_src\web2py\gluon\globals.py", line 417, in <lambda> self._caller = lambda f: f() File "C:/web2py_src/web2py/applications/webservices/controllers/sample.py" <http://127.0.0.1:8000/admin/default/edit/webservices/controllers/sample.py>, line 94, in test_5 response = client_soap.GetGeoIP(IPAddress='24.194.5.187') File "C:\web2py_src\web2py\gluon\contrib\pysimplesoap\client.py", line 165, in <lambda> return lambda self=self, *args, **kwargs: self.call(attr, *args, **kwargs) File "C:\web2py_src\web2py\gluon\contrib\pysimplesoap\client.py", line 242, in call jetty=self.__soap_server in ('jetty',)) File "C:\web2py_src\web2py\gluon\contrib\pysimplesoap\simplexml.py", line 56, in __init__ self.__document = xml.dom.minidom.parseString(text) File "C:\Python27\lib\xml\dom\minidom.py", line 1928, in parseString return expatbuilder.parseString(string) File "C:\Python27\lib\xml\dom\expatbuilder.py", line 940, in parseString return builder.parseString(string) File "C:\Python27\lib\xml\dom\expatbuilder.py", line 223, in parseString parser.Parse(string, True) ExpatError: mismatched tag: line 24, column 2 -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.