Listing 14. The queryPortTypeTModels method
private static void queryPortTypeTModels(Query query)
throws TransportException, UDDIException {
TModelList tModelList = null;
System.out.println("\nQuerying the ConfiguratorPortType portType tModels (example of
query described in section 3.3.1 of the TN...)\n");
tModelList = query.query_portType_tModel(
"http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Configurator.wsdl",
"ConfiguratorPortType");
TModelInfos tModelInfos = tModelList.getTModelInfos();
Vector v = tModelInfos.getTModelInfoVector();
int size = v.size();
System.out.println("The following ConfiguratorPortType portType tModels were found:");
for (int i = 0; i < size; i++) {
TModelInfo tModelInfo = (TModelInfo) (v.elementAt(i));
String tModelKey = tModelInfo.getTModelKey();
System.out.println(tModelKey);
}
}
|
