Hi Gary,
I suspect wsdl url is not retrieved when code is deployed in server. wsdlUrl result of this line should be a VFS url when code deployed in server:
URL wsdlUrl=WSClient.class.getClassLoader().getResource("HelloWorldWS.wsdl");
It needs the JBossWSResourceResolver used to resolve the VFS file resource to add in cxf bus.
If it is the cause, you can simply change this wsdl location to something like "http://localhost:8080/foo/bar?wsdl". Or add this resolve in bus with :
bus.getExtension(ResourceManager.class).addResourceResolver(resourceResolver);