Quantcast
Channel: PTC Community : Unanswered Discussions - Windchill
Viewing all articles
Browse latest Browse all 3592

wt.util.WTRemoteException: Unable to invoke remote method;

$
0
0

Who can help me to solve this problem, my code is:

 

public class Test {

 

 

  /**

  * @param args

  */

  public static void main(String[] args) throws Exception {

  URL url= new URL("http://whichen-ws01.cisco.com/Windchill");

  RemoteMethodServer rms=RemoteMethodServer.getInstance(url);

  rms.setUserName("wcadmin");

  rms.setPassword("wcadmin");

  System.out.println("login succeed!");

 

  Class argTypes[]={String.class, String.class, String.class, String.class};

  Object argValues[]={

  "Whichen_demo_name2",

  "Whichen_demo_number2",

  "Whichen_demo_file2",

  "C:\temp\rule.xml"

  };


//accessing the method of a utility class which is in windchill codebase directory

  rms.invoke("createDoc", "com.cisco.whichen.DocManager", null, argTypes, argValues);

  System.out.println("Succeeded!");

 

  }

 

}

 

My local host file is:

127.0.0.1 localhost whichen-ws01.cisco.com # whichen-ws01

 

Looking forward to your kindly help.


Viewing all articles
Browse latest Browse all 3592

Trending Articles