#NEWLINE# def _on_method_call( ctx ) : #NEWLINE# #INDENT# logging . debug ( 'request: {0}' . format ( ctx . in_object ) ) #NEWLINE# if ( auth_res . service_class . __in_protocol__ . __class__ . __name__ == 'Soap11' ) : #NEWLINE# #INDENT# logging . debug ( 'request: {0}' . format ( etree . tostring ( ctx . in_document , pretty_print = True ) ) ) #NEWLINE# if hasattr ( ctx . service_class , '__wsse_conf__' ) : #NEWLINE# #INDENT# def_conf = { #NEWLINE# #INDENT# 'reject-empty-nonce-creation' : False , #NEWLINE# #UNINDENT# } #NEWLINE# wsse_conf = dict ( ( def_conf . items ( ) + ctx . service_class . __wsse_conf__ . items ( ) ) ) #NEWLINE# for ( k , v ) in wsse_conf . items ( ) : #NEWLINE# #INDENT# wsse_conf [ 'wsse-pwd-{0}' . format ( k ) ] = v #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# auth_res = FSWSSE ( ) . validate ( ctx . in_document , wsse_conf ) #NEWLINE# #UNINDENT# except SecurityException as e : #NEWLINE# #INDENT# logging . exception ( e ) #NEWLINE# raise InvalidCredentialsError ( e . description ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return