A
A
Alexander Krasnov2015-03-31 20:23:12
Python
Alexander Krasnov, 2015-03-31 20:23:12

How to make a request for a SOAP service in a pythone script?

Good day!
I wrote a python script that generates requests for our service.
It is in the form of a string. Output to file.
How can I execute this request from a script?
We usually use SoapUI, if we take the request that generated the script and insert it into the service in soapUI, then it runs correctly.
And how to make it so that it was not necessary to output the request to a file, and copy-paste in soapUI?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artur Bekerov, 2015-03-31
@Pompeius_Magnus

It doesn't matter in what language you write requests to the SOAP service, the following principle is used:
1. You form XML (or a request into a string)
2. You send a POST using the service URL, login and password (for example, basic authorization)
3. You receive a response.
SOAPui does something like this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question