如何在Django Python中发送xml请求和接收xml响应?

时间:2018-07-29 11:20:48

标签: django xml python-3.x django-views httplib

如何在Django Python中发出xml HTTP请求并获得xml响应?

请求

<RDVMessage>
<Header> {Authorization:'54873' } </Header>
<Body>
    <Request>
       <CustomerID> 12345</ CustomerID >
    </Request>
</Body>
</RDVMessage>

响应:

<RDVMessage>
<Header> {Authorization:'54873'} </Header>
<Body>
    <Response>
    <ID> 56789</ID >
    </Response>
</Body>
</RDVMessage>

0 个答案:

没有答案