List<String> results = new ArrayList<String>(argv.length);
for (String portPrefix : argv) {
try {
final PingService svc = new PingService();
final IPingServiceContract port =
svc.getPort(
new QName(
"http://tempuri.org/",
portPrefix
),
IPingServiceContract.class
);
final String output = port.ping(INPUT);
if (!INPUT.equals(output)) {
System.err.println(
"Expected " + INPUT + " but got " + output
);
results.add("Unexpected output " + output);