Corel Smart Graphics Studio. Creating a sample XML file

Similar documents
Ver Install Guide. Ver. 4.3 Install Guide

Tutorial: Working with layout

MODEL 528 SERIES DIGITAL COMMUNICATION STATION TABLE OF CONTENTS. Sec tion 1, Soft ware setup Sec tion 2, Hard ware setup...

Les s on Topics. Les s on Objectives. Student Files Us ed

SM15K - Interface modules

Navigating T hrough a W ork book

DIACOM. MEFI-5 CAN Soft ware Up date Quick Start Guide. Rinda Technologies Inc. for Win dows 98, XP and Version 1.5 EFI DI AG NOS TIC SOFT WARE

Transport Drive Kit Installation Guide

Lesson 1 Getting S tarted w ith W ord 2 003

Introduction. Opening and Closing Databases. Access 2010 Managing Databases and Objects. Video: Working with Databases in Access 2010

In this topic: Extrac t Style. Inline Style Extract Layout Inline Layout Refactoring

Publisher 2000 Creating a Calendar The Academic Computing Services

Transport Pro FireWire and USB 2.0 Portable Hard Drive Kit

How to configure the Matlab interface

Using File Cabinet In OwlNet

COMPUTER BASICS. Operating System

Executive MOBEX Telephone User Guide Series

Configure Eclipse - Part 2 - Settings and XML

Introduction. Mail Merge. Word 2010 Using Mail Merge. Video: Using Mail Merge in Word To Use Mail Merge: Page 1

Windows XP Embedded Hands-On Lab

Table of Contents. Knowledge Center -

PST for Outlook Admin Guide

Downloading & Installing Audacity

Moving a File (Event-Based)

508 SERIES MICROPHONE STATIONS

Windmill 750 Manual. Windmill Software Limited

BDM Hyperion Workspace Basics

PLL52C Pen tium/sdram Clock Gen er ator with In te grated Buff ers FEATURES PIN INFORMATION. FREQUENCY SELECTION (MHz) I/O MODE CONFIGURATION

Wireless devices supports in a simple environment

Click the buttons in the interactive below to learn more about using Mail view in Outlook 2010.

CREATING A CUSTOM SMART TITLE BLOCK Vectorworks tutorial by Andy Broomell, updated

BP1SL (Switch able Be tween Cir cuit A or Cir cuit B) Por ta ble Head set Sta tion

INTEGRATED MICROSTEPPING MOTOR DRIVER AND HIGH PERFORMANCE MACHINE/PROCESS CONTROLLER

Desktop Publishing Curriculum Mapping

EPiSERVER Content Management System

DB2 for z/os Stored Procedure support in Data Server Manager

Organize Mail into Folders

Building an Application to Dynamically Execute Partner Process Flows

Mail Merge. To Use Mail Merge: Selecting Step by Step Mail Merge Wizard. Step 1:

trackframe Tools: trackman

Smooks Developer Tools Reference Guide. Version: GA

TOP SERVER V5 CLIENT CONNECTIVITY ROCKWELL FACTORYTALK VIEW STUDIO. Table of Contents

Sherlock Tutorial Getting Started

FrontPage Help Center. Topic: FrontPage Basics

WORD PRO CESS ING (MS-WORD) ( The ory ) (327) Can di date must write his/her Roll Num ber on the first page of the question paper.

Web Ad Image Portal. User Manual

Developing an ADF 11g client for Agile PLM. Developing an ADF 11g client for Agile PLM

(12) Patent Application Publication (10) Pub. No.: US 2010/ A1

Creating a Web Service that Accesses Data from Two Data Objects

Adobe Encore DVD Tutorial:

CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2005

Workspace Desktop Edition Deployment Guide. Installing The Workspace SIP Endpoint

Secure Mobile Access Module

CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2003

Workspace ONE UEM Certificate Authority Integration with JCCH. VMware Workspace ONE UEM 1810

Accessing Diagnostic Service Documentation for Non-Beckman Coulter Users

(54) DISPLAY OF USER INTERFACE ELEMENTS (52) US. Cl. BASED ON TOUCH OR HARDWARE INPUT USPC /800; 715/764; 715/810; 715/788

HTML Mashups A mashup that embeds an HTML or JavaScript based Web page directly on a screen.

Extracting and Storing PDF Form Data Into a Repository

Content Matrix. Evaluation Guide. February 12,

JBoss SOAP Web Services User Guide. Version: M5

Learning More About NetObjects Matrix Builder 1

Session 10 MS Word. Mail Merge

Virto SharePoint Forms Designer for Office 365. Installation and User Guide

CST8152 Compilers Creating a C Language Console Project with Microsoft Visual Studio.Net 2010

Manage and Generate Reports

Sage 500 ERP Business Intelligence

Air Gap AntiVirus Guide Version 8.5 Update 2

rht+ RHTPlus CalComm Calibration Unit with Analogue Outputs

Microlink 751 User Man ual

Composer Help. Import and Export

Tutorial 2 : Invoking a CICS transaction through the Oracle AS Adapter

Mercury LoadRunner Quick Start

Lab 9: Global Configurations

From the Insert Tab (1), highlight Picture (2) drop down and finally choose From Computer to insert a new image

BPEL Orchestration. 4.1 Introduction. Page 1 of 31

i) isapi_redirect dll (downloaded from )

Lab 8: Streams & Components

BlueMix Hands-On Workshop Lab A - Building and Deploying BlueMix Applications

Working with Database & Objects

Filtering - Zimbra

Tutorial: Deploying a Progress Corticon Decision Service as a Web Service for.net. Product Version: Corticon 5.6

SobekCM METS Editor Application Guide for Version 1.0.1

Page 1 of 29. PADS Viewer

Intellisync Lite For NEC Wireless Phones Installation Guide

Definiens. Tissue Studio 4.4. Tutorial 4: Manual ROI Selection and Marker Area Detection

Tutorial. Building Composite Applications for IBM Lotus Notes 8. For use with the IBM Lotus Notes 8 Beta 2 client

Creating a Web Presentation

Smart Phone. Quick Start Guide

Introduction. How to Save Documents. Word 2010 Saving. Video: Saving Documents in Word To Use the Save As Command: Page 1

Hosting RESTful APIs. Key Terms:

Enterprise Architect. User Guide Series. Model Wizard

5.5.3 Lab: Managing Administrative Settings and Snap-ins in Windows XP

GIMP ANIMATION EFFECTS

Getting Started with Word

EZViewer DCM Installation

Craig Pelkie Bits & Bytes Programming, Inc.

Fairfield University Using Xythos for File Storage

Autodesk DirectConnect 2010

UMHS Financial Systems Workspace & Smart View Templates

Transcription:

Corel Smart Graphics Studio Creating a sample XML file Last update: June 26, 2003

Table of Contents Cre at ing a sam ple XML file In tro duc tion to the Pro cess Builder.............. 3 Con nect ing to a Web ser vice................ 4 De fin ing the struc ture of a sam ple XML file........... 6 Ta ble of con tents 2

Creating a sample XML file When you create a Corel Smart Graphics Studio project, you'll need to create a sample XML file to serve as a model for incoming data. The sample XML file is used when you map incoming data to the template. In this lesson, you'll create a sample XML file based on Web Service data. You'll access the Web Service through the Process Builder. You'll learn how to: use the Process Builder to connect to a Web service determine the input and output information you need structure your sample XML file Introduction to the Process Builder The Process Builder uses visual building blocks, called modules, to help you publish your Corel Smart Graphics Studio project to the Web through Corel Server SG. Each module represents a project, action, or data. Modules let you hook up input and output streams to create a communication path. The Process Builder workspace has three panes: Modules pane -- lists categories of modules Process pane -- where you work with the modules and hook up input and output streams Information pane -- displays information about the process (such as design problems or execution information). To open the Process Builder From the Windows Start menu, click All Pro grams (Win dows XP) or Pro grams (Win dows 2000) > Corel Smart Graphics > Pro cess Builder. Creating a sample XML file 3

Connecting to a Web service You'll connect to a Web service through the Process Builder and identify how the data is input and output. This information is used to build the sample XML file, but it's also used in the initial project planning stages as you decide what data you need to drive your dynamic graphics and build your template. This lesson uses a Web service that provides information on atomic mass. To add Web modules 1. In the Modules pane of the Process Builder, expand Mod ules > Sources, and dou ble-click Web Con nec tor. The Web Con nec tor mod ule ap pears in the Pro cess pane. 2. In the Modules list, expand Web Ser vice, and dou ble-click Web Ser vice Consumer. To save your process 1. From the File menu, click Save. 2. Navigate to the folder in which you want to save the file. If you're working on a Smart Graphics project, this should be the folder you've specified as your project folder. 3. Type a sample_process in the File Name box. 4. Click Save. The file is saved with the.cxs file name ex ten sion. To configure the Web Connector module 1. In the Process pane, double-click the Web Con nec tor mod ule. 2. In the Web Con nec tor Setup di a log box, click Add. 3. In the New Data Prop erty di a log box, fill in the fol low ing boxes: Web vari able name-- type sym (an alias for your URL) Pro cess prop erty Name -- type sym if it does n't fill in au to mat i cally (this name ap pears as an out put from the module) Data Type -- choose emstring if it does n't fill in au to mat i cally. De fault Value -- type He (the sym bol for He lium) 4. Click OK, and click OK again to close both Web Con nec tor di a log boxes. To configure the Web Service Consumer module 1. In the Process pane, double-click the Web Ser vice mod ule. 2. In the Web Ser vice Con sumer di a log box, en ter the URL for the Web ser vice you want to use in the En ter WSDL file or Web ser vice URL box. Creating a sample XML file 4

For this lesson, type: http://services.corel.com/atomicmass/atomicmass.asmx?wsdl 3. Click Load. If the URL is valid, a structure appears in the window under the URL. 4. Select the getmass statement. In the I/O Parameters win dow, in put and out put in for ma tion ap pears un der Parameter, Di rec tion, and Type. 5. Click the Value col umn be side [in]. A box appears. 6. Type He in this box. 7. Click the Invoke button. If the [in] value en try is valid, the Web ser vice re turns a value be side [out] -- in this case, the atomic mass of He lium. Creating a sample XML file 5

8. Click OK. You now have the basic input and output data parameters you need. Defining the structure of a sample XML file Using the input and output information you received from the Web service, you can now create a structure for your sample XML file. To add an XML module 1. In the Modules pane, expand XML Ac tions, and dou ble-click XML Cre ate. 2. In the Process pane, double-click the XML Cre ate mod ule. 3. In the Cre ate Node di a log box, click Add Element. 4. Click Rename, and type root. 5. Click Add Element to add a child el e ment to the root element. 6. Select the child element and rename it atomicsymbol. 7. Select the root element, and click Add Element to add an other child el e ment. 8. Select the child element and rename it mass to re flect the data re quest (in this case, the getmass state ment). 9. Select atomicsymbol, and click Add Text Node to en able text string in put from the Web ser vice. 10. Select mass, and click Add Text Node. 11. Enable the checkbox for each text node. Creating a sample XML file 6

12. Click OK. Your struc ture should look like the fol low ing picture: Note At this point, you could use the structure shown above to create an XML sample XML file in a text editor. Generating a sample XML file using the Process Builder is particularly effective when you are working with more complex projects and processes (for example, projects with more than one data source). To create an XML file in the Process Builder 1. In the Modules pane, expand XML Ac tions, and dou ble-click XML Des ti na tion. 2. In the Process pane, double-click the XML Des ti na tion mod ule. 3. In the XML Des ti na tion di a log box, en able the Out put to File checkbox and dis able the Stream to con tent type check box. Outputting to file creates the sample XML file. 4. In the Output section, click Browse and in the Vir tual Path File Browser di a log box, se lect a vir tual path from the Vir tual Paths list. If you have not created a virtual path for your project, click Edit Paths. In the Vir tual Paths di a log box, click New, and type PROCESS (use up per case let ters) for the new path. Click the Browse button and navigate to your pro ject folder (if you don't have a pro ject folder yet, save the file to the lo ca tion of your choice). Se lect the folder and click OK. Your new vir tual path ap pears in the Vir tual Paths di a log box. Se lect the path and click OK to re turn to the Vir tual Path File Browser di a log box. Se lect your new vir tual path from the Vir tual Paths list. 5. Click OK to return to the Virtual Path File Browser dialog box. Creating a sample XML file 7

6. Ensure that the Virtual Paths PROCESS is selected and in the File name box, type sample. Your XML Destination dialog box should now include the information as indicated in the following picture: 7. Click OK to close the XML Des ti na tion di a log box. To link modules 1. Right-click the Web Con nec tor mod ule, and choose Link Out puts from the menu. The output options for the module appear in the Outputs window. 2. Click sym. 3. Point to the Web Ser vice mod ule to view the Inputs win dow. 4. Click atomicsymbol. 5. Continue to link the module outputs and inputs listed below: Web Ser vice mod ule (GetMassResult ouput) to XML Cre ate (/root/mass/text()) XML Cre ate mod ule (XML Node out put) to XML Des ti na tion mod ule (Mas ter XML DOM input) Web Con nec tor mod ule (Sym out put) to XML Cre ate mod ule (/root/atomicsymbol/text() input). Your Process pane should appear as in the following picture: 6. From the menu, click File and Save. Creating a sample XML file 8

To run the process 1. In the Process Builder, click Pro ject menu > Ex e cute. 2. In the Pro ject Ex e cute di a log box, click OK. If the modules are configured and linked correctly, the following XML sample file (sample) is generated in your project folder: You can now use the sample XML file when you map your Corel Smart Graphics Studio project in the Data Mapper. Corel Smart Graphics Studio tutorials provide examples of how to use sample XML files. You can save your process, to edit and build on when you create a project. Creating a sample XML file 9