Support GetServiceDefinition platform call. Also added samle code.