Class UDDIOperations

java.lang.Object
  |
  +--UDDIOperations

public class UDDIOperations
extends java.lang.Object

This class implements different UDDI operations like saving a TModel, Searching for it Publishing/Searching for a service


Constructor Summary
UDDIOperations()
          Constructor : Instantiates PRoxy object and reads Properties from samples.prop file
 
Method Summary
static void main(java.lang.String[] args)
          Used for Testing purposes
 CategoryBag makeCategoryBag(java.lang.String inputTModelKey, java.lang.String outputTModelKey, java.util.Vector inputNodeNames, java.util.Vector outputNodeNames)
          Makes a category bag to add that to service
 void matchService(java.lang.String inputTModelKey, java.lang.String outputTModelKey, java.util.Vector inputNodeNames, java.util.Vector outputNodeNames)
          Finds a matching service that matches the specifications
 void publishService(java.lang.String businessName, java.lang.String serviceName, java.lang.String inputTModelKey, java.lang.String outputTModelKey, java.util.Vector inputNodeNames, java.util.Vector outputNodeNames, java.lang.String uId, java.lang.String passwd)
          Publishes a service
 void saveTModel()
          Saves a TModel to the UDDI registry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDDIOperations

public UDDIOperations()
Constructor : Instantiates PRoxy object and reads Properties from samples.prop file

Method Detail

main

public static void main(java.lang.String[] args)
Used for Testing purposes


saveTModel

public void saveTModel()
Saves a TModel to the UDDI registry


makeCategoryBag

public CategoryBag makeCategoryBag(java.lang.String inputTModelKey,
                                   java.lang.String outputTModelKey,
                                   java.util.Vector inputNodeNames,
                                   java.util.Vector outputNodeNames)
Makes a category bag to add that to service

Parameters:
inputTModelKey - Key of the InputTModel to be used in category bag
inputNodeNames - Vector that has all input concepts from WSDL file
outputNodeNames - Vector that has all output concepts from WSDL file
Returns:
CategoryBag CategoryBag that is constructed from the given parameters to add to service

publishService

public void publishService(java.lang.String businessName,
                           java.lang.String serviceName,
                           java.lang.String inputTModelKey,
                           java.lang.String outputTModelKey,
                           java.util.Vector inputNodeNames,
                           java.util.Vector outputNodeNames,
                           java.lang.String uId,
                           java.lang.String passwd)
Publishes a service

Parameters:
businessName - Name of the business that publishes the service
serviceName - Name of the service that is to be published
inputTModelKey - Key of the InputTModel to be used in category bag
inputNodeNames - Vector that has all input concepts from WSDL file
outputNodeNames - Vector that has all output concepts from WSDL file
uId - String representing User Id
passwd - String Password of the user

matchService

public void matchService(java.lang.String inputTModelKey,
                         java.lang.String outputTModelKey,
                         java.util.Vector inputNodeNames,
                         java.util.Vector outputNodeNames)
Finds a matching service that matches the specifications

Parameters:
inputTModelKey - Key of the InputTModel to be used in category bag
inputNodeNames - Vector that has all input concepts from WSDL file
outputNodeNames - Vector that has all output concepts from WSDL file