Solved

Notes 7: Need simple web service consume example

Posted on 2008-10-13
13
3,710 Views
Last Modified: 2013-12-18
Hi

I would like to consume a web service using Lotus Notes.  I have a web service in an external application which needs to be consumed.
I have read through the bulk of the answers on web services here and I get stuck at one or other step each time.
Please can you help me by giving me the most simple example which I can use? How would you explain to a person creating a web service for the first time...

Thanks
0
Comment
Question by:devguru001
  • 6
  • 4
  • 3
13 Comments
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 22701556
0
 

Author Comment

by:devguru001
ID: 22710720
Hi

I notice that all these examples use Java. I would like a simple Lotus Script example if anyone has one.
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 22710998
There is one that mentions LotusScript, I think. The 2nd one, about Free Time. Scroll down to the section "Calling the modified Web service from LotusScript using MSSOAP"
0
 

Author Comment

by:devguru001
ID: 22718829
Hi

I am spending hours reading through all this documentation as I have been doing, I would really appreciate a simple example if someone has one.
My request is specifically asking for a Simple Example as I, along with most other people which will refer to this thread in the future, would work well off something simple and less technical.  
I have also found another site which has a seemingly simple example which I am referring to now:
http://www.lotusgeek.com/LotusGeek/LotusGeekBlog.nsf/SearchResults?OpenNavigator&Query=working%20with%20VBA%20to%20build%20our%20Web%20Service%20client%20class.
0
 

Accepted Solution

by:
devguru001 earned 0 total points
ID: 22718928
Here is an example database of the most simple way that I have found yet. If you have a simpler way then please add it to this thread so that I can assign the points.
KISS-example.doc
0
 

Expert Comment

by:duizendstra
ID: 22725922
Consuming a web service in Lotus (R8) is pretty straightforward. Consuming the web services provided by Maconomy is not that easy, especially using Lotusscript.

What Client version are you using, and is Lotusscript a must? And for the Maconomy specific web service, did you check the documentation, some examples are available there.
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Comment

by:devguru001
ID: 22728267
Hi

Yes, I have read the Maconomy documentation and I have the WSDL available in Maconomy.  Maconomy seems like the easier of the two.
I am using Domino 7 and I would prefer lotus script as most people in my department use Lotus script and I would like to keep it simple for everyone to understand should they want to make use of it in the future.
0
 

Expert Comment

by:duizendstra
ID: 22728476
I have build a consumer for a Maconomy web service. The issue that I encountered is that Lotus (R8 in this case) cannot build the correct consumer out of the box. You might want to look at the capabilities of R8, a lot has changed regarding web services.

My conclusion was that you will have to build the consumer from scratch. This is quite a lot of work and you will need a good understanding of the web services. I decided to go another route and build the consumer using AXIS 1. If you use the example in the Maconomy documentation it is easy. Using Java in that case is a must though.

Mail me if you want to discuss this offline, it seems that we are working on the same thing..
0
 

Author Comment

by:devguru001
ID: 22729907
Well, it is rare to find a someone with Maconomy knowledge. I can however not see your email address. Notes 8 would be an awesome solution but we are not using it as yet. I am using the example which I posted attachment KISS-example.doc currently, take a look, it seems quite easy at first glance.. I am just struggling now with one or two parts of it.
0
 

Expert Comment

by:duizendstra
ID: 22730122
Indeed rare.. You can find me in Skype by the name duizendstra. Maybe we can compare notes...
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 22730253
Time to update your EE-profiles, guys!!  :-))
0
 

Author Comment

by:devguru001
ID: 22765942
Hello

The above quick and dirty example is just that. It does work but requires quite a lot before it can become a decent web service. Use it if you want to return simple types, I am currently trying to return complex types and I am stuck. Thanks duizendstra for your help thus far.
Can anyone tell me how to return my complex type in a manner that notes will understand?


- <complexType name="getEmployeeInfoResponseType">

- <all>

  <element minOccurs="1" maxOccurs="1" name="EmployeeNumber" type="xsd:string" /> 

  <element minOccurs="1" maxOccurs="1" name="Name1" type="xsd:string" /> 

  <element minOccurs="1" maxOccurs="1" name="Name2" type="xsd:string" /> 

  <element minOccurs="1" maxOccurs="1" name="Name3" type="xsd:string" /> 

  <element minOccurs="1" maxOccurs="1" name="Telephone" type="xsd:string" /> 

  <element minOccurs="1" maxOccurs="1" name="Country" type="xsd:string" /> 

  </all>

  </complexType>
 
 

Script part:

Public Function wsm_getEmployeeInfo(Byval str_employeeNo As String) As struct_getEmployeeInfoRespo

		Dim test As struct_getEmployeeInfoRespo

		On Error Goto wsm_getEmployeeInfoTrap

		Set wsm_getEmployeeInfo = New struct_getEmployeeInfoRespo

		Set wsm=sc_employee.getEmployeeInfo(str_employeeNo)
 
 

and the class - 
 

Public Class struct_getEmployeeInfoRespo

	Public EmployeeNumber As String

	Public Name1 As String

	Public Name2 As String

	Public Name3 As String

	Public Telephone As String

	Public Country As String

End Class

Open in new window

0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 22774176
Maybe there is no such thing as a "simple webservice consumer"? Or maybe what duizendstra came up with really IS the simplest example?

In any case, I'd say you can have this question closed when you post your solution. :-))
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now