Personal tools
Integration between Webservices and XPages: a true story!

Xpages & Webservices

Dec 04, 2013

Integration between Webservices and XPages: a true story!

In this article I'm going to tell you about an experience I had having to make a webservice consumer based on SOAP 1.2, and some issues (still unresolved) I encountered

The goal

I have to create a webservice consumer in Lotus Domino using the WSDL provided.

What's the problem? I can use the native wizard provided by Lotus.

First problem

It looks like my WSDL is SOAP1.2. Domino is SOAP1.1. (aaarrrrggggghhhhh)


First solution

I could generate the classes for example in Eclipse and embed in Notes. Then I could call it using an agent. Ok, let's try it!

Second problem

It sounds good, everything seems to work fine but... out of memory error... when I stress the agent.

Maybe an agent isn't a good choice...

Second solution

Let's try to embed generated classes inside WEBContent/WEB-INF/src, deploy all jars needed in jvm/lib/ext on server and call classes through an Xpages:

Goal achieved!!!!!!!!!!!!!!!!!!?

This time seems to be the right solution, "out of memory" is avoided.

It's also very fast.. I can deploy on production!

Are you sure??

Yes, I am! And I'm very happy too!

I only need to make a little change in java class under WebContent (hide a debug line left there), directly on production server. Done!

Save it, rebuild project and... BOOOOOOOM!

at org.apache.commons.discovery.jdk.JDK12Hooks.getResources(
at org.apache.commons.discovery.resource.DiscoverResources$1.getNextResources(
at org.apache.commons.discovery.resource.DiscoverResources$1.getNextResource(
at org.apache.commons.discovery.resource.DiscoverResources$1.hasNext(
at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getNextClassNames(
at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getNextClassName(
at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.hasNext(
at org.apache.commons.discovery.resource.names.NameDiscoverers$1.getNextIterator(
at org.apache.commons.discovery.resource.names.NameDiscoverers$1.hasNext(
at org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImpl$1.getNextResource(
at org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImpl$1.hasNext(
at org.apache.axis.configuration.EngineConfigurationFactoryFinder$
at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(
at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(
at org.apache.axis.client.Service.getEngineConfiguration(
at org.apache.axis.client.Service.getAxisClient(
at org.apache.axis.client.Service.(


Solution found?

Not yet, unfortunately! :-(

I've tried a lot of solutions suggested over the web, without success.

The only workaround is that, every time I make a change on these class, I need to restart HTTP Task.

It seems to be a problem related to Lotus Domino Version.

In fact, on my staging server this problem doesn't exists (Release 8.5.1FP5 on Linux distribution), but exists under 8.5.3 on Windows, and also on Linux for 8.5.3FP1.

I've post this problem in several places:

At the end...

Feel free to tell me what you think about it!

Please, let me know if someone have experienced the same problem, or if there is another solution to cover this scenario.

Stay tuned!

comments powered by Disqus