jeudi 23 janvier 2020

SOAP Request Python

I have been trying to make a SOAP request in python for several days which consists of retrieving a list of students struck off in a school (fictitious for test).

I have to call rechercherRadiations () from a .wsdl file and here is what we have to send and what returns the result (SoapUI software):

Go : enter image description here

Return: enter image description here

So with SoapUI software, there is no problem. I put the requested token, the test establishment code and a search start date. However, using Python for this web service (Odoo 11 Platform), I can't get the right result. I tried 2 different ways for the search for radiations () call.

I tried :

rechercherRadiations(token, '0330313L', '2019-09-03')

The error returned:

enter image description here

Second try:

rechercherRadiations(token)

The error returned:

enter image description here

I do not know how to write the SOAP request in order to have a suitable result.

Thank you for your help !

Aucun commentaire:

Enregistrer un commentaire