create set_global_service_by_port.js

Adding set_global_service_by_port.js