if (endpoints.length == 0) {
throw new AxisFault("No endpoints found in the WSDL");
}
processedBindings = new HashMap();
Endpoint endpoint = null;
// If the interface name is not null thats means that this is a call from the codegen engine
// and we need to populate a single endpoint. Hence find the endpoint and populate it.
// If that was not the case then we need to check whether the call is from the codegen
// engine with thw allports check false. If its so no need to populate all endpoints, we
// select an enspoint accrding to the following criteria.
// 1. Find the first SOAP 1.2 endpoint
// 2. Find the first SOAP 1.1 endpoint
// 3. Use the first endpoint
if (this.interfaceName != null) {
for (int i = 0; i < endpoints.length; ++i) {
if (this.interfaceName.equals(endpoints[i].getName().toString())) {
endpoint = endpoints[i];
break; // found it. Stop looking
}
}
if (endpoint == null) {
throw new AxisFault("No endpoint found for the given name :"
+ this.interfaceName);
}
axisService
.addEndpoint(endpoint.getName().toString(),
processEndpoint(endpoint, serviceInterface));
} else if (this.isCodegen && !this.isAllPorts) {
Endpoint soap11Endpoint = null;
for (int i = 0; i < endpoints.length; ++i) {
Binding binding = endpoints[i].getBinding();
if (WSDL2Constants.URI_WSDL2_SOAP.equals(binding.getType().toString())) {
SOAPBindingExtensions soapBindingExtensions;
try {