fix port bug on creating service xml