lenendpoints = endpoints.length;
for (int j = 0; j < lenendpoints; j++)
{
WSDLEndpoint endpt = endpoints[j];
QName binding = endpt.getBinding();
WSDLBinding wsdlbind = wsdlDefinitions.getBinding(binding);
String bindName = wsdlbind.getName().getLocalPart();
QName portTypeName = wsdlbind.getInterfaceName();
WSDLInterface wsdlintf = wsdlDefinitions.getInterface(portTypeName);
String portName = wsdlintf.getName().getLocalPart();
String javaPortName = utils.chopPortType(portName);
if (wsdlDefinitions.getService(javaPortName) != null)
javaPortName += "_PortType";