soap - python soappy add header -


मेरे पास निम्न PHP उदाहरण कोड है:

  $ client = नया SoapClient ("http : //example.com/example.wsdl "); $ H = सरणी (); सरणी_पश ($ h, नया सोपहिडर ("http://example2.com/example2/", "h", "v")); $ ग्राहक & gt; __ setSoapHeaders ($ ज); $ S = $ client- & gt; __ साबुनकल ('ओप', $ डेटा);  

मेरा प्रश्न: SoapHeader () और __setSoapHeaders () भाग के लिए SOAPpy समकक्ष क्या है?

संबंधित प्रश्न

यहां लाइब्रेरी का उपयोग करते हुए एक उदाहरण है (SOAPpy का एक विकल्प) ऐसा लगता है कि कस्टम हेडर को wsdl में परिभाषित नहीं किया गया है। Suds.client आयात से suds.class आयात ग्राहक से आयात करें एलिमेंट क्लाइंट = क्लाइंट ("http://example.com/ Example.wsdl ") # और lt; tns: h xmlns: tns =" ​​http://example2.com/example2/ "& gt; वी & lt; / tns: h & gt; टीएनएस = ("टीएनएस", "http://example2.com/example2/") एच = तत्व ('एच', एनएस = टीएनएस) .सेट टेक्स्ट ('वी') client.set_options (सोपहेडर्स = एच) # एस = Client.service.op (डेटा)


Comments

Popular posts from this blog

iphone - How do I make a UIPickerView in a UIActionSheet -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -