// If the user has already created a proxy for this interface before
// but is now asking for a proxy for the same interface but a different
// portName, we should cache the proxy here and just call
// clientProxy.setPort() instead.
WSIFClientProxy clientProxy =
WSIFClientProxy.newInstance(
iface,
def,
service.getQName().getNamespaceURI(),
service.getQName().getLocalPart(),
portType.getQName().getNamespaceURI(),
portType.getQName().getLocalPart(),
typeMap);
clientProxy.setPort(wsifPort);
Object proxy = clientProxy.getProxy();
// Tracing the proxy causes a hang!
Trc.exit();
return proxy;
}