[英]calling SOAP service with python client
Help me please to solve my problem with my python client. 请帮我解决我的python客户端问题。 I want to get a reply from my SOAP service, written on C#. 我希望得到我在SOAP服务上的回复,用C#编写。 My service working correct when I try to test it in my browser, but when I started using my simple python client there were problems 当我尝试在浏览器中测试它时,我的服务正常工作,但是当我开始使用我的简单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
my pycharm told me, that 我的pycharm告诉我,那
Request format is not recognized because the URL unexpectedly ended on & quot; 无法识别请求格式,因为URL意外地以“ / & quot /“
What did i do wrong? 我做错了什么? Any help will be appreciated 任何帮助将不胜感激
我讨厌成为那个人......但是你尝试做location = "http://localhost:1906/AbitService.asmx"
这似乎是个问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.