Search code examples
javaweb-serviceslotus-dominodomino-designer-eclipse

"Name too long" error while creating webservice consumer in Domino Designer 8.5.2


I am trying to consume a third party webservice in Lotus Notes. While creating consumer, I am getting "Name too long" error for few variables. I know, there is limit of 40 characters in creating variable in Lotus Notes. While I am trying to create Java consumer, its not getting created.

When I am creating consumer using lotusscript, "name too long" error for the declarations,

Const some42CharcaterlongName$ = "SomeTest"
Const some42CharcaterlongName$ = "SomeTest"

There are 20 such variables. I went through some articles and I found that consuming in java will solve this problem. I tried creating consumer in java, Notes will process for some time and then it will stop working. No error but no consumer created.

Name too long error resolved -

As @Emmanuel said, I just downloaded the wsdl locally and replaced the long names with shorter names and recreated the consumer and that's it...resolved.

Running into another error - "Class or Type name not found"

Any help on this?


Solution

  • You need to save the wsdl on local. Edit it to make function names shorter. Mention that domino will concatenate the name and methods so you may have to shorten different "names".

    Save locally Recreate you consumer opening your edited version and it works.

    I reread the question and sorry you mentionned java, so please read Issues when importing WSDL files into Web Service Consumer.