我需要在 Remedy 中验证自己的身份。我正在关注文档,但仍然遇到一些错误。 https://communities.bmc.com/docs/DOC-17514
这是我的代码:
import com.bmc.arsys.api.ARException;
import com.bmc.arsys.api.ARServerUser;
public class Tutorial {
public static void main(String[] args) {
ARServerUser ctx = new ARServerUser();
ctx.setServer("127.0.0.1");
ctx.setUser("myusername");
ctx.setPassword("mypassword");
ctx.setPort(8080);
try {
ctx.verifyUser();
} catch (ARException e) {
System.out.println(e.getMessage());
}
}
}
我收到此错误:
ERROR (91): RPC call failed; 127.0.0.1:8080 can not receive ONC/RPC data
我该如何解决?我需要设置实例,例如127.0.0.1/arsys
. 我的 Remedy 实例是 arsys。
我可以使用浏览器进行身份验证:http://127.0.0.1:8080/arsys
提前致谢。