python - Using pysimplesoap to call ladonize SOAP example. Getting the syntax right -
i'm trying call calculator example ladonize.org using code.
i managed pysimplesoap work other external soap services , trying roll out own soap service using ladon / python 2.7
the soap service works when imported visual studio 2008 under windows. python can't syntax request right. sample web service accepts 2 numbers & b , returns added value result
this code have
from pysimplesoap.client import soapclient client = soapclient(wsdl='http://ladonize.org/python-demos/calculator/soap/description', location='http://ladonize.org/python-demos/calculator/soap/description', cacert=none) response=client.add(paramters={"a":"1","b":"2"}) print (response)
this call not working. error "attributeerror: tag not found: body (no elements found)"
the call want make function
<porttype name="calculatorporttype"> <operation name="add"> <documentation>add 2 integers , return result </documentation> <input message="tns:add"/> <output message="tns:addresponse"/> </operation> </porttype>
full description here
any tips on in description syntax right?
Comments
Post a Comment