Version: 1.1.1

ca.ucalgary.services.util
Class WSDLConfig

java.lang.Object
  extended by ca.ucalgary.services.util.MobySpecWrapper
      extended by ca.ucalgary.services.util.WSDLConfig

public class WSDLConfig
extends MobySpecWrapper

Used to expose a WSDL file enhanced with SAWSDL and Moby markup as a Moby service.


Field Summary
static String DEFAULT_AUTHORITY
           
static String MOBY_SECONDARY_SOURCE_ATTR
           
static String REGISTRY_ATTR
           
static String SAWSDL_INMAP_ATTR
           
static String SAWSDL_MODEL_ATTR
           
static String SAWSDL_OUTMAP_ATTR
           
static String SERVICE_AUTH_ATTR
           
static String SERVICE_CONTACT_ATTR
           
static String SERVICE_DESC_ATTR
           
static String SERVICE_NAME_ATTR
           
 
Constructor Summary
WSDLConfig()
          C-tor to use when you'll programmatically set the values rarther than getting them from a SAWSDL file.
WSDLConfig(URL url)
           
 
Method Summary
 Map<String,String> getInputXSDTypes()
           
 String getOperationEncoding()
          If style is not explicitly available, literal is the default
 QName getOperationInputQName()
           
 String getOperationName()
           
 QName getOperationOutputQName()
           
 String getOperationStyle()
           
 Map<String,String> getOutputXSDTypes()
           
 QName getPortQName()
           
 String getSecondaryParamRestrictions(Element partElement)
          Checks out the Moby secondary parameter source attribute.
 String getSecondaryParamRestrictionsFromService(Element partElement, String opName)
           
 String getSecondaryParamRestrictionsFromURL(URL u)
           
 QName getServiceQName()
           
 String getSoapAction()
           
 String getTargetNamespaceURI()
           
static String join(Iterable i, String delimiter)
           
 void parseMobyServiceSpecs()
           
 void parseSOAPMessageSpecs()
           
static Element renameSoapArrayElements(Element arrayElement, String newName, Document owner)
           
 void setInputXSDTypes(Map<String,String> types)
           
 void setOperationEncoding(String encoding)
           
 void setOperationInputQName(QName inputName)
           
 void setOperationName(String opName)
           
 void setOperationOutputQName(QName outputName)
           
 void setOperationStyle(String style)
           
 void setOutputXSDTypes(Map<String,String> types)
           
 void setPortQName(QName portName)
           
 void setServiceQName(QName serviceName)
           
 void setSoapAction(String soapAction)
           
 void setTargetNamespaceURI(String nsURI)
           
 String wsdlParam2MobyParam(Element element, String paramName, String paramXSDType, String dataTypeLSID)
           
 String wsdlParam2MobySecondaryParam(Element partElement, String paramName, String paramXSDType, String dataTypeLSID)
           
 
Methods inherited from class ca.ucalgary.services.util.MobySpecWrapper
getCentralEndpoint, getContactEmail, getFixedParams, getMobyParams2ServiceParams, getPrimaryInputFormats, getPrimaryInputs, getPrimaryOutputFormats, getPrimaryOutputs, getProviderURI, getSecondaryInputFormats, getSecondaryInputs, getServiceDesc, getServiceName, getServiceNames, getServiceType, getSpecURL, getUnitTests, setCentralEndpoint, setContactEmail, setCurrentService, setFixedParams, setMobyParams2ServiceParams, setPrimaryInputFormats, setPrimaryInputs, setPrimaryOutputFormats, setPrimaryOutputs, setProviderURI, setSecondaryInputFormats, setSecondaryInputs, setServiceDesc, setServiceType, setSpecURL, setUnitTests
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_NAME_ATTR

public static final String SERVICE_NAME_ATTR
See Also:
Constant Field Values

SERVICE_DESC_ATTR

public static final String SERVICE_DESC_ATTR
See Also:
Constant Field Values

SERVICE_AUTH_ATTR

public static final String SERVICE_AUTH_ATTR
See Also:
Constant Field Values

SERVICE_CONTACT_ATTR

public static final String SERVICE_CONTACT_ATTR
See Also:
Constant Field Values

REGISTRY_ATTR

public static final String REGISTRY_ATTR
See Also:
Constant Field Values

DEFAULT_AUTHORITY

public static final String DEFAULT_AUTHORITY
See Also:
Constant Field Values

SAWSDL_MODEL_ATTR

public static final String SAWSDL_MODEL_ATTR
See Also:
Constant Field Values

SAWSDL_INMAP_ATTR

public static final String SAWSDL_INMAP_ATTR
See Also:
Constant Field Values

SAWSDL_OUTMAP_ATTR

public static final String SAWSDL_OUTMAP_ATTR
See Also:
Constant Field Values

MOBY_SECONDARY_SOURCE_ATTR

public static final String MOBY_SECONDARY_SOURCE_ATTR
See Also:
Constant Field Values
Constructor Detail

WSDLConfig

public WSDLConfig()
C-tor to use when you'll programmatically set the values rarther than getting them from a SAWSDL file.


WSDLConfig

public WSDLConfig(URL url)
           throws Exception
Throws:
Exception
Method Detail

parseSOAPMessageSpecs

public void parseSOAPMessageSpecs()
                           throws Exception
Throws:
Exception

wsdlParam2MobyParam

public String wsdlParam2MobyParam(Element element,
                                  String paramName,
                                  String paramXSDType,
                                  String dataTypeLSID)
                           throws Exception
Throws:
Exception

wsdlParam2MobySecondaryParam

public String wsdlParam2MobySecondaryParam(Element partElement,
                                           String paramName,
                                           String paramXSDType,
                                           String dataTypeLSID)
                                    throws Exception
Throws:
Exception

getSecondaryParamRestrictions

public String getSecondaryParamRestrictions(Element partElement)
                                     throws Exception
Checks out the Moby secondary parameter source attribute. If it's a reference to another service, with a nullary c-tor, that service is executed and the returned values are used in the secondary param spec valid value range. The value could also be a literal pointed to by a Java-acceptable URL. The returned value is of the form "defaultValue:[min,max]", where [min,max] can be an enumeration as well

Throws:
Exception

getSecondaryParamRestrictionsFromURL

public String getSecondaryParamRestrictionsFromURL(URL u)

getSecondaryParamRestrictionsFromService

public String getSecondaryParamRestrictionsFromService(Element partElement,
                                                       String opName)
                                                throws Exception
Throws:
Exception

renameSoapArrayElements

public static Element renameSoapArrayElements(Element arrayElement,
                                              String newName,
                                              Document owner)

join

public static String join(Iterable i,
                          String delimiter)

parseMobyServiceSpecs

public void parseMobyServiceSpecs()
                           throws Exception
Throws:
Exception

getOperationName

public String getOperationName()

setOperationName

public void setOperationName(String opName)

getPortQName

public QName getPortQName()

setPortQName

public void setPortQName(QName portName)

getServiceQName

public QName getServiceQName()

setServiceQName

public void setServiceQName(QName serviceName)

getOperationInputQName

public QName getOperationInputQName()

setOperationInputQName

public void setOperationInputQName(QName inputName)

getOperationEncoding

public String getOperationEncoding()
If style is not explicitly available, literal is the default


setOperationEncoding

public void setOperationEncoding(String encoding)

getOperationStyle

public String getOperationStyle()

setOperationStyle

public void setOperationStyle(String style)

getSoapAction

public String getSoapAction()

setSoapAction

public void setSoapAction(String soapAction)

getOperationOutputQName

public QName getOperationOutputQName()

setOperationOutputQName

public void setOperationOutputQName(QName outputName)

getInputXSDTypes

public Map<String,String> getInputXSDTypes()

setInputXSDTypes

public void setInputXSDTypes(Map<String,String> types)

getOutputXSDTypes

public Map<String,String> getOutputXSDTypes()

setOutputXSDTypes

public void setOutputXSDTypes(Map<String,String> types)

getTargetNamespaceURI

public String getTargetNamespaceURI()

setTargetNamespaceURI

public void setTargetNamespaceURI(String nsURI)

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010