Skip to Content
Former Member
Jun 23, 2015 at 09:00 AM

Need help on Integration Directory API


Hi All,

I am trying to create ID objects by Using NWDS by using the code as mentioned in below link ( Integration Directory API).…

But while executing the program in NWDS i am getting the below error.

Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -6

at java.lang.String.substring(

at java.lang.String.substring(

I have tracked the error. Exactly i am getting the error in below code:

// get port

BusinessSystemIn systemComp = service.getBusinessSystemInPort(); ( Note: NWDS is not allowinggetBusinessSystemInPort() instead of this i am using getBusinessSystemIn_Port())

// setup context and authorization

this.setupContext(( systemComp,

DirectoryApiConfiguration.getUserid(), DirectoryApiConfiguration.getPassword());

String addressTailWithHostAndPort = endpointAddress.substring(endPointPrefix.length());

All these three steps are interlinked.

Could you please check it once and let me know your suggestions where i am doing mistake or where i have to change?