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
|
| Constructor and Description |
|---|
ERJaxWebServiceRequestHandler() |
| Modifier and Type | Method and Description |
|---|---|
com.webobjects.appserver.WOResponse |
handleRequest(com.webobjects.appserver.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, setAllowsContentInputStreamprotected 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 com.webobjects.appserver.WOResponse handleRequest(com.webobjects.appserver.WORequest aRequest)
handleRequest in class com.webobjects.appserver._private.WOActionRequestHandlerCopyright © 2002 – 2020 Project Wonder.