Solution Found! LotusScript: "name too long"

For anyone interested. Sometimes you just don’t see the things staring you in the face!

When creating the Web Service Consumer, you can create either in LotusScript or Java. Select Java to solve problem.

Notes 8.5.1 Windows Vista, Domino 8.5.1 linux.

I am trying to consume a public web service:

http://api.viapost.com/viapostcustomer.asmx?WSDL

After importing the WSDL into the Web Service Consumer design element, the lotusscript editor will not compile as some variable names are too long, e.g.

“(Declarations): 49: Name too long: UploadConsolidatedPDFResponse_xmlRes_n1_Holder”.

which corresponds to:

Class UploadConsolidatedPDFResponse_xmlRes_n1_Holder AS INOUT_HOLDER

Public Value As UploadConsolidatedPDFResponse_xmlRes_n1

End Class

I am attempting to see if I can change variable names to a shorter length, and checking to see if any functions are longer than 40 chars, but this looks like I could make many, many errors, if it would even work. As long as I don’t change any function names in the PortTypeBase, am I OK?

I am not restricted in java with variable\ function name lengths, as far as I am aware, should I go down this route?

The “Web Service Consumer” design element is brilliant in principal, I have tested with some simple services no problem, but the 2 web services I have tried to use for “real” can not be imported:

one because the web service is SOAP 1.2

http://www-10.lotus.com/ldd/nd85forum.nsf/DateAllThreadedWeb/c68d994dd3393c6e852576b70058196d?OpenDocument

and this because of variable\ function lengths.

Any advice would be greatly appreciated.

Regards,

Nick