I am using a business objects API that is a web service and has axis as dependency. it works fine with 1.1 version, but with 1.3 gives an error. The code is as follows:
public void initWSConnection()
{
try{
String biCatalogURL = "http://" + super.getServerHostName() + ":" + PORT_NUMBER + BI_CATALOG_DIRECTORY ;
URL boConURL = new URL(biCatalogURL);
boConnection = new Connection(boConURL);
boSession = new Session(boConnection);
EnterpriseCredential boCredential = new EnterpriseCredential();
boCredential.setLogin(this.getUnvDesktopUsername() );
boCredential.setPassword(this.getUnvDesktopPasswor d());
boCredential.setDomain(this.getUnvDesktopPassword( ));
SessionInfo boSI = boSession.login(boCredential);
}catch(Exception e){
logger.log(Level.WARNING,"unable to establish session",e);
e.printStackTrace();
}
}
and the error is :
WARNING: unable to establish session
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString:
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}exceptionName:com.businessobjects.dsws.DSWSExcept ion
{http://xml.apache.org/axis/}stackTrace:
at com.businessobjects.dsws.Consumer.createDSWSExcept ion(Unknown Source)
at com.businessobjects.dsws.Consumer.propagateAsDSWSE xception(Unknown Source)
at com.businessobjects.dsws.Consumer.<init>(Unk nown Source)
at com.businessobjects.dsws.session.Session.<init& gt;(Unknown Source)
at com.dag.mc.biz.activelinx.emf.snapshot.boxireporti ng.BoxiReportingConnectionHelper.initWSConnection( BoxiReportingConnectionHelper.java:181)
at com.dag.mc.biz.activelinx.emf.snapshot.boxireporti ng.BoxiReportingConnectionHelper.initAllServerConn ections(BoxiReportingConnectionHelper.java:142)
at com.dag.mc.biz.activelinx.emf.snapshot.boxireporti ng.BoxiReportingEmfMapper.startup(BoxiReportingEmf Mapper.java:103)
at com.dag.mc.biz.activelinx.emf.snapshot.DefaultEmfM apper.createResource(DefaultEmfMapper.java:170)
at com.dag.mc.biz.autorun.BoxiReportingSnapshotComman d.execute(BoxiReportingSnapshotCommand.java:77)
at com.dag.mc.biz.autorun.AutoRun.handleCommand(AutoR un.java:287)
at com.dag.mc.biz.autorun.AutoRun.main(AutoRun.java:1 67)
{http://xml.apache.org/axis/}hostname:xyz
at com.businessobjects.dsws.Consumer.createDSWSExcept ion(Unknown Source)
at com.businessobjects.dsws.Consumer.propagateAsDSWSE xception(Unknown Source)
at com.businessobjects.dsws.Consumer.<init>(Unknown Source)
at com.businessobjects.dsws.session.Session.<init>(Un known Source)
at com.dag.mc.biz.activelinx.emf.snapshot.boxireporti ng.BoxiReportingConnectionHelper.initWSConnection( BoxiReportingConnectionHelper.java:181)
at com.dag.mc.biz.activelinx.emf.snapshot.boxireporti ng.BoxiReportingConnectionHelper.initAllServerConn ections(BoxiReportingConnectionHelper.java:142)
at com.dag.mc.biz.activelinx.emf.snapshot.boxireporti ng.BoxiReportingEmfMapper.startup(BoxiReportingEmf Mapper.java:103)
at com.dag.mc.biz.activelinx.emf.snapshot.DefaultEmfM apper.createResource(DefaultEmfMapper.java:170)
at com.dag.mc.biz.autorun.BoxiReportingSnapshotComman d.execute(BoxiReportingSnapshotCommand.java:77)
at com.dag.mc.biz.autorun.AutoRun.handleCommand(AutoR un.java:287)
at com.dag.mc.biz.autorun.AutoRun.main(AutoRun.java:1 67)
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString:
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}exceptionName:com.businessobjects.dsws.DSWSExcept ion
{http://xml.apache.org/axis/}stackTrace:
at com.businessobjects.dsws.Consumer.createDSWSExcept ion(Unknown Source)
at com.businessobjects.dsws.Consumer.propagateAsDSWSE xception(Unknown Source)
at com.businessobjects.dsws.Consumer.<init>(Unk nown Source)
at com.businessobjects.dsws.session.Session.<init& gt;(Unknown Source)
at com.dag.mc.biz.activelinx.emf.snapshot.boxireporti ng.BoxiReportingConnectionHelper.initWSConnection( BoxiReportingConnectionHelper.java:181)
at com.dag.mc.biz.activelinx.emf.snapshot.boxireporti ng.BoxiReportingConnectionHelper.initAllServerConn ections(BoxiReportingConnectionHelper.java:142)
at com.dag.mc.biz.activelinx.emf.snapshot.boxireporti ng.BoxiReportingEmfMapper.startup(BoxiReportingEmf Mapper.java:103)
at com.dag.mc.biz.activelinx.emf.snapshot.DefaultEmfM apper.createResource(DefaultEmfMapper.java:170)
at com.dag.mc.biz.autorun.BoxiReportingSnapshotComman d.execute(BoxiReportingSnapshotCommand.java:77)
at com.dag.mc.biz.autorun.AutoRun.handleCommand(AutoR un.java:287)
at com.dag.mc.biz.autorun.AutoRun.main(AutoRun.java:1 67)
{http://xml.apache.org/axis/}hostname:xyz
at com.businessobjects.dsws.Consumer.createDSWSExcept ion(Unknown Source)
at com.businessobjects.dsws.Consumer.propagateAsDSWSE xception(Unknown Source)
at com.businessobjects.dsws.Consumer.<init>(Unknown Source)
at com.businessobjects.dsws.session.Session.<init>(Un known Source)
at com.dag.mc.biz.activelinx.emf.snapshot.boxireporti ng.BoxiReportingConnectionHelper.initWSConnection( BoxiReportingConnectionHelper.java:181)
at com.dag.mc.biz.activelinx.emf.snapshot.boxireporti ng.BoxiReportingConnectionHelper.initAllServerConn ections(BoxiReportingConnectionHelper.java:142)
at com.dag.mc.biz.activelinx.emf.snapshot.boxireporti ng.BoxiReportingEmfMapper.startup(BoxiReportingEmf Mapper.java:103)
at com.dag.mc.biz.activelinx.emf.snapshot.DefaultEmfM apper.createResource(DefaultEmfMapper.java:170)
at com.dag.mc.biz.autorun.BoxiReportingSnapshotComman d.execute(BoxiReportingSnapshotCommand.java:77)
at com.dag.mc.biz.autorun.AutoRun.handleCommand(AutoR un.java:287)
at com.dag.mc.biz.autorun.AutoRun.main(AutoRun.java:1 67)
I am not sure if this is an issue with axis and can be solved by configuring the relevant files w.r.t axis properly, or it is a business objects issue. Please advise.
Thanks,