P
P
Puzatik2018-08-20 10:10:15
Python
Puzatik, 2018-08-20 10:10:15

What python framework should I use to write SOAP server and client?

Good afternoon!
The company is engaged in trade. It is necessary to upload a list of goods from ERP to cash register software and upload checks from cash register software to ERP.
ERP - SAP.
Checkout software - Set Retail 10.
Now the following scheme is used when unloading goods from ERP to checkout software:
SAP PI -> JDBC Receiver -> MSSQL -> SetBridge (Set Retail 5) -> Set1 retail 10 Receipts go
from checkout software to ERP like this:
Set Retail 10 -> Set Retail 5 -> JDBC Receiver -> SAP PI
I would like to get rid of the "JDBC Receiver + Set Retail 5" layer, this is a separate virtual machine
that, in fact, just converts data from the SAP PI format in a format understandable Set Retail 10.
Ideally, it would be great to come to the SAP PI <-> Set Retail 10 scheme, but there is no SAP PI specialist,
no one wants to give an order to a third party, everyone is happy with everything.
I want to try replacing "JDBC Receiver + Set Retail 5" with a python daemon.
Not an enterprise, just to improve your skills in python programming.
That is, the scheme will be as follows:
SAP PI -> Python -> Set Retail 10
From SAP to the JDBC Receiver, documents of the form arrive with a POST request:
-----
POST /db/SETRetail_JDBC_receiver HTTP/1.0
content-type: multipart/related;boundary =SAP_005056A6DBA01EE89FD127DCB9C88B4A_END;type="text/xml";start=""
content-length: 8889
...
...
content-type:application/x-sap.idoc
content-length:4463
content-id:
<?xml version="1.0" encoding="utf-8"?>
...
product description here
...
-----
In Set Retail 10, you can upload products via SOAP requests . They have good documentation, all parameters are described.
Question:
Is there a ready-made framework that more or less fits the task, or is it better to write your own from scratch (listen to the port, read data, parse XML, etc.)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Spiridonov, 2018-08-20
@Puzatik

In this case, "from scratch" is not such a big amount of work as it might seem. One or two days of work for a practitioner, a week or two for a beginner.
Mastering the framework for pedagogical purposes is certainly useful, and from a practical point of view, its use is often justified, but perhaps in this case it will be superfluous.
The question is how much time do you have. The listed tasks do not constitute any special volume. What to do with a framework, what to do without a framework - this is not a public web application, there are almost no security requirements here. Therefore, there is not much difference.
Do it without a framework.
Tip: use OOP and develop with small tests. So you will very quickly achieve the desired result.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question