I have a problem because I have a web service with wsHttpBinding:
<endpoint address="" binding="wsHttpBinding" contract="BindingTest.IService1" />
I can not get my Python code to call it, every time I try to call, I get the following error message:
Exception: (400, u'Bad Request')
After much research and searching on the Internet, I got it working by simply pointing to my web service to have basicHttpBinding:
<endpoint address="basic" binding="basicHttpBinding" contract="BindingTest.IService1" />
That way I can call the web service from python code!
Now my problem is different: I canβt change the web service, I could try it locally, but I donβt have permission to change it.
So, is there a way to specify in the python request "wsHttpBinding"?
This is my actual code:
import logging from suds.client import Client import sys from suds.sax.element import Element handler = logging.StreamHandler(sys.stderr) logger = logging.getLogger('suds.transport.http') logger.setLevel(logging.DEBUG), handler.setLevel(logging.DEBUG) logger.addHandler(handler) client =Client('Service_URL') client.set_options(headers={'Content-Type': 'application/soap+xml; charset=utf-8'}) result = client.service.RouteDocument('Input')
source share