Map opInfoMap = new HashMap( );
String[] opNames = resourceDef.getCustomOperationNames( );
for ( int i = 0; i < opNames.length; i++ )
{
Operation op = resourceDef.getPortType( ).getOperation( opNames[i], null, null );
OperationInfo opInfo = new OperationInfo( op,
resourceDef.getDefinition( ).getTargetNamespace( ) );
// TODO: handle operations that have no input element (e.g. wsx:Get) - we can't have a null key
opInfoMap.put( opInfo.getRequestElementName( ),
opInfo );
}
return opInfoMap;
}