Package com.webmethods.caf.wsclient
package com.webmethods.caf.wsclient
Framework for generic Web Service client for MWS and CAF
-
ClassDescriptionAuthentication information describing the user that is invoking the webservice.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 usedIMyWebService 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 cacheIMyWebService myWebService = (IMyWebService)WSClient.getProxy(IMyWebService.class, wsdlURL, endPointURL, false); Object results = myWebService.runWebService(myParams); Typical initialization would beWSClient.init(new WSClientConfig(); WSClient.setArtifactFactory( 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); 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 factoryGeneral exception for the WSClient library