archive/v1/client/method.js
function sortArgs(method, args) {

		// get the method definition
		var def = _.get(_client.types, method.replace(/\_Task$/i, '') + 'RequestType');
		
		// if found create the definition by calling its function
		if (def) {
			return getFields(def(), args);
		}
		return args;
	}
function sortArgs(method, args) {

		// get the method definition
		var def = _.get(_client.types, method.replace(/\_Task$/i, '') + 'RequestType');
		
		// if found create the definition by calling its function
		if (def) {
			return getFields(def(), args);
		}
		return args;
	}
function sortArgs ( method , args ) { // get the method definition var def = _ . get ( _client . types , method . replace ( / \_Task$ / i , '' ) + 'RequestType' ) ; // if found create the definition by calling its function if ( def ) { return getFields ( def ( ) , args ) ; } return args ; }
function to correctly order the arguments this is done because arguments in an incorrect order will cause the soap method to fail
function to correctly order the arguments this is done because arguments in an incorrect order will cause the soap method to fail