public class ERJaxWebServiceRequestHandler extends com.webobjects.appserver._private.WODirectActionRequestHandler
ERJaxWebServiceRequestHandler wsHandler = new ERJaxWebServiceRequestHandler()
registerRequestHandler(wsHandler, this.webServiceRequestHandlerKey());
To this ERJaxWebServiceRequestHandler you can bind single WebServices, for example:
wsHandler.registerWebService("TestWS", new ERJaxWebService<TestWSImpl>(TestWSImpl.class));
This binds the implementation "TestWSImpl" to the given service name.
This example can be called using this URL:
http://hostname/adapterpath/appname/ws/TestWSAppending the parameter "?wsdl" will return the full WSDL for this WebService.
| Modifier and Type | Field and Description |
|---|---|
protected NSMutableDictionary<java.lang.String,ERJaxWebService<? extends java.lang.Object>> |
registeredWebServices
a dictionary where all WebService registrations are kept
|
actionClassClass, actionClassName, CLASS_NOT_FOUND, defaultActionName, INSTANTIATION, INVALID_PATH, INVOCATION, shouldAddToStatisticsDidHandleRequestNotification| Constructor and Description |
|---|
ERJaxWebServiceRequestHandler() |
| Modifier and Type | Method and Description |
|---|---|
WOResponse |
handleRequest(WORequest aRequest) |
void |
registerWebService(java.lang.String serviceName,
ERJaxWebService<? extends java.lang.Object> webService)
Register a WebService implementation under a given service name
|
allowsContentInputStream, defaultActionClassName, generateErrorResponse, generateRequestRefusal, getRequestHandlerPathForRequest, handler, nullResponse, registerDidHandleActionRequestWithActionNamed, registerWillHandleActionRequest, setAllowsContentInputStream_actionClassForName, _handleRequest, _putComponentsToSleepInContext, defaultDefaultActionName, defaultShouldAddToStatistics, getActionInstance, getRequestActionClassAndNameForPath, isSessionIDInRequest, toStringprotected NSMutableDictionary<java.lang.String,ERJaxWebService<? extends java.lang.Object>> registeredWebServices
public void registerWebService(java.lang.String serviceName,
ERJaxWebService<? extends java.lang.Object> webService)
serviceName - the given servicename, a existing service for this name will be replacedwebService - the ERXJaxWebService object, holding the implementation for the referred servicepublic WOResponse handleRequest(WORequest aRequest)
handleRequest in class com.webobjects.appserver._private.WOActionRequestHandlerCopyright © 2002 – 2022 Project Wonder.