This will work:
Endpoint.publish("http://localhost:9999/ws/order", new OrderPortImpl());
But this won’t:
Endpoint.publish("http://localhost:9999/ws/order", new OrderPortImpl()); Endpoint.publish("http://localhost:9999/ws/product", new ProductPortImpl());
In the latter case, you will see java.net.BindException: Address already in use