I guess "www.localhost.com" should be simply "localhost"; this often happens if the server is not responding, Firefox attempts to search the server on the net. Are you sure the port number is correct?
NOTE#1: which appserver/webservice platform are you using? Did you write a client or are you trying to use the default automatically generated client?
NOTE#2: when your code will be invoked it will most likely throw a "null pointer exception" here
cityName.add(lastName);
because you forgot to initialize the list, and it may never find your city because you forgot to set the parameter
$cityName
before invoking the preparedStatement.
NOTE#3: you'd better test the web service invocation and the code it is executing in two different steps; consider writing a simple main or a test case for the latter.