如何将TCS api与odoo 9集成

时间:2016-08-22 10:14:24

标签: api openerp odoo-8 openerp-8 odoo-9

请告诉我如何在Odoo中集成TCS Api。我有一些名义上的代码,但我不知道这是一个APi。如果这是Api,那么请告诉我如何使用此代码

以下是SOAP 1.1请求和响应示例。显示的占位符需要替换为实际值。

POST /Service1.asmx HTTP/1.1
Host: 202.61.51.93
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://202.61.51.93:6265/GetAllCountries"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"  xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetAllCountries xmlns="http://202.61.51.93:6265/" />
  </soap:Body>
</soap:Envelope>

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetAllCountriesResponse xmlns="http://202.61.51.93:6265/">
      <GetAllCountriesResult>xmlxml</GetAllCountriesResult>
    </GetAllCountriesResponse>
  </soap:Body>
</soap:Envelope>

0 个答案:

没有答案