fact = WSDLFactory.newInstance();
read = fact.newWSDLReader();
def = read.readWSDL(wsdlURI);
map = def.getPortTypes();
PortType p = new PortTypeImpl() ;
QName qname = p.getQName();
//Operation op = p.getOperation(wsdlURI, wsdlURI, wsdlURI);
//op.getName()
PortTypeImplm portType;
OperationImplm operation;
List<PortTypeImplm> portTypeList = new ArrayList<PortTypeImplm>();
List<OperationImplm> operationList = new ArrayList<OperationImplm>();
Set s = map.entrySet();
Iterator it = s.iterator();
while(it.hasNext())
{
// key=value separator this by Map.Entry to get key and value
Map.Entry m = (Map.Entry)it.next();
// getKey is used to get key of Map
Object key = m.getKey();
// getValue is used to get value of key in Map
PortType pType = (PortTypeImpl)m.getValue();
Operation op ;
portType = new PortTypeImplm();
portType.setLocalPart(pType.getQName().getLocalPart());
for(int i=0; i<pType.getOperations().size(); i++){
op = (OperationImpl)pType.getOperations().get(i);
operation = new OperationImplm(op.getName());
portType.addOperation(operation.name);
System.out.println("operation.getname = "+operation.name);
}
System.out.println("operation.getnames = "+portType.operations);