Add the method definition to the service def.