pythonsoappysimplesoap

pysimplesoap web service return connection refused


I've created some web services using pysimplesoap like on this documentation:

https://code.google.com/p/pysimplesoap/wiki/SoapServer

When I tested it, I called it like this:

from SOAPpy import SOAPProxy
from SOAPpy import Types

namespace = "http://localhost:8008"
url = "http://localhost:8008"

proxy = SOAPProxy(url, namespace)

response = proxy.dummy(times=5, name="test")
print response

And it worked for all of my web services, but when I try to call it by using an library which is needed to specify the WSDL, it returns "Could not connect to host".


Solution

  • To solve my problem, I used the object ".wsdl()" to generate the correct WSDL and saved it into a file, the WSDL generated by default wasn't correct, was missing variable types and the correct server address...