Service function and soap client example for moodle service usage