Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.atlassian.lionbridge;
- import org.tempuri.FreewayAuthLocator;
- import org.tempuri.FreewayAuthSoap;
- import com.atlassian.confluence.core.ConfluenceActionSupport;
- import com.atlassian.confluence.pages.AbstractPage;
- import com.atlassian.confluence.pages.actions.PageAware;
- import com.opensymphony.xwork.Action;
- /**
- * The simplest action possible
- */
- public class FreewayProjectAction extends ConfluenceActionSupport
- {
- @Override
- public String execute() throws Exception
- {
- String logonResult = "";
- try {
- System.out.println("This is in execute>>");
- FreewayAuthLocator freewayAuth = new FreewayAuthLocator();
- FreewayAuthSoap freewayAuthSoap = freewayAuth.getFreewayAuthSoap();
- logonResult = freewayAuthSoap.logon("freeway.username", "freeway.password");
- System.out.println("LogonResult >> " + logonResult);
- }
- catch (javax.xml.rpc.ServiceException ex) {
- // TODO handle ServiceException
- ex.printStackTrace();
- } catch (java.rmi.RemoteException ex) {
- // TODO handle remote exception
- ex.printStackTrace();
- } catch (Exception ex) {
- // TODO handle custom exceptions here
- ex.printStackTrace();
- }
- return Action.SUCCESS;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement