title: Call web service consumer in Domino XPage to populate field
body: <p>I have created a java web service consumer in domino designer 8.5.3 that calls a WS operation with a string parameter and gets a string response.</p>
  
  <p>Now i want to create an XPage with 1 edit box, 1 computed field and 1 button. On button click i want to run server side javascript that uses my WS consumer (gets input from box and shows response in computed field).</p>
  
  <p>At first, is it possible to call WS via XPages? Is there any tested solution?</p>
  
  <p>I ve tried :</p>
  
  <ol>
  <li><p><a href="http://www-10.lotus.com/ldd/ddwiki.nsf/dx/reuse_web_services_xpage.htm" rel="nofollow">http://www-10.lotus.com/ldd/ddwiki.nsf/dx/reuse_web_services_xpage.htm</a>  i got:-> Cannot find class org.apache.commons.discovery.tools.DiscoverSingleton in NSF</p></li>
  <li><p>i copied java source of consumer into Java code folder. then i created my own class that does the call, and from SSJS i called my class' method. i got:->  lotus.domino.axis.ConfigurationException: No engine configuration file - aborting!</p></li>
  <li><p><a href="http://openntf.org/XSnippets.nsf/snippet.xsp?id=call-webservice-from-java-ssjs-xpages" rel="nofollow">http://openntf.org/XSnippets.nsf/snippet.xsp?id=call-webservice-from-java-ssjs-xpages</a> i got:-> printed null output variable in console</p></li>
  </ol>
  
  <p>P.S: i was able to call and get result using Java agent, i was also able to create a Notes form and populate a computed field using lotusscript consumer.</p>
  
  <p>What i want now is: Use a java consumer from XPage to set field value from WS.</p>