<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to use different tickets for different users in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-different-tickets-for-different-users/m-p/44548#M24566</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am also interrested by this solution. But sorry, I can't really help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For testing only, I modified the Alfresco webservices client to be able to create several instances, but it's not a good solution for production…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Nov 2006 10:50:00 GMT</pubDate>
    <dc:creator>sam69</dc:creator>
    <dc:date>2006-11-07T10:50:00Z</dc:date>
    <item>
      <title>How to use different tickets for different users</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-different-tickets-for-different-users/m-p/44546#M24564</link>
      <description>Hi,I'm doing a Portlet using Alfresco WebServices.My problem is that at the moment im using AuthenticationUtils.startSession(login,password);‍and RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService(); ‍But that is a singleton, so all my users use same ticket.N</description>
      <pubDate>Mon, 16 Oct 2006 16:29:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-use-different-tickets-for-different-users/m-p/44546#M24564</guid>
      <dc:creator>ribz33</dc:creator>
      <dc:date>2006-10-16T16:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to use different tickets for different users</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-different-tickets-for-different-users/m-p/44547#M24565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i have found this on wss4j doc but i dont succeed to implement it…&amp;nbsp; &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Application sets parameters to insert in&lt;BR /&gt;&lt;BR /&gt;Sometimes 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.&lt;BR /&gt;&lt;BR /&gt;The following code snippet shows an example how to use the dynamic setting of parameters and their values:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; …&lt;BR /&gt; Service service = new Service();&lt;BR /&gt; Call call = (Call) service.createCall();&lt;BR /&gt;&amp;nbsp;&amp;nbsp; …&amp;nbsp; &lt;BR /&gt; call.setProperty(UsernameToken.PASSWORD_TYPE, WSConstants.PASSWORD_TEXT);&lt;BR /&gt; call.setProperty(WSHandlerConstants.USER, "werner");&lt;BR /&gt;&amp;nbsp;&amp;nbsp; …&lt;BR /&gt;&lt;BR /&gt;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:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; …&lt;BR /&gt; PingServiceLocator service = new PingServiceLocator();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; …&lt;BR /&gt; PingPort port = (PingPort) service.getPing1();&lt;BR /&gt; port._setProperty(UsernameToken.PASSWORD_TYPE, WSConstants.PASSWORD_TEXT);&lt;BR /&gt; port._setProperty(WSHandlerConstants.USER, "werner");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; …&lt;BR /&gt;&lt;BR /&gt;Please note that _setProperty is a Axis specific call.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;see &lt;/SPAN&gt;&lt;A href="http://ws.apache.org/wss4j/package.html" rel="nofollow noopener noreferrer"&gt;http://ws.apache.org/wss4j/package.html&lt;/A&gt;&lt;SPAN&gt; for more information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had seen on WSHandlerConstants API, that :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It is also possible to set the user's name and the according password via the call function, for example:&lt;BR /&gt;&lt;BR /&gt; …&lt;BR /&gt; call.setUsername("name");&lt;BR /&gt; call.setPassword("WSS4Java");&lt;BR /&gt; …&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;to get call i had try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();&lt;BR /&gt;repositoryService._getCall() …&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;but like that call is null and if i do "createcall" its not working also&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I dont have more idea !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if someone have a solution, its welcome &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bst rgrds&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2006 14:05:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-use-different-tickets-for-different-users/m-p/44547#M24565</guid>
      <dc:creator>ribz33</dc:creator>
      <dc:date>2006-10-17T14:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use different tickets for different users</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-use-different-tickets-for-different-users/m-p/44548#M24566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am also interrested by this solution. But sorry, I can't really help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For testing only, I modified the Alfresco webservices client to be able to create several instances, but it's not a good solution for production…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 10:50:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-use-different-tickets-for-different-users/m-p/44548#M24566</guid>
      <dc:creator>sam69</dc:creator>
      <dc:date>2006-11-07T10:50:00Z</dc:date>
    </item>
  </channel>
</rss>

