kartagis / pysimplesoap

Automatically exported from code.google.com/p/pysimplesoap
0 stars 0 forks source link

Client should have support for SOAP header blocks. #28

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It would be nice to be able to write something like this:

headers = SimpleXMLElement()
headers.add_child('headername').marshall('attrname', 'attrvalue')
client.call('methodname', headers=headers)

The client code would have this block inside the call method:

    if kwargs.has_key('headers'):
        header_block = xml_body('soapenv:Header')
        for subheader in kwargs['headers'].children():
            header_block.import_node(subheader)

Original issue reported on code.google.com by allan.cr...@yougov.com on 6 May 2011 at 3:21

GoogleCodeExporter commented 8 years ago
Look at issue 3, I'll close this so we can continue working on the original 
ticket.
BTW, This example works?

Original comment by reingart@gmail.com on 10 May 2011 at 9:35