HelloWorldService ss = new HelloWorldService(wsdl, serviceName);
QName portName = new QName("http://apache.org/hello_world/nmr", "SoapPort");
ss.addPort(portName, NMRConstants.NS_NMR_BINDING, "local://nmrendpoint");
Greeter port = ss.getPort(portName, Greeter.class);
String rep = port.greetMe("ffang");
assertEquals(rep, "Hello ffang");
rep = port.sayHi();
assertEquals(rep, "Bonjour");
try {
port.pingMe();
fail();
} catch (PingMeFault ex) {
assertEquals(ex.getFaultInfo().getMajor(), (short)2);
assertEquals(ex.getFaultInfo().getMinor(), (short)1);
}