From aafak.mitsmca09 at gmail.com Fri Mar 17 05:05:15 2017 From: aafak.mitsmca09 at gmail.com (Aafak Mohammad) Date: Fri, 17 Mar 2017 14:35:15 +0530 Subject: [Soap-Python] How to add soap header in request Message-ID: Hi i am using pysimplesoap latest api with python 2.6 just want to add header in my request how i can do that? following is my code i am trying client = SoapClient(wsdl='mcsdk10.wsdl', location="https://10.10.11.164:9443/services/mcsdk10", trace=True, ns=True, sessions=True, exceptions=True, ) soap_header = { 'axis2:ServiceGroupId': result['return']['name'], 'wsa:To': 'https://10.136.12.230:9443/services/mcsdk10', 'wsa:MessageID': result['return']['name'], 'wsa:Action': 'urn:getProfileInfo' } *client['headers']= soap_header* result = client.getProfileInfo(args0={'description': "/p1", 'name': 'p1', 'value':'p1'}) also i have tried following ServiceGroupId = SimpleXMLElement('', namespace=namespace, prefix=ns) ServiceGroupId['axis2']='http://ws.apache.org/namespaces/axis2' ServiceGroupId.marshall('axis2:ServiceGroupId',result['return']['name']) ServiceGroupId.marshall('wsa:To','https://10.136.12.230:9443/services/mcsdk10') ServiceGroupId.marshall('wsa:MessageID', result['return']['name']) ServiceGroupId.marshall('wsa:Action', 'urn:getProfileInfo') *client['headers']=ServiceGroupId* Both the way it is not working it is always sending the request with empty header DEBUG:pysimplesoap.client: ** /p1p1p1 I just want to pass tp achieve following request urn:uuid:F2BB85C670F832B7A71489646820629 https://Avamar_Server_IP:9443/services/mcsdk10 urn:uuid:D9DD8A6C7B1FAB9CA61489646819241 urn:getProfileInfo /UniqueProfileName UniqueProfileName 1489646817758 I am able to pass body, but not header Thanks in advance -- Thanks & Regards, *Aafak Mohammad* Senior Software Engineer *Dell **EMC* | GSE | India COE | Mobile : +91 9731519922 *Ext: 7857799* aafak.mohammad at Dell.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From qvasic at gmail.com Fri Mar 31 10:37:48 2017 From: qvasic at gmail.com (Vasilij Demyanov) Date: Fri, 31 Mar 2017 17:37:48 +0300 Subject: [Soap-Python] pysimplesoap documentation Message-ID: Hello! I am interested in using pysimplesoap library for Python 3, but I can't find any proper documentation or tutorials. Can you help me with this? Thanks! Vasyl Demianov -------------- next part -------------- An HTML attachment was scrubbed... URL: