Created
October 28, 2014 22:23
-
-
Save cablehead/633c2d2e872e468930d9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from suds.client import Client | |
from suds.wsse import Security | |
from suds.wsse import UsernameToken | |
URL = 'https://wd5-impl-services1.workday.com/ccx/service/Human_Resources?wsdl' | |
USERNAME = '...' | |
PASSWORD = '...' | |
def main(): | |
client = Client(URL) | |
security = Security() | |
token = UsernameToken(USERNAME, PASSWORD) | |
security.tokens.append(token) | |
client.set_options(wsse=security) | |
response_filter = client.factory.create('ns0:Response_FilterType') | |
response_filter.Page = 2 | |
workers = client.service.Get_Workers(Response_Filter=response_filter) | |
print client.last_sent() | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment