ca.ucalgary.services
Class WSDLService
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.biomoby.service.MobyServlet
ca.ucalgary.services.LegacyService
ca.ucalgary.services.WrapperService<WSDLConfig>
ca.ucalgary.services.WSDLService
- All Implemented Interfaces:
- Serializable, Remote, javax.servlet.Servlet, javax.servlet.ServletConfig
public class WSDLService
- extends WrapperService<WSDLConfig>
A servlet to wrap a Semantically Annotated WSDL file into
a Moby Service using LSIDs to identify the models (Moby ontology terms)
and lowering/lifting schema mappings (MOB and DEM rules) to bridge the
semantic contents of Moby messages <-> the syntactic WSDL I/O.
For more details, see the tutorial
on how to markup a WSDL file for Moby.
For more information on SAWSDL, see http://www.w3.org/TR/sawsdl/
- See Also:
- Serialized Form
Fields inherited from class org.biomoby.service.MobyServlet |
ADMIN_MODE, INIT_OUTPUT_BUFFER_SIZE, MOBY_AUTHORITATIVE_PARAM, MOBY_CENTRAL_URL_PARAM, MOBY_CONTACT_PARAM, MOBY_INPUT_PARAM, MOBY_OUTPUT_PARAM, MOBY_PROVIDER_URI_PARAM, MOBY_SECONDARYINPUT_PARAM, MOBY_SERVICE_DESC_PARAM, MOBY_SERVICENAME_PARAM, MOBY_SERVICETYPE_PARAM, MODE_HTTP_PARAM, RDF_MODE |
Constructor Summary |
WSDLService()
|
WSDLService(WSDLConfig wsdlConfig,
boolean usingRawXml)
C-tor for when you want to configure not from a SAWSDL file, but a configuration object. |
Methods inherited from class org.biomoby.service.MobyServlet |
destroy, doGet, doPost, getCentralImpl, getMobyContents, getServiceName, log, log, main, processRequests, setCoCInitParameter, setMainTerminationExit, stringToPrimaryDataTemplate, stringToSecondaryDataTemplate, validateArguments |
Methods inherited from class javax.servlet.http.HttpServlet |
service |
Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log |
WSDL_URL_PARAM
public static final String WSDL_URL_PARAM
- See Also:
- Constant Field Values
WSDLService
public WSDLService(WSDLConfig wsdlConfig,
boolean usingRawXml)
- C-tor for when you want to configure not from a SAWSDL file, but a configuration object.
- Parameters:
wsdlConfig
- the fully configured service defusingRawXml
- will the lowering schema mappings generate the XML (true, default), or just the named text values for auto-XML-wrapping by SourceMap (false)
WSDLService
public WSDLService()
init
public void init()
- Description copied from class:
MobyServlet
- If you override this method, be sure to call super.init()
- Overrides:
init
in class MobyServlet
processRequest
public void processRequest(MobyDataJob request,
MobyDataJob result)
throws Exception
- Description copied from class:
MobyServlet
- The real worker method: implementing classes must override this
method to do something useful. By default, nothing is done.
If a ServiceException is thrown in this method, it is copied verbatim into the
MOBY response. Any other exceptions thrown will be automatically wrapped
in a ServiceException of severity ERROR and type INTERNAL_PROCESSING_ERROR.
To add any other type of non-fatal error (e.g. a WARN), call addException() explicitly,
rather than throwing a Java Exception which stops the job's execution.
- Overrides:
processRequest
in class MobyServlet
- Parameters:
request
- the request to process, with params guaranteed to be of the type specified in the mobyService annotation, or values overriding the annjotation in a WAR file's WEB-INF/web.xml
- Throws:
Exception
createServiceFromConfig
public MobyService createServiceFromConfig(javax.servlet.http.HttpServletRequest request)
throws Exception
- Overrides:
createServiceFromConfig
in class LegacyService
- Throws:
Exception
createServiceFromConfig
public void createServiceFromConfig()
throws Exception
- Throws:
Exception
createInputSpecString
public String createInputSpecString(WSDLConfig wsdl)
- Specified by:
createInputSpecString
in class WrapperService<WSDLConfig>
createOutputSpecString
public String createOutputSpecString(WSDLConfig form)
- Specified by:
createOutputSpecString
in class WrapperService<WSDLConfig>
createSecondarySpecString
public String createSecondarySpecString(WSDLConfig form)
- Specified by:
createSecondarySpecString
in class WrapperService<WSDLConfig>
Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010