How to send Multipart/related requests in Python to SOAP server?

风流意气都作罢 提交于 2019-12-04 16:02:39
Raj

I was able to get this to work, by adding the following line after this line

body = mtompkg.as_string().split('\n\n', 1)[1]

#RFC spec asks you to use \r\n instead of python default of \n

body = body.replace('\n', '\r\n', 5)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!