WEB SERVICES TECHNICAL GUIDE FOR DEVELOPERS

Similar documents
See the Developer s Getting Started Guide for an introduction to My Docs Online Secure File Delivery and how to use it programmatically.

Directories Web Services

Web Services API Developer Guide

Using ilove SharePoint Web Services Workflow Action

Brekeke PBX Version 3 Web Service Developer s Guide Brekeke Software, Inc.

CHAPTER 10: WEB SERVICES

Overview of Web Services API

Consuming a Web Service(SOAP and RESTful) in Java. Cheat Sheet For Consuming Services in Java

2009 Tutorial (DB4O and Visual Studio 2008 Express)

Brekeke PBX Web Service

Amazon Glacier. Developer Guide API Version

1. Please login to the Own Web Now Support Portal ( with your address and a password.

Amazon Fulfillment Web Service. Getting Started Guide Version 1.1

TARGETPROCESS WEB SERVICES GUIDE

JDBC. It is connected by the Native Module of dependent form of h/w like.dll or.so. ex) OCI driver for local connection to Oracle

How To Use Blackberry Web Services On A Blackberry Device

DIPLOMA IN WEBDEVELOPMENT

SINGLE SIGNON FUNCTIONALITY IN HATS USING MICROSOFT SHAREPOINT PORTAL

Advanced Object Oriented Database access using PDO. Marcus Börger

SIP Trunk Configuration for Broadvox

Qualtrics Single Sign-On Specification

Residence Life & Housing Student Staff Employment Application Guide

Java Access to Oracle CRM On Demand. By: Joerg Wallmueller Melbourne, Australia

Quick Reference Guide PAYMENT GATEWAY (Virtual Terminal)

OTN Developer Day: Oracle Big Data. Hands On Lab Manual. Introduction to Oracle NoSQL Database

Sage 100 ERP. ebusiness Web Services Installation and Reference Guide

AP Computer Science Static Methods, Strings, User Input

Policies and Procedures for creating and maintaining a site


MSDG Services Integration Document Draft Ver 1.2

Install Java Development Kit (JDK) 1.8

Bank and SecurePay Response Codes

HOBOlink Web Services V2 Developer s Guide

Sophos Mobile Control Web service guide

PHP Language Binding Guide For The Connection Cloud Web Services

Tableau Server Trusted Authentication

Manage cloud infrastructures using Zend Framework

Setting up the integration between Oracle Social Engagement & Monitoring Cloud Service and Oracle RightNow Cloud Service

Quartz.Net Scheduler in Depth

Save Actions User Guide

Building a Multi-Threaded Web Server

Web Services in.net (1)

Onset Computer Corporation

ObserveIT Ticketing Integration Guide

Hello World RESTful web service tutorial

Problem Set 2 Due: 6pm Friday, February 23

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

WIRIS quizzes web services Getting started with PHP and Java

Tableau Server Trusted Authentication

Propiedades del esquema del Documento XML de envío:

Automatic transfer of funds

How to Get Set Up for the 2014 BE-180 and Request an Extension if Needed

Kittys School Management System

Getting Started with Telerik Data Access. Contents

Step 2. You will see an interface as shown in the diagram below. Please insert your Help Desk username and password.

Index. 1 System Requirements 2. 2 System Login Account Information Order Change Password Keep Connection 15

LACMTA Regional Integration of Intelligent Transportation Systems (RIITS)

Adding An Audio Profile To An Adobe Connect Account

Implementing a Web Service Client using Java

PAYLINE USER GUIDE LOGGING INTO PAYLINE PROCESSING A PURCHASE

ResellerPlus - Bulk Http API Specification. (This Document gives details on how to send messages via the Bulk HTTP API for the RouteSms SMPP System)

FileMaker Server 13. Custom Web Publishing with PHP

SpiraTest / SpiraTeam Automated Unit Testing Integration & User Guide Inflectra Corporation

FTP, IIS, and Firewall Reference and Troubleshooting

Implementing SQI via SOAP Web-Services

INTRODUCTION: SQL SERVER ACCESS / LOGIN ACCOUNT INFO:

Classes: Relationships Among Objects. Atul Prakash Background readings: Chapters 8-11 (Downey)

i2b2 Cell Messaging Project Management (PM) Cell

How to Register for Training

Example for Using the PrestaShop Web Service : CRUD

SharePoint Integration

Introduction to Object-Oriented Programming

Installation and Configuration Manual

IntelliPay Billpay Application Documentation

ObserveIT Service Desk Integration Guide

Web Development using PHP (WD_PHP) Duration 1.5 months

IBM Rational Rapid Developer Components & Web Services

A detailed walk through a CAS authentication

IRF2000 IWL3000 SRC1000 Application Note - Apps with OSGi - Condition Monitoring with WWH push

CHAPTER 13: INTEGRATION OPTIONS

Using the Dashboard Screen Manager v1.0. This guide provides information about setting up and using the Dashboard Screen Manager.

How To Create A Simple Module in Magento 2.0. A publication of

SIP Trunk Configuration for nexvortex

VoIPon Tel: +44 (0) Fax: +44 (0)

Web development... the server side (of the force)

Integrating Web Services and Natural Objects Using EntireX

Module 13 Implementing Java EE Web Services with JAX-WS

Graduate Assessment Test (Sample)

EMBASSY Remote Administration Server (ERAS) Helpdesk Guide. ERAS Version 2.8 Document Version

ACCREDITATION COUNCIL FOR PHARMACY EDUCATION. CPE Monitor. Technical Specifications

AP Computer Science Java Subset

matsimj An Overview of the new MATSim Implementation in Java Marcel Rieser VSP, TU Berlin

DIPLOMADO DE JAVA - OCA

Integration of Hotel Property Management Systems (HPMS) with Global Internet Reservation Systems

An Introduction to Developing ez Publish Extensions

Selector, Multi Selector, and Item Display

How To Develop A Mobile Application On Sybase Unwired Platform

Feith Dashboard iq Server Version 8.1 Install Guide

Transcription:

WEB SERVICES TECHNICAL GUIDE FOR DEVELOPERS

1. Introduction This Technical Manual considers a development project that need to integrate with the Web Services Central Bank of Chile provides, to obtain data (observations) of the series of daily, monthly, quarterly and annual frequencies that are available through this technology. You should consider that the source codes examples are written in c# and PHP languages, however to take these examples to java or other languages should be no problem for a developer. To start using this Web Service our company must request a login through the form found at http://si3.bcentral.cl/estadisticas/web_services/webservices/registro.pdf The url for the Web Services WSDL (Web Service Description Language) is https://si3.bcentral.cl/sietews/sietews.asmx?wsdl Please review the following website: http://si3.bcentral.cl/estadisticas/web_services/index_en.htm for more information 2. Web service reference and data collection The code and sample application below is built using visual studio 2008 and c# languages. In the next chapter the code for both c# to PHP is provided. Both perform the same operations, except that c# solution runs as a console application and PHP solution runs as a web page. For development in PHP steps 3.1 and 3.2 can be omitted.

2.1 Creation of application To create an application you must have a.net project solution. In this example a console application will be used.

2.2 Add reference to web service With the created application, you must add a reference to the web service available on https://si3.bcentral.cl/sietews/sietews.asmx?wsdl route. Once visual studio finish adding references and create the necessary classes, they can be used from the console application. For this example purposes the reference is created with the name BancoCentral. 2.3 Get available series For the series available SearchSeries method is provided, which takes three parameters. These parameters are: user: username given by the bank to access the system password: user password frequencycode: filter results to only those series that have that frequency

Valid FrecuencyCode are listed below: DAILY MONTHLY QUARTERLY ANNUAL The following figure shows the block of code needed to get the data series with the selected frequency (MONTHLY for example). Running this code displays the following list of series. In addition to the id of the series and the name in Spanish, information on the dates of observations for each series are also obtained.

2.4 Obtaining the observations for one or more series For the observations for one or more series GetSeries method is provided, which receives five parameters. These parameters are: user: username given by the bank to access the system password: user password firstdate : filter observations from a start date. The parameter is optional. The format should be YYYY MM DD lastdate : filter observations to an end date. The parameter is optional. The format should be YYYY-MM DD seriesids : filter the series of which the observations are to be obtained. The parameter is required. For example, if you want to get the observations for the first series of the list above, use the followind seriesid: "F073.IE5.IND.198601.M". If you want to get all observations for year 2007, call the web service as shown in the code below.

The code shows a foreach and nested foreach cycle. This is necessary because the GetSeries method allows you to select multiple timeseries in seriesids parameter. The first foreach cycles every timeseries and the second nested foreach cycles on every timeseries observations. There is a maximum allowable series which can be obtained simultanously. If you request more timeseries than allowed, a message will be returned in the response indicating that the maximum amount allowed was exceeded.

The returning result is displayed below, whith the date of observation, one per month since it is a monthly timeseries, and the value of the observation for each period.

2.5 Error Handling As seen in the example above, if you are requesting more timeseries than allowed an error will be returned. The response contains two properties that indicate the success or failure of the execution. These properties are Code and Description. In case of success, the values will be zero and will return an empty string respectively. This can be seen in the following image.

3. Application code As mentioned in the previous chapter, the following code blocks fulfill similar functionality, although the execution environments are different. 3.1 C# console application code. using System; using ConsolaDemo.BancoCentral; namespace ConsolaDemo class Program static void Main(string[] args) string user = "<INGRESE_USUARIO>"; string pass = "<INGRESE_CLAVE>"; string frecuencycode = "MONTHLY"; using (SieteWS SieteWS = new SieteWS()) Respuesta respuesta = SieteWS.SearchSeries(user, pass, frecuencycode); foreach (internetseriesinfo seriesinfo in respuesta.seriesinfos) Console.WriteLine(seriesInfo.seriesId + " : " + seriesinfo.spanishtitle); Console.ReadKey(); string[] seriesids = new string[] "F073.IE5.IND.198601.M" ; string firstdate = "2007-01-01"; string lastdate = "2007-12-31"; using (SieteWS SieteWS = new SieteWS()) Respuesta respuesta = SieteWS.GetSeries(user, pass, firstdate, lastdate, seriesids); foreach (fameseries serie in respuesta.series) foreach (obs observacion in serie.obs) Console.WriteLine(observacion.indexDateString + " : " + observacion.value); Console.ReadKey();

3.2 Php Web page code <? $user = '<INGRESE_USUARIO>'; $password='<ingrese_clave>'; $frequencycode ='MONTHLY'; $wsdl="<direccion_sitio_web>?wsdl"; $client = new soapclient($wsdl); $params = new stdclass; $params->user = $user; $params->password = $password; $params->frequencycode = $frequencycode; $result = $client->searchseries($params)->searchseriesresult; foreach ($result->seriesinfos->internetseriesinfo as $serie) echo $serie->seriesid. " : ". $serie->spanishtitle. "<br/>"; $seriesids = array ("F073.IE5.IND.198601.M"); $firstdate = "2007-01-01"; $lastdate = "2007-12-31"; $client = new soapclient($wsdl); $params = new stdclass; $params->user = $user; $params->password = $password; $params->firstdate = $firstdate; $params->lastdate = $lastdate; $params->seriesids = $seriesids; $result = $client->getseries($params)->getseriesresult; $fameseries =$result->series->fameseries; //Cuando se solicita una sola serie, la respuesta no es interpretada como un arreglo if (is_array($fameseries )!= 1) $fameseries = array($fameseries); foreach ($fameseries as $seriefame) echo $seriefame->serieskey->seriesid. " : ". $seriefame->precision. "<br/>"; foreach ($seriefame->obs as $obs) echo $obs->indexdatestring. " : ". $obs->value. "<br/>";?>