请帮我解决我的python客户端问题。我想从我的SOAP服务获得一个回复,用C#编写。当我尝试在浏览器中测试时,我的服务工作正常,但是当我开始使用我的简单python客户端时出现问题
from pysimplesoap.client import SoapClient
# create a simple consumer
client = SoapClient(
location = "http://localhost:1906/AbitService.asmx/",
action = "http://localhost:1906/AbitService.asmx/GetAbitReports",
soap_ns='soap',
trace = True,
ns = False)
# call the remote method
response = client.GetAbitReports ()
# extract and convert the returned value
result = response.AddResult
print result
我的pycharm告诉我,那个
无法识别请求格式,因为该网址意外结束了& QUOT; /& QUOT
我做错了什么?任何帮助将不胜感激
答案 0 :(得分:0)
我讨厌成为那个人......但你是否尝试过做location = "http://localhost:1906/AbitService.asmx"
这似乎是个问题