<s> from suds . client import Client as SudsClient <EOL> from suds . sax . element import Element <EOL> """<STR_LIT>""" <EOL> wsse = ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> security = Element ( '<STR_LIT>' , ns = wsse ) <EOL> usernametoken = Element ( '<STR_LIT>' , ns = wsse ) <EOL> uname = Element ( '<STR_LIT>' , ns = wsse ) . setText ( '<STR_LIT>' ) <EOL> passwd = Element ( '<STR_LIT>' , ns = wsse ) . setText ( '<STR_LIT>' ) <EOL> passwd . set ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> usernametoken . insert ( uname ) <EOL> usernametoken . insert ( passwd ) <EOL> security . insert ( usernametoken ) <EOL> url = '<STR_LIT>' <EOL> client = SudsClient ( url = url , cache = None ) <EOL> client . set_options ( soapheaders = security ) <EOL> r = client . service . echo ( str = '<STR_LIT>' , cnt = <NUM_LIT:3> ) <EOL> print r </s>
