URL dispatchUrl = new URL(this.dispatchPath);
// 初始化contentService
ContentManagerService_ServiceLocator cmServiceLocator =
new ContentManagerService_ServiceLocator();
this.contentManagerService = cmServiceLocator.getcontentManagerService(dispatchUrl);
this.contentManagerService.logon(
buildXml4Logon(namespace,username, password),
new SearchPathSingleObject[] {}
);
// 生成passport字符串
SOAPHeaderElement headerElement = ((Stub) this.contentManagerService)
.getResponseHeader(
\"http://developer.cognos.com/schemas/bibus/3/\",
\"biBusHeader\"
);
this.passport = BIBusHeaderHelper.getHeaderObject(headerElement)
.getCAM()
.getCAMPassport()
.getId();
this.initiated = true;
return this.passport;
收起