Python - Zeep SOAP Complex Header

前端 未结 2 1508
无人及你
无人及你 2021-02-06 12:44

I\'d like to pass \"Complex\" Header to a SOAP service with zeep library

Here\'s what it should look like

 
      

        
2条回答
  •  臣服心动
    2021-02-06 13:16

    Thx Oblivion02.

    I finally use a raw method

    headers = {'content-type': 'text/xml'}
    body = """
    
    FOO
    JAM
    
    
              ...
    
    """
    
    response = requests.post(wsdl,data=body,headers=headers)
    

提交回复
热议问题