Here we are trying to integrate Odoo with Diebold Cash Machine, they have provided us the SOAP project xml code?
Can anyone share any reference on how we can make Soap APi calls.
Your support to us is greatly honoured. Thank you
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Dự án
- MRP
Câu hỏi này đã bị gắn cờ
2
Trả lời
3618
Lượt xem
This is related to python and if you google it, you will get many answers/blogs/videos on this.
You can use the "suds" python library to call the SOAP API from Odoo.
Ex:
from suds.client import ClientI hope this will help you to give it a start.
soap_msg = '''<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
..... some soap message
</soap:Envelope>'''
client = Client('https://soap_url_of_WSDL?WSDL')
message = client.factory.create('Message')
clientheader = client.factory.create('ClientHeader')
# Add required details in HEADER as per WSDL rule
clientheader.user = 'test' # credentials / token keys
clientheader.SendAttempt = '0'
message.ClientHeader = clientheader
res_resp = client.service.ProcessMsg(message)
Thanks Sudhir for your support. We accomplished it through JS, as its a BAPI and we can't execute the requests from server side..
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký