Advertisement
DrupalCustom

ClassCall

Jul 13th, 2012
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.23 KB | None | 0 0
  1. package com.atlassian.lionbridge;
  2.  
  3. import org.tempuri.FreewayAuthLocator;
  4. import org.tempuri.FreewayAuthSoap;
  5.  
  6. import com.atlassian.confluence.core.ConfluenceActionSupport;
  7. import com.atlassian.confluence.pages.AbstractPage;
  8. import com.atlassian.confluence.pages.actions.PageAware;
  9. import com.opensymphony.xwork.Action;
  10.  
  11. /**
  12.  * The simplest action possible
  13.  */
  14. public class FreewayProjectAction extends ConfluenceActionSupport
  15. {
  16.     @Override
  17.     public String execute() throws Exception
  18.     {
  19.         String logonResult = "";
  20.         try {
  21.        
  22.         System.out.println("This is in execute>>");
  23.         FreewayAuthLocator freewayAuth = new FreewayAuthLocator();                     
  24.         FreewayAuthSoap freewayAuthSoap = freewayAuth.getFreewayAuthSoap();
  25.         logonResult = freewayAuthSoap.logon("freeway.username", "freeway.password");
  26.         System.out.println("LogonResult >> " + logonResult);
  27.      
  28.         }
  29.         catch (javax.xml.rpc.ServiceException ex) {
  30.             // TODO handle ServiceException
  31.             ex.printStackTrace();
  32.         } catch (java.rmi.RemoteException ex) {
  33.             // TODO handle remote exception
  34.             ex.printStackTrace();
  35.         } catch (Exception ex) {
  36.             // TODO handle custom exceptions here
  37.             ex.printStackTrace();
  38.         }
  39.           return Action.SUCCESS;
  40.     }
  41.  
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement