<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>lekkimworld.comweb_service</title>
    <link>http://lekkimworld.com/tags/web_service/</link>
    <description>IBM Lotus Notes/Domino, Websphere, IBM Connections, mobile, web, JavaScript, Java...</description>
    <language>en</language>
    <copyright>Mikkel Flindt Heisterberg (mh [at] intravision [dot] dk</copyright>
    <pubDate>Sat, 19 May 2012 06:50:25 GMT</pubDate>
    <dc:creator>Mikkel Flindt Heisterberg (mh [at] intravision [dot] dk</dc:creator>
    <dc:date>2012-05-19T06:50:25Z</dc:date>
    <dc:language>en</dc:language>
    <dc:rights>Mikkel Flindt Heisterberg (mh [at] intravision [dot] dk</dc:rights>
    <image>
      <title>lekkimworld.comweb_service</title>
      <url>http://lekkimworld.com/tags/web_service/</url>
    </image>
    <item>
      <title>Exporting DXL for databases with Java web services</title>
      <link>http://lekkimworld.com/2007/09/21/exporting_dxl_for_databases_with_java_web_services.html</link>
      <content:encoded>&lt;p&gt;
Today I needed to export a &lt;strike&gt;database&lt;/strike&gt; application containing a web service written in Java as DXL. How stupid of me to think that I could do this with only Notes.jar on my build path... Doing such an export will make your code throw java.lang.ClassNotFoundExceptions unless you have the following libraries on your build path:
&lt;ul&gt;
&lt;li&gt;jvm/lib/ext/notes.jar (not much surprise there)&lt;/li&gt;
&lt;li&gt;jvm/lib/ext/websvc.jar (due to missing lotus.domino.websvc.client.Service)&lt;/li&gt;
&lt;li&gt;jvm/lib/ext/mail.jar (due to missing java.mail.Multipart from lotus.domino.ws.ServiceContext)&lt;/li&gt;
&lt;li&gt;jvm/lib/ext/jsdk.jar (due to missing javax.servlet.http.HttpServlet)&lt;/li&gt;
&lt;li&gt;jvm/lib/xml.jar (due to missing org.apache.xerces.parsers.SAXParser)&lt;/li&gt;
&lt;/ul&gt;
The above was found by diagnosing and reading ClassNotFoundExceptions in Eclipse at runtime since ClassNotFoundException is a runtime exception.
&lt;/p&gt;
&lt;p&gt;
Now back to exporting...
&lt;/p&gt;</content:encoded>
      <category domain="http://lekkimworld.com/categories/java/">Java</category>
      <category domain="http://lekkimworld.com/tags/dxl/">dxl</category>
      <category domain="http://lekkimworld.com/tags/java/">java</category>
      <category domain="http://lekkimworld.com/tags/web_service/">web_service</category>
      <pubDate>Fri, 21 Sep 2007 15:56:00 GMT</pubDate>
      <guid isPermaLink="false">tag:lekkimworld.com,2007-09-21:default/1190390160000</guid>
      <dc:date>2007-09-21T15:56:00Z</dc:date>
    </item>
    <item>
      <title>Discovering Notes 8: Web service enabled script libraries</title>
      <link>http://lekkimworld.com/2007/09/19/discovering_notes_8_web_service_enabled_script_libraries.html</link>
      <content:encoded>&lt;p&gt;
&lt;img src="http://lekkimworld.com/images/notes8/notes8_100px.jpg" style="float: left; "/&gt;
In a recent edition of the LotusUsergroup.org newsletter &lt;a href="http://www.nsftools.com/blog"&gt;Julian&lt;/a&gt; listed some of the new AppDev features of Notes 8. Among them were the new web service enabled script libraries. 
&lt;/p&gt;
&lt;p&gt;
Basically what you do is simply pointing a script library to a WSDL file and some stub code is automatically generated for you. Then when you use the script library from agents etc. the methods you call will automatically be forwarded to the actual web service without you worrying about SOAP, HTTP etc. It actually is that easy! 
&lt;/p&gt;
&lt;p&gt;
To test it out I found an example of a public stock quote web service (&lt;a href="http://www.webservicex.net/stockquote.asmx?WSDL"&gt;http://www.webservicex.net/stockquote.asmx?WSDL&lt;/a&gt;) and used that for an example.
&lt;/p&gt;
&lt;p&gt;
Start by creating a new empty LotusScript script library. Now click the "WSDL..." button at the bottom of Domino Designer and simply select "Import WSDL". Now paste the above URL into the filename field and click Open (it's really nice that you can actually simply paste the WSDL URL into the dialog instead of first saving the WSDL to a local file). Now your script library should look like this:
&lt;pre style="border: dotted black 1px; padding: 5px;"&gt;
%INCLUDE "lsxsd.lss"
Const n4 = "http://www.webserviceX.NET/"
Class StockQuoteSoap_n4 As PortTypeBase
  
  Sub NEW
    Call Service.Initialize ("HttpWwwWebserviceXNETStockQuote", _
    "StockQuote.StockQuoteSoap", _
    "http://www.webservicex.net/stockquote.asmx", _
    "StockQuoteSoap_n4")
    
  End Sub
  
  Function GetQuote(symbol As XSD_STRING) As XSD_STRING
    Set GetQuote = Service.Invoke("GetQuote", symbol)
  End Function
  
End Class
&lt;/pre&gt;
Now save the script library and call it "Stock quote". 
&lt;/p&gt;
&lt;p&gt;
Create a LotusScript agent and in Options import the script library (Use "Stock quote"). Now we want to call the script library which is done using code like this:
&lt;pre style="border: dotted black 1px; padding: 5px;"&gt;
Sub Initialize
  Dim ws As New NotesUIWorkspace
  Dim sq As New StockQuoteSoap_n4()
  Dim symbol As String
  Dim symbols(2) As String
  symbols(0) = "IBM"
  symbols(1) = "JAVA"
  symbols(2) = "AAPL"
  symbol = ws.Prompt(4, "Stock symbol", _
    "Select stock for quote...", "", symbols)
  If symbol = "" Then
    Exit Sub
  Else
    Print "Using symbol: " + symbol
  End If
  
  Dim sh As New XSD_STRING()
  Call sh.setValueFromString(symbol)
  Set sh = sq.GetQuote(sh)
  Msgbox sh.getValueAsString()
End Sub
&lt;/pre&gt;
Now when you run the agent and you select a stock symbol it will actually automatically go out to the web service, get the quote and return it to the caller. All this with the code I just showed you. Nice!
&lt;/p&gt;
&lt;p&gt;
Stand by for a post on the nitty, gritty details...
&lt;/p&gt;</content:encoded>
      <category domain="http://lekkimworld.com/categories/ls/">LotusScript</category>
      <category domain="http://lekkimworld.com/categories/ibm_products/">IBM</category>
      <category domain="http://lekkimworld.com/tags/discovering_notes8/">discovering_notes8</category>
      <category domain="http://lekkimworld.com/tags/lotusscript/">lotusscript</category>
      <category domain="http://lekkimworld.com/tags/notes8/">notes8</category>
      <category domain="http://lekkimworld.com/tags/web_service/">web_service</category>
      <pubDate>Wed, 19 Sep 2007 07:28:53 GMT</pubDate>
      <guid isPermaLink="false">tag:lekkimworld.com,2007-09-19:default/1190186933640</guid>
      <dc:date>2007-09-19T07:28:53Z</dc:date>
    </item>
    <item>
      <title>Regarding the Domino 7 freetime  webservice</title>
      <link>http://lekkimworld.com/2007/05/07/regarding_the_domino_7_freetime_webservice.html</link>
      <content:encoded>&lt;p&gt;
On 24 September 2005 I blogged about a freetime web service for Domino 7 (&lt;a href="http://lekkimworld.com/2005/09/24/freetime_webservice.html"&gt;Freetime WebService&lt;/a&gt;) which was available for download from Passport Advantage. Now (17 April 2007) there is an article on developerWorks (&lt;a href="http://www-128.ibm.com/developerworks/lotus/library/domino7-free-time/index.html?ca=drs-"&gt;Using and modifying the IBM Lotus Domino V7 Free Time Web service&lt;/a&gt;) on how to use it. It appears you have to install a server task as well.
&lt;/p&gt;
&lt;p&gt;
And guess what - the article uses &lt;a href="http://www.openntf.org/Projects/pmt.nsf/ProjectLookup/Stubby"&gt;Stubby&lt;/a&gt; by &lt;a href="http://www.nsftools.com/blog"&gt;Julian&lt;/a&gt;...
&lt;/p&gt;</content:encoded>
      <category domain="http://lekkimworld.com/categories/ibm_products/">IBM</category>
      <category domain="http://lekkimworld.com/tags/busytime/">busytime</category>
      <category domain="http://lekkimworld.com/tags/domino7/">domino7</category>
      <category domain="http://lekkimworld.com/tags/freetime/">freetime</category>
      <category domain="http://lekkimworld.com/tags/web_service/">web_service</category>
      <pubDate>Mon, 07 May 2007 18:11:08 GMT</pubDate>
      <guid isPermaLink="false">tag:lekkimworld.com,2007-05-07:default/1178561468332</guid>
      <dc:date>2007-05-07T18:11:08Z</dc:date>
    </item>
  </channel>
</rss>


