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<String,ERJaxWebService<? extends Object>> |
registeredWebServices
a dictionary where all WebService registrations are kept
|
actionClassClass, actionClassName, CLASS_NOT_FOUND, defaultActionName, INSTANTIATION, INVALID_PATH, INVOCATION, shouldAddToStatistics
DidHandleRequestNotification
Constructor and Description |
---|
ERJaxWebServiceRequestHandler() |
Modifier and Type | Method and Description |
---|---|
WOResponse |
handleRequest(WORequest aRequest) |
void |
registerWebService(String serviceName,
ERJaxWebService<? extends 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, toString
protected NSMutableDictionary<String,ERJaxWebService<? extends Object>> registeredWebServices
public void registerWebService(String serviceName, ERJaxWebService<? extends 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.WOActionRequestHandler
Copyright © 2002 – 2024 Project Wonder.