Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
415 views
in Technique[技术] by (71.8m points)

Python call SOAP API without wsdl

i need to call a SOAP API. My problem is that this api doesn`t provide wsdl. Its the ISPConfig Remote API written in PHP.

Is there a Python Module which is able to call a Soap ws without wsdl?

I know my question was asked before, but there is no real answer provided for my issue. I hope you guys can help me this time.

question from:https://stackoverflow.com/questions/66048018/python-call-soap-api-without-wsdl

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Bogdans comment is right, the WSDL is just the contract between Webservice provider and consumer, you might use it for code generation but it is not a must (although very helpful).

SOAP is "simply" (okay it's not, anyway ;) specialized/standardized XML via HTTP(s). Therefore you don't really need special modules for doing the call itself, you just need a HTTP library which is capable of sending HTTP-POST requests.

Have a look here for an example: Sending SOAP request using Python Requests


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...