As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
AuthenticationUtils.startSession(login,password);
RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();
Application sets parameters to insert inSometimes it is not feasable or not possible to determine parameters and their values during deployment. In this case the application can set paramters during runtime. The WSS4J Axis handlers use the Axis setProperty method to support this feature.The following code snippet shows an example how to use the dynamic setting of parameters and their values: … Service service = new Service(); Call call = (Call) service.createCall(); … call.setProperty(UsernameToken.PASSWORD_TYPE, WSConstants.PASSWORD_TEXT); call.setProperty(WSHandlerConstants.USER, "werner"); …Use this way if your application dynamically creates a call object. If your application uses stubs generated by Axis' WSDL2Java tool, the application uses the following functions: … PingServiceLocator service = new PingServiceLocator(); … PingPort port = (PingPort) service.getPing1(); port._setProperty(UsernameToken.PASSWORD_TYPE, WSConstants.PASSWORD_TEXT); port._setProperty(WSHandlerConstants.USER, "werner"); …Please note that _setProperty is a Axis specific call.
It is also possible to set the user's name and the according password via the call function, for example: … call.setUsername("name"); call.setPassword("WSS4Java"); …
RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService(); repositoryService._getCall() …