}
// now go through the WSDLS and find the one with the proper port type
Set<String> keys = wsdls.keySet();
for (String key : keys) {
WsdlDefinitions wsdl = wsdls.get(key);
WsdlPortType portType = wsdl.getPortType(portTypeQname.getLocalPart());
if (null != portType && portType.getQName().equals(portTypeQname)) {
// this is the right porttype so extract the service and you will be done
Iterator<WsdlService> svcIterator = wsdl.services().iterator();
String nsPrefix = null;
if (svcIterator.hasNext()) {
WsdlService plService = svcIterator.next();
if (null == newNamespaceMap.get(wsdl.getTargetNamespace())) {
nsPrefix = "p" + newNamespaceMap.size();
newNamespaceMap.put(wsdl.getTargetNamespace(), nsPrefix);
} else {
nsPrefix = newNamespaceMap.get(wsdl.getTargetNamespace());
}
String portName = null;
Iterator<WsdlPort> portItr = plService.ports().iterator();
if (portItr.hasNext()) {