Module 6 Practical part: Creation of X-Road dataservice and client based on WSDL (on Java platform) Name Date.

Slides:



Advertisements
Similar presentations
MIT Lincoln Laboratory A Service-Oriented Approach to Application Development Robert Darneille & Gary Schorer WPI MQP Presentations ICS Group 10 October.
Advertisements

WebDFS Budget Amendment and Personnel Processing.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
JSP and Servlets Lecture notes by Theodoros Anagnostopoulos.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
Grid Computing, B. Wilkinson, 20043b.1 Web Services Part II.
Web Based Inventory Site Building Room Asset Number Category Type Description Serial Number Manufacturer Model Vendor Name Acquired Date P O Number Budget.
ICP Kit 2011 HHC Data Entry Module The World Bank ICP Kit Training African Development Bank.
 The BPEL Module project is a group of source files which includes BPEL files, WSDL files, and XML schema files. Within a BPEL Module project, you can.
1. Insert the Resource CD into your CD-ROM drive, click Start and choose Run. In the field that appears, enter F:\XXX\Setup.exe (if “F” is the letter of.
Unit 1: Java and Eclipse The Eclipse Development Environment.
Liferay Installation Prepared by: Do Xuan Hai 8 August 2011.
6 th Annual Focus Users’ Conference 6 th Annual Focus Users’ Conference Import Testing Data Presented by: Adrian Ruiz Presented by: Adrian Ruiz.
Chapter 5 Introduction To Form Builder. Lesson A Objectives  Display Forms Builder forms in a Web browser  Use a data block form to view, insert, update,
1 G52IWS: Example Web-services Chris Greenhalgh. 2 Contents Software requirements AXIS web service run-time components Getting started with Jetty & AXIS.
IllinoisJobLink.com Training Video Creating a Resume Copyright © 2015, America’s Job Link Alliance–Technical Support (AJLA–TS) All rights reserved. This.
DEVELOPING WEB SERVICES WITH JAVA DESIGN WEB SERVICE ENDPOINT.
Joomla Awdhesh Kumar Singsys Pte Ltd. What is Joomla? Joomla is an award-winning content management system (CMS), which enables you to build Web sites.
Solvency II Tripartite template V2 and V3 Presentation of the conversion tools proposed by FundsXML France.
Downloading and Installing GRASP-AF Workshop Ian Robson Information Analyst, North of England Cardiovascular Network.
J-guar Customization Tool Devanshu Bawa Customization Specialist SOLUTION PARTNERS TRAINING 2016.
SchoolSuccess for Coordinators
Training for developers of X-Road interfaces
Applicant Profile® G.A.T.E.® Test Administration Training UPS MAPP.
Labs: Create, deploy and test a simple web service
Practical part: Testing X-Road dataservice
Verification of Study Online
Module 6 Practical part: Creation of X-Road dataservice and client based on WSDL (.NET platform) Name Date.
JavaScript, Sixth Edition
Practical part: Creation of WSDL file of X-Road dataservice
Data Virtualization Tutorial… SSL with CIS Web Data Sources
The eclipse IDE IDE = “Integrated Development Environment”
Training for developers of X-Road interfaces
Running a Forms Developer Application
Getting Started with... Business Partner Express
Recruiter 2.0 Overview May 1, 2012.
Training for developers of X-Road interfaces
WikID installation/training
WSP quality assurance tool
Obtaining the Required Tools
Web Programming Developing Web Applications including Servlets, and Web Services using NetBeans 6.5 with GlassFish.V3.
Chapter 5 Remote Procedure Call
Writing simple Java Web Services using Eclipse
Data Virtualization Tutorial… CORS and CIS
Data Virtualization Tutorial… OAuth Example using Google Sheets
Training for developers of X-Road interfaces
Frequency Finder 1 Installing, Start page, Home page
Administrator Training
1. Press the Power button or switch to flip on the printer, if it is turn off. 2. From the Home display screen on the product control panel, click the.
Domain Matching for BID Association Requests
Unit 27 - Web Server Scripting
Introduction of X-Road knowledge materials
(Includes setup) FAQ ON DOCUMENTS (Includes setup)
Some Tips for Using Eclipse
Post 16 Return SEPTEMBER 2012.
Lesson Four: Building Custom Patient Lists
Training for developers of X-Road interfaces
What’s New in Universal Access for ADP Workforce Now
To the ETS – Encumbrance Online Training Course
Online Training Course
Maria Kohtla Andmevahetusplatvorm X-tee
Training for developers of X-Road interfaces
How to Look up a CVR.
Overview of Contract Association Batch Upload
Product Training RMA Where “Lean” principles are considered common sense and are implemented with a passion! ©2008 TTW.
Java IDE Dwight Deugo Nesa Matic Portions of the notes for this lecture include excerpts from.
To the ETS – Encumbrance Online Training Course
(Includes setup) FAQ ON DOCUMENTS (Includes setup)
Review of Previous Lesson
Security - Forms Authentication
Presentation transcript:

Module 6 Practical part: Creation of X-Road dataservice and client based on WSDL (on Java platform) Name Date

Creation of X-Road dataservice For creating an X-Road dataservice, we use Eclipse web service creation wizard, which generates a server source code for the X-Road dataservice. We activate the web service creation wizard: Select a WSDL file (example: person_register.wsdl) Select in the menu: File -> New -> Web Service Click ‘Next>’ Käesolevas peatükis loome eelnevalt valmistatud X-tee andmeteenuse WSDL-kirjelduse baasil uue X-tee andmeteenuse ja testime X-tee teenust erinevate vahenditega. Kasutatav meetod: “Top Down“ - ehk olemasoleva WSDL-i baasil genereerime Java koodi, mida hiljem saab käsitsi muuta vastavalt vajadusele.

In the following form: Change: ‘Web service runtime’ value: Apache CXF 2.x Click ‘Next’

If necessary, change ‘Package Name’ so that it would match Java rules (the name generated automatically from namespace may not be suitable, in which case a relevant error message is displayed) Click: Next

Change the default values. Tick the following check boxes: ‘Enable processing of Implicit SOAP headers’ ‘Enable auto name resolution’ Select: Finish

Check the generated dataservice A new dataservice is generated. To make sure it has happened, check whether: the source code of the service has been generated in the src folder; a new Java package has been created, e.g.: ee.x_road.persons_register (name depends on WSDL); check the dataservice endpoint and WSDL: The generated service has been activated and responds at the address: http://localhost:8080/person_register/services For validating the dataservice, enter the mentioned address into the browser; information of the created dataservice is displayed: endpoint address of the dataservice WSDL address of the dataservice (link to WSDL) Check whether the WSDL address of the dataservice is displayed when clicking on the WSDL link e.g.: http://localhost:8080/person_register/services/person_registerSOAP?wsdl This WSDL address is later used for the setup of the service in the X-Road security server and testing through SoapUI.

Adaptation of generated X-Road dataservice code X-Road header fields X-Road dataservice must return the same X-Road header field values in response. To realise this, change the file <PersonRegister>Impl.java, method: <personList> (NB! Instead of <PersonRegister> and <personList>, each developer has their own name based on WSDL used when creating the dataservice.) The following code lines may be added for copying the header fields:             // X-road: request SOAP headers must be copied to response             protocolVersion1.value = protocolVersion;             client1.value = client;             userId1.value = userId;             id1.value = id;             service1.value = service; From the same file, remove the generated code which fills response header fields with generated data (when changing the file, example is provided in the sample file PersonRegisterImpl.java).

Data of request response The generated X-Road dataservice returns constant generated data in a request response In real life, generated data must be removed from the code and relevant database request must be used for obtaining the data For testing, data generated in the response may also be used or the data can be changed manually

Creation of X-Road Java client application Creation of a Java client application: Create a new project in Eclipse, as described in clause 5.1, only with another project name. Copy the created WSDL file from the previous project also to the new project Activate web service wizard: Select the WSDL file and select in the menu: Web Services -> Generate Client:

Change: ‘Web service runtime’ value: Apache CXF 2.x Click: ‘Next’

If necessary, change ‘Package Name’ so that it would match Java rules (a name generated automatically from namespace may not be suitable, in which case a relevant error message is displayed) Click: Next

Muuda vaikimisi väärtused, märkides ära järgmised märkeruudud: „Enable processing of Implicit SOAP headers“ „Enable auto name resolution“ Vali: Finish

Java code of dataservice client was generated. Now check whether: the generated code is located in the src folder sample challenge of service is implemented in main() method of <PersonRegister_PersonRegister>SOAP_Client.java file, where PersonRegister is replaced by the name of a specific dataservice depending on WSDL. Data objects initialised with the generated data are created for challenging the service. Activation of service client programme: Select file *SOAP_Client.java Select in the menu: Run as / Java Application Check the programme output in the console

Testing Java client through X-Road security server Adapt *SOAP_Client.java generated code, making the content of the X-Road header fields accurate with the generated data (as in previous testing with SoapUI program) if necessary, see the sample file PersonRegister_PersonRegisterSOAP_Client.java

Thank You! First name Surname firstname.surname@amet.ee The training materials for developers of X-Road interfaces have been compiled with funding from the structural funds support scheme “Raising Public Awareness about the Information Society” of the European Regional Development Fund.