numService.addPort(portName, SoapBindingFactory.SOAP_11_BINDING, "http://foo");
Number num = (Number)numService.getPort(portName, Number.class);
setupContextWithEprAddress(epr, num);
IsEvenResponse numResp = num.isEven();
assertTrue("2 is even", Boolean.TRUE.equals(numResp.isEven()));
// try again with the address from another epr
w3cEpr = nfact.create("3");
epr = VersionTransformer.convertToInternal(w3cEpr);
setupContextWithEprAddress(epr, num);
numResp = num.isEven();
assertTrue("3 is not even", Boolean.FALSE.equals(numResp.isEven()));
// try again with the address from another epr
w3cEpr = nfact.create("6");
epr = VersionTransformer.convertToInternal(w3cEpr);
setupContextWithEprAddress(epr, num);
numResp = num.isEven();
assertTrue("6 is even", Boolean.TRUE.equals(numResp.isEven()));
}