com.resilientedge.jockey.webservicebridge
Class ApacheWebServiceProvider
java.lang.Object
|
+--com.resilientedge.jockey.webservicebridge.AbstractWebServiceProvider
|
+--com.resilientedge.jockey.webservicebridge.ApacheWebServiceProvider
- All Implemented Interfaces:
- WebServiceProvider
- public class ApacheWebServiceProvider
- extends AbstractWebServiceProvider
Functionality to use Apache SOAP as a Web service provider,
takes SBAPI calls and maps them to/from Apache
- Author:
- AVaughan
Method Summary |
protected void |
createDescriptorsForServices(java.lang.String[] serviceNames)
createDescriptorsForServices reads all of the
services on an apache soap web server and creates SBServiceDescriptors
(which Jockey understands) for them. |
SBServiceCall |
invoke(SBServiceCall serviceCall,
SBAbstractServiceInstance serviceInstance)
Invokes a method on a web service |
void |
loadAllServices()
load all the services that are published on this web server. |
static void |
main(java.lang.String[] args)
|
protected org.apache.soap.rpc.Parameter |
makeWebServerCall(java.lang.String serviceUrn,
java.lang.String methodName,
java.util.Vector params)
makes a web server call using apache soap... |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApacheWebServiceProvider
public ApacheWebServiceProvider()
loadAllServices
public void loadAllServices()
- load all the services that are published on this web server. stores
them in the form of SBAPI Service Descriptors.
- Overrides:
loadAllServices
in class AbstractWebServiceProvider
- Following copied from class:
com.resilientedge.jockey.webservicebridge.AbstractWebServiceProvider
- See Also:
setServicesLoaded
invoke
public SBServiceCall invoke(SBServiceCall serviceCall,
SBAbstractServiceInstance serviceInstance)
- Invokes a method on a web service
- Overrides:
invoke
in class AbstractWebServiceProvider
- Parameters:
serviceCall
- a SBServiceCall
to makeserviceInstance
- a SBAbstractServiceInstance
to
invoke the call on.- Returns:
- a
SBServiceCall
with the Response value set
to the return result of the call
createDescriptorsForServices
protected void createDescriptorsForServices(java.lang.String[] serviceNames)
createDescriptorsForServices
reads all of the
services on an apache soap web server and creates SBServiceDescriptors
(which Jockey understands) for them. So it translates Apache
service to Jockey WebServices
- Overrides:
createDescriptorsForServices
in class AbstractWebServiceProvider
- Parameters:
serviceNames
- a String[]
value- See Also:
SBServiceDescriptor
makeWebServerCall
protected org.apache.soap.rpc.Parameter makeWebServerCall(java.lang.String serviceUrn,
java.lang.String methodName,
java.util.Vector params)
- makes a web server call using apache soap...
Describe
makeWebServerCall
method here.
- Parameters:
serviceUrn
- a String
value of the urn for this
service.methodName
- a String
value of the method to call
this method must be a published web service.params
- a Vector
value of Parameters to pass
into the call- Returns:
- a
Parameter
value result, which is null if
the method returns null
main
public static void main(java.lang.String[] args)
Copyright © 2001 Resilient Edge, Inc. All Rights Reserved.