How to consume a Domino Web Services from Visual Studio under Security



Similar documents
Tutorial - How to Use Lotus Domino Web Services in Java Development

T320 E-business technologies: foundations and practice

Digital Signature Web Service Interface

Creating a User Profile for Outlook 2013

Web servers and WebSphere Portal

Usage of Evaluate Client Certificate with SSL support in Mediator and CentraSite

webcrm API Getting Started

R i o L i n x s u p p o r r i o l i n x. c o m 1 / 3 0 /

CONTRACT MODEL IPONZ DESIGN SERVICE VERSION 2. Author: Foster Moore Date: 20 September 2011 Document Version: 1.7

e-filing Secure Web Service User Manual

The presentation explains how to create and access the web services using the user interface. WebServices.ppt. Page 1 of 14

Author: Gennaro Frazzingaro Universidad Rey Juan Carlos campus de Mostòles (Madrid) GIA Grupo de Inteligencia Artificial

Using EMC Documentum with Adobe LiveCycle ES

Web services with WebSphere Studio: Deploy and publish

How to set up Outlook Anywhere on your home system

White Paper. Fabasoft Folio Thin Client Support. Fabasoft Folio 2015 Update Rollup 2

Using Microsoft Expression Web to Upload Your Site

ISTEC.MIP Measurement Data Integration Platform

CHAPTER 10: WEB SERVICES

Enabling Kerberos SSO in IBM Cognos Express on Windows Server 2008

Web Services API Developer Guide

NetSupport DNA Configuration of Microsoft SQL Server Express

Authentication and Single Sign On

Connecting Pentaho Suite applications with Microsoft SQL Server Analysis Services

Step- by- Step guide to Configure Single sign- on for HTTP requests using SPNEGO web authentication

Office of Court Administration Automated Registry (AR) Interface Design Document for DSHS - Clinical Management for Behavioral Health Services (CMBHS)

Using Web Services to exchange information via XML

WA2087 Programming Java SOAP and REST Web Services - WebSphere 8.0 / RAD 8.0. Student Labs. Web Age Solutions Inc.

SQL Server Setup for Assistant/Pro applications Compliance Information Systems

Installation for WEB Server Windows 2003

SQL Server Integration Services Using Visual Studio 2005

STUDY ON IMPROVING WEB SECURITY USING SAML TOKEN

Connecting to Manage Your MS SQL Database

Step-by-Step guide to setup an IBM WebSphere Portal and IBM Web Content Manager V8.5 Cluster From Zero to Hero (Part 2.)

BMC Remedy Integration Guide

Department of Veterans Affairs VistA Integration Adapter Release Enhancement Manual

Accessing the Media General SSL VPN

SAP BusinessObjects Query as a Web Service Designer SAP BusinessObjects Business Intelligence platform 4.0

In this topic we will cover the security functionality provided with SAP Business One.

Migrating helpdesk to a new server

Xtreeme Search Engine Studio Help Xtreeme

Introduction to Web services for RPG developers

Integrating with BarTender Integration Builder

ibolt V3.2 Release Notes

Dynamic DNS How-To Guide

ObserveIT Ticketing Integration Guide

WebSphere Business Monitor V7.0: Clustering Single cluster deployment environment pattern

IBM Support Assistant v5. Review and hands-on by Joseph

Installing Globodox Web Client on Windows 7 (64 bit)

WhatsUp Gold v16.2 MSP Edition Deployment Guide This guide provides information about installing and configuring WhatsUp Gold MSP Edition to central

Using IBM dashdb With IBM Embeddable Reporting Service

WebSphere MQ Oracle Enterprise Gateway Integration Guide

NetSupport DNA Configuration of Microsoft SQL Server Express

Module 13 Implementing Java EE Web Services with JAX-WS

How to open the ArchiveWeb Interface directly from MS Outlook

T320 E-business technologies: foundations and practice

WPF Viewer for Reporting Services 2008/2012 Getting Started

Iowa Immunization Registry Information System (IRIS) Web Services Data Exchange Setup. Version 1.1 Last Updated: April 14, 2014

Logi Ad Hoc Reporting Configuration for Load Balancing (Sticky Sessions)

The full setup includes the server itself, the server control panel, Firebird Database Server, and three sample applications with source code.

WEB SERVICES. Revised 9/29/2015

Getting started with OWASP WebGoat 4.0 and SOAPUI.

Administration Guide. . All right reserved. For more information about Specops Password Sync and other Specops products, visit

How To Create An Easybelle History Database On A Microsoft Powerbook (Windows)

Perceptive Connector for Infor Lawson AP Invoice Automation

Enterprise Content Management System Monitor. How to deploy the JMX monitor application in WebSphere ND clustered environments. Revision 1.

Configuring Devices for Use with Cisco Configuration Professional (CCP) 2.5

CROWNPEAK C# API SYSTEM CONFIGURATION GUIDE VERSION 3.0.1

Building and Using Web Services With JDeveloper 11g

Print Manager Plus 2010 How to Migrate your Database to a New SQL or Print Server

IBM InfoSphere MDM Server v9.0. Version: Demo. Page <<1/11>>

Deploying Microsoft Operations Manager with the BIG-IP system and icontrol

Lytecube Technologies. EnCircle Automation. User Guide

Cognos Event Studio. Deliver By : Amit Sharma Presented By : Amit Sharma

Configuring IBM HTTP Server as a Reverse Proxy Server for SAS 9.3 Web Applications Deployed on IBM WebSphere Application Server

Cloud Services ADM. Agent Deployment Guide

Creating SOAP and REST Services and Web Clients with Ensemble

Web Services Description Language (WSDL) Wanasanan Thongsongkrit

Exam Name: IBM InfoSphere MDM Server v9.0

Application Development With Data Studio

How to setup FTP and Secure FTP for XD Series

FTP Use. Internal NPS FTP site instructions using Internet Explorer:

Lotus Foundations Start Getting Started

Chapter 4 Accessing Data

Address Phone & Fax Internet

Transaction Monitoring Version for AIX, Linux, and Windows. Reference IBM

Lotus Domino Security

Web Services Development using Top-down Design

Configuration Guide - OneDesk to SalesForce Connector

Download and Installation of MS SQL Server

Walkthrough: Creating and Using an ASP.NET Web Service in Visual Web Developer

Creating XML Report Web Services

USING MYWEBSQL FIGURE 1: FIRST AUTHENTICATION LAYER (ENTER YOUR REGULAR SIMMONS USERNAME AND PASSWORD)

Reference and Troubleshooting: FTP, IIS, and Firewall Information

How-to: Single Sign-On

WebsitePanel Installation Guide

Transcription:

How to consume a Domino Web Services from Visual Studio under Security

Summary Authors... 2 Abstract... 2 Web Services... 3 Write a Visual Basic Consumer... 5 Authors Andrea Fontana IBM Champion for WebSphere DevloperWorks Contributor Author Can be contact at: a.fontana@net2action.com Abstract In this article I want explain how we can develop a Web Services Consumer, using Microsoft Visual Studio Environment, and securing it using icredential authentication mechanism.

Web Services A Web service is an archive of remote operations that can be called by sending messages over the Internet. A Web service provider publishes a Web service for query and use, and a Web service consumer calls operations from the service. A Web service provider makes available a WSDL (Web Services Description Language) document that defines the service interface. The WSDL document is in XML format. What happens behind the interface is up to the provider, but most providers map the interface to procedure calls in a supported programming language. Incoming requests from a consumer are passed through to the underlying code, and results are passed back to the consumer. Lotus Domino maps the WSDL interface to an agent-like Web service design element that can be coded in LotusScript or Java. To be used, the Web service must be on a Domino server with HTTP enabled. (We can test the Web service through an HTTP session in the Notes client preview.) Access is through one of the following Domino URL commands:?openwebservice invokes the Web service in response to a SOAP-encoded message sent through an HTTP POST. An HTTP GET (for example, a browser query) returns the name of the service and its operations.?wsdl returns the WSDL document in response to an HTTP GET. Let's take a simple example. In our sample my Web Services expose following function

And this is part of my WSDL <?xml version="1.0" encoding="utf-8"?> - <definitions targetnamespace="urn:webservices.n2a.com" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="urn:webservices.n2a.com" xmlns:intf="urn:webservices.n2a.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/xmlschema"> - <wsdl:types> - <schema targetnamespace="urn:webservices.n2a.com" xmlns="http://www.w3.org/2001/xmlschema"> <element name="getversionreturn" type="xsd:string" /> <element name="getusernamereturn" type="xsd:string" /> <element name="key" type="xsd:string" /> <element name="requestedfields" type="xsd:string" /> <element name="viewname" type="xsd:string" /> <element name="servername" type="xsd:string" /> <element name="replicaid" type="xsd:string" /> <element name="filepath" type="xsd:string" /> - <complextype name="apachesoap_maparray"> - <sequence> <element maxoccurs="unbounded" minoccurs="0" name="item" type="apachesoap:map" /> </sequence> </complextype> <element name="getalldocumentsbykeyreturn" type="impl:apachesoap_maparray" /> <element name="getdocumentbyunidreturn" type="apachesoap:map" /> <element name="getdocumentbykeyreturn" type="apachesoap:map" /> </schema> - <schema targetnamespace="http://xml.apache.org/xml-soap" xmlns="http://www.w3.org/2001/xml- Schema"> - <complextype name="mapitem"> - <sequence> <element name="key" nillable="true" type="xsd:string" /> <element name="value" nillable="true" type="xsd:string" /> </sequence> </complextype> Now I set ACL to Anonymous NoAccess, and to consume Web Services we must authenticate over SOAP protocol.

Write a Visual Basic Consumer In our sample we develop a sample Console Application to consume WebServices. Open you develop environment and create a new project as Console Application Add Web Reference from Project Menu select Add Service Reference Then select Advanced And select Add Web Reference

In next windows insert URL of your WDSL for sample When you receive list of Methods you can click on Add Reference. Now we have all Reference need to develop our application. In Our sample we have set ACL to no permit anonymous access, and we must extend some parameter to execute authentication in silent mode over SOAP protocol. Basically all the client needs to do is create an authentication object, fill out the username and password, then pass them to the web service object. In my Sample I define following Object Dim usercredential As New Net.NetworkCredential Dim myservice As New ConsoleApplication1.GetDomino.GetDominoServices Dim uri As New Uri(myService.Url) Dim icred As Net.ICredentials usercredential is used to store Username and Password myservice is reference for our domino Web Services uri is used to get Authentication method of services icred is used to make authentication Initialize my object with following values usercredential.password = "passw0rd" usercredential.username = "sadmin" icred = usercredential.getcredential(uri, "basic")

myservice.preauthenticate = True myservice.credentials = icred The PreAuthenticate property indicates whether to send authentication information with the initial HTTP request to the XML Web service. Now I call Web Services and in my case my DB have one view called Main and I get name of company by key Console.WriteLine("my Web Service version is: " & myservice.getversion) Console.WriteLine("my current User is : " & myservice.getusername) answer = myservice.getdocumentbykey("000001", "companyname", "main", "", "", "") Company = DirectCast(answer(0), ConsoleApplication1.GetDomino.mapItem).value The final result is: