{"action":"created","issue":{"url":"https://api.github.com/repos/mvantellingen/python-zeep/issues/117","repository_url":"https://api.github.com/repos/mvantellingen/python-zeep","labels_url":"https://api.github.com/repos/mvantellingen/python-zeep/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/mvantellingen/python-zeep/issues/117/comments","events_url":"https://api.github.com/repos/mvantellingen/python-zeep/issues/117/events","html_url":"https://github.com/mvantellingen/python-zeep/issues/117","id":164420479,"number":117,"title":"How to add wsa headers","user":{"login":"utkarshohm","id":5776869,"avatar_url":"https://avatars.githubusercontent.com/u/5776869?v=3","gravatar_id":"","url":"https://api.github.com/users/utkarshohm","html_url":"https://github.com/utkarshohm","followers_url":"https://api.github.com/users/utkarshohm/followers","following_url":"https://api.github.com/users/utkarshohm/following{/other_user}","gists_url":"https://api.github.com/users/utkarshohm/gists{/gist_id}","starred_url":"https://api.github.com/users/utkarshohm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/utkarshohm/subscriptions","organizations_url":"https://api.github.com/users/utkarshohm/orgs","repos_url":"https://api.github.com/users/utkarshohm/repos","events_url":"https://api.github.com/users/utkarshohm/events{/privacy}","received_events_url":"https://api.github.com/users/utkarshohm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-07-07T22:20:26Z","updated_at":"2016-07-08T15:24:04Z","closed_at":"2016-07-08T14:46:43Z","body":"While Zeep's python docs states that WS-Addressing is in development, I have been trying to add custom headers using Elements to implement it on my own. \r\n\r\nBut I feel there is insufficient documentation for a noob like me in http://docs.python-zeep.org/en/latest/in-depth.html#using-soap-headers to implement it. I have to include the wsa:To tag. This is my code currently. \r\n`header = xsd.Element('{http://www.w3.org/2005/08/addressing}To', xsd.String())`\r\n`header_value = header(To=api_direct_url)`\r\n`print(client.service.getPassword(userId='XXX',password='XXX',_soapheader=header_value))`\r\n\r\nPlease help!"},"comment":{"url":"https://api.github.com/repos/mvantellingen/python-zeep/issues/comments/231389378","html_url":"https://github.com/mvantellingen/python-zeep/issues/117#issuecomment-231389378","issue_url":"https://api.github.com/repos/mvantellingen/python-zeep/issues/117","id":231389378,"user":{"login":"utkarshohm","id":5776869,"avatar_url":"https://avatars.githubusercontent.com/u/5776869?v=3","gravatar_id":"","url":"https://api.github.com/users/utkarshohm","html_url":"https://github.com/utkarshohm","followers_url":"https://api.github.com/users/utkarshohm/followers","following_url":"https://api.github.com/users/utkarshohm/following{/other_user}","gists_url":"https://api.github.com/users/utkarshohm/gists{/gist_id}","starred_url":"https://api.github.com/users/utkarshohm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/utkarshohm/subscriptions","organizations_url":"https://api.github.com/users/utkarshohm/orgs","repos_url":"https://api.github.com/users/utkarshohm/repos","events_url":"https://api.github.com/users/utkarshohm/events{/privacy}","received_events_url":"https://api.github.com/users/utkarshohm/received_events","type":"User","site_admin":false},"created_at":"2016-07-08T15:24:04Z","updated_at":"2016-07-08T15:24:04Z","body":"Works like a charm! Best library for SOAP\r\nThanks @mvantellingen, will contribute to this library in whatever way I can :)"}}
{"actor":{"display_login":"utkarshohm"}}