Package com.webmethods.caf.wsclient

Framework for generic Web Service client for MWS and CAF

See:
          Description

Class Summary
AuthCredentials Authentication information describing the user that is invoking the webservice.
WSClient WSClient is the singleton where you perform the following: 1) Initialize the Library and set any custom params 2) Register custom IWSProxyFactories 3) Register your logging / error callback implementations 3) Obtain the runtime interfaces to your target webservices
Typical usage might be where the cache is used, sessions are reused, and the system user is used IMyWebService myWebService = (IMyWebService)WSClient.getProxy(IMyWebService.class, wsdlURL, endPointURL); Object results = myWebService.runWebService(myParams); In this instance, the sessions are resused and the system user is used, but dont' use the cache IMyWebService myWebService = (IMyWebService)WSClient.getProxy(IMyWebService.class, wsdlURL, endPointURL, false); Object results = myWebService.runWebService(myParams); Typical initialization would be WSClient.init(new WSClientConfig(); WSClient.setArtifactFactory(<yourArtifactFactory>); For SAML authenicated invocations, an IArtifactFactory and security service endpoint are required WSClientConfig config = new WSClientConfig(); config.setArtifactFactory(factory); config.setSamlSecurityEndpoint(getSecurityProviderEndpoint()); config.setAuthCredentials(new AuthCredentials(true)); WSClient.init(config);
WSClientConfig A container for configuration options for a WSClient instance, these options include: Initial cache timout of the factory's caches Initial cache size of the factory's caches The default socket timeout The default basic auth credentials The saml artifact factory
 

Exception Summary
WSClientException General exception for the WSClient library
 

Package com.webmethods.caf.wsclient Description

Framework for generic Web Service client for MWS and CAF