edu.uga.cs.lsdis.meteors.uddiproxy
Interface WSDLPublisher

All Known Implementing Classes:
WSDLPublisherImpl

public interface WSDLPublisher

This is the main interface for semantic and non semantic publication using UDDI4J.

Version:
1.0
Author:
Kunal Verma

Method Summary
 java.lang.String findBusinessEntityByName(java.lang.String businessName, org.uddi4j.util.DiscoveryURLs urls)
          find the business entity using business name and discovery urls.
 org.uddi4j.client.UDDIProxy getProxy()
           
 java.lang.String publishBinding(java.lang.String namespace, java.lang.String localName, java.lang.String wsdlLocation, java.lang.String portTypeKey, java.lang.String protocol, java.lang.String transport)
          publish a WSDL Binding in UDDI
 ReturnVal publishBusinessEntity(java.lang.String businessName, java.util.Vector<org.uddi4j.util.DiscoveryURL> discoveryURLs, java.util.Vector<org.uddi4j.datatype.Description> descriptions, java.util.Vector<org.uddi4j.datatype.business.Contact> conts)
          create a business entity without any business service it must has a business name and at least one discovery url
 ReturnVal publishBusinessService(java.lang.String businessKey, java.lang.String wsdlLocation, java.lang.String serviceName, java.lang.String namespace, java.lang.String description, java.util.Vector<org.uddi4j.datatype.binding.TModelInstanceInfo> tmodelInfos, java.lang.String old_tmodel_key)
          use tmodel key and business key to check whether the service is exist if it is, just update the service; otherwise, publish a new one
 ReturnVal publishOperation(java.lang.String namespace, java.lang.String localName, java.lang.String wsdlLocation, java.lang.String functionalConcept, java.lang.String inputMsg, java.lang.String outputMsg, java.util.Vector inputs, java.util.Vector outputs, org.uddi4j.util.KeyedReference domain, java.lang.String portTypeKey, java.lang.String port, java.lang.String businessName, java.lang.String serviceName)
          published a WSDL operation in UDDI
 java.lang.String publishPortType(java.lang.String namespace, java.lang.String localName, java.lang.String wsdlLocation)
          published a WSDL portType in UDDI
 java.lang.String updateBusinessEntityInfo(java.lang.String businessKey, java.lang.String businessName, java.util.Vector<org.uddi4j.util.DiscoveryURL> discoveryURLs, java.util.Vector<org.uddi4j.datatype.Description> descriptions, java.util.Vector<org.uddi4j.datatype.business.Contact> conts)
          update the business entity information if want to keep the origianl value, then the vector is null
 

Method Detail

publishOperation

ReturnVal publishOperation(java.lang.String namespace,
                           java.lang.String localName,
                           java.lang.String wsdlLocation,
                           java.lang.String functionalConcept,
                           java.lang.String inputMsg,
                           java.lang.String outputMsg,
                           java.util.Vector inputs,
                           java.util.Vector outputs,
                           org.uddi4j.util.KeyedReference domain,
                           java.lang.String portTypeKey,
                           java.lang.String port,
                           java.lang.String businessName,
                           java.lang.String serviceName)
                           throws org.uddi4j.UDDIException,
                                  org.uddi4j.transport.TransportException
published a WSDL operation in UDDI

Parameters:
namespace - Namespace of the operation
localName - LocalName of the operation
wsdlLocation - Location of wsdl containing operation
functionalConcept - functional concept representing operation from a domain ontology
inputMsg - input message for the operation
outputMsg - output message for the operation
inputs - Set of inputs for the operation
outputs - Set of outputs for the operation
domain - Domain for the operation
portTypeKey - Key of the TModel representing portType of the operation
Returns:
oldkey -- old tmodel key; newkey -- new tmodel key
Throws:
org.uddi4j.transport.TransportException
org.uddi4j.UDDIException

publishPortType

java.lang.String publishPortType(java.lang.String namespace,
                                 java.lang.String localName,
                                 java.lang.String wsdlLocation)
published a WSDL portType in UDDI

Parameters:
namespace - Namespace of the portType
localName - LocalName of the portType
wsdlLocation - Location of wsdl containing portType
Returns:
String Key of published TModel for portType

publishBinding

java.lang.String publishBinding(java.lang.String namespace,
                                java.lang.String localName,
                                java.lang.String wsdlLocation,
                                java.lang.String portTypeKey,
                                java.lang.String protocol,
                                java.lang.String transport)
publish a WSDL Binding in UDDI

Parameters:
namespace - Namespace of the Binding
localName - LocalName of the Binding
wsdlLocation - Location of wsdl containing Binding
Returns:
String Key of published TModel for Binding

publishBusinessService

ReturnVal publishBusinessService(java.lang.String businessKey,
                                 java.lang.String wsdlLocation,
                                 java.lang.String serviceName,
                                 java.lang.String namespace,
                                 java.lang.String description,
                                 java.util.Vector<org.uddi4j.datatype.binding.TModelInstanceInfo> tmodelInfos,
                                 java.lang.String old_tmodel_key)
                                 throws java.lang.Exception,
                                        org.uddi4j.UDDIException
use tmodel key and business key to check whether the service is exist if it is, just update the service; otherwise, publish a new one

Parameters:
businessKey - business key -- String (required)
wsdlLocation - wsdl location -- String
serviceName - servcie name -- String
namespace - service namespace -- String
description - service description -- String
tmodelInfos - tmodel informations -- Vector of TModelInstanceInfo
old_tmodel_key - old tmodel key -- String
Returns:
the flag is true when do update
Throws:
java.lang.Exception
org.uddi4j.UDDIException

publishBusinessEntity

ReturnVal publishBusinessEntity(java.lang.String businessName,
                                java.util.Vector<org.uddi4j.util.DiscoveryURL> discoveryURLs,
                                java.util.Vector<org.uddi4j.datatype.Description> descriptions,
                                java.util.Vector<org.uddi4j.datatype.business.Contact> conts)
                                throws org.uddi4j.UDDIException,
                                       java.lang.Exception
create a business entity without any business service it must has a business name and at least one discovery url

Parameters:
businessName - businessName -- String
discoveryURLs - discovery urls -- Vector of DiscoveryURL
descriptions - descriptions -- Vector of Description
contacts - contact informations -- Vector of Contact
Returns:
flag - true (already exist) key - business key
Throws:
java.lang.Exception
org.uddi4j.UDDIException

updateBusinessEntityInfo

java.lang.String updateBusinessEntityInfo(java.lang.String businessKey,
                                          java.lang.String businessName,
                                          java.util.Vector<org.uddi4j.util.DiscoveryURL> discoveryURLs,
                                          java.util.Vector<org.uddi4j.datatype.Description> descriptions,
                                          java.util.Vector<org.uddi4j.datatype.business.Contact> conts)
                                          throws org.uddi4j.UDDIException,
                                                 org.uddi4j.transport.TransportException
update the business entity information if want to keep the origianl value, then the vector is null

Parameters:
businessKey - business key -- String
businessName - business name -- String
discoveryURLs - discovery urls -- Vector of DiscoveryURL
descriptions - descriptions -- Vector of Description
contacts - contact informations -- Vector of Contact
Returns:
business key -- String
Throws:
java.lang.Exception
org.uddi4j.UDDIException
org.uddi4j.transport.TransportException

getProxy

org.uddi4j.client.UDDIProxy getProxy()
Returns:
Returns the proxy.

findBusinessEntityByName

java.lang.String findBusinessEntityByName(java.lang.String businessName,
                                          org.uddi4j.util.DiscoveryURLs urls)
                                          throws org.uddi4j.UDDIException,
                                                 java.lang.Exception
find the business entity using business name and discovery urls. there should be only one business key exist for these pair

Parameters:
businessName - business name -- String
discoveryUrls - discovery urls -- DiscoveryURLs
Returns:
business key -- String
Throws:
org.uddi4j.UDDIException
java.lang.Exception