使用Python-Zeep向WSDL URL提出肥皂请求
我试图提出SOAP请求并遇到几个问题,我需要您的帮助来解决错误
from zeep import Client
client = Client(wsdl='http://<placeholder>/<serviceholder>.svc?wsdl')
response = client.service.MethodName(secret_code,secret_key,data.__str__())
并获得以下错误,
**zeep.exceptions.XMLSyntaxError: The XML returned by the server does not contain a valid {http://schemas.xmlsoap.org/soap/envelope/}Envelope root element. The root element found is HTML**
我需要2个输入,
methodName(secret_code,sertod_key,secret_key,
data .__ str.__ str.__ str.__ ()
)实际上需要data.tostring()
从c#开始。我什至可以在Python中使用此__ str __
吗?还是我应该使用其他东西? (只要告诉我Python中的ToString()等效方法- (只要
这确实意味着很多,因为我什至无法入睡或解决此错误。我很困惑!请
提前感谢
Im trying to make a SOAP request and running into a couple of issues and I would need your help in resolving the error
from zeep import Client
client = Client(wsdl='http://<placeholder>/<serviceholder>.svc?wsdl')
response = client.service.MethodName(secret_code,secret_key,data.__str__())
and getting the following error
**zeep.exceptions.XMLSyntaxError: The XML returned by the server does not contain a valid {http://schemas.xmlsoap.org/soap/envelope/}Envelope root element. The root element found is HTML**
I need 2 inputs,
The MethodName(secret_code,secret_key,
data.__str__()
) actually needsdata.ToString()
as that from c#. Am I even right to use this__str__
in python or should I use something else?
( Just tell me the equivalent method of ToString() in pythonPlease tell me why Im getting that zeep.exception!
It would really mean a lot as I can't even sleep or resolve this error. Im so stuck! please help
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论