1、 准备soa_client.zip,在下载的tc安装包里面(安装后的目录里面没有),下载需要西门子GTAC账号密码信息,可以找实施人员索取。
2、 soa_client\java\libs下即是soa开发所需的所有jar;soa_client\java\samples下即是示例工程,平时所有可参考HelloTeamcenter工程。
3、 直接新建Java工程MySoaProject,拷贝HelloTeamcenter工程的src到MySoaProject的src,将jar包引入。
4、打开hello

=====================================================
我给AppXSession类加了个重载方法
public User login(String user,String pw)
{
// Get the service stub
SessionService sessionService = SessionService.getService(connection);
try
{
// Prompt for credentials until they are right, or until user
// cancels
String[] credentials = credentialManager.promptForCredentials(user,pw);
while (true)
{
try
{
// *****************************
// E


1145

被折叠的 条评论
为什么被折叠?



