Integrating Web Services and Natural Objects Using EntireX



Similar documents
Configuring a Custom Load Evaluator Use the XenApp1 virtual machine, logged on as the XenApp\administrator user for this task.

How to set up Outlook Anywhere on your home system

Arkay Remote Data Backup Client Quick Start Guide

TSM for Windows Installation Instructions: Download the latest TSM Client Using the following link:

FTP, IIS, and Firewall Reference and Troubleshooting

Reference and Troubleshooting: FTP, IIS, and Firewall Information

BusinessObjects Enterprise XI Release 2

Outlook Profile Setup Guide Exchange 2010 Quick Start and Detailed Instructions

Exchange Outlook Profile/POP/IMAP/SMTP Setup Guide

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

pcanywhere Advanced Configuration Guide

How to Implement the X.509 Certificate Based Single Sign-On Solution with SAP Netweaver Single Sign-On

InformationNOW SQL 2008 Database Backup and Restoration

How to Setup PPTP VPN Between a Windows PPTP Client and the DIR-130.

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

Changing Passwords in Cisco Unity 8.x

Create, Link, or Edit a GPO with Active Directory Users and Computers

Versions Addressed: Microsoft Office Outlook 2010/2013. Document Updated: Copyright 2014 Smarsh, Inc. All right reserved

Configuring Secure Socket Layer (SSL) for use with BPM 7.5.x

Outlook Express. Make Changes in Red: Open up Outlook Express. From the Menu Bar. Tools to Accounts - Click on Mail Tab.

1/4/12 Installing and Configuring WebDAV on IIS 7 : WebDAV for IIS 7.0 : Publishing Content to Web Sites : T

Configuring Load Balancing

Cloud Tools Reference Guide. Version: GA

Configuring Active Directory with AD FS and SAML for Brainloop Secure Dataroom Setup Guide

ECA IIS Instructions. January 2005

MyMobileAPI. mymobileapi.com

Exchange Outlook Profile/POP/IMAP/SMTP Setup Guide

QUANTIFY INSTALLATION GUIDE

Outlook 2010 Setup Guide (POP3)

MicroStrategy Intelligence Server Configuration Table of contents

To configure Outlook Express for your InfoMetrics address:

Patriots Outlook Configuration

WHITE PAPER Citrix Secure Gateway Startup Guide

Symantec Backup Exec 12.5 for Windows Servers. Quick Installation Guide

SOLARWINDS ORION. Patch Manager Evaluation Guide for ConfigMgr 2012

Optional Lab: Schedule Task Using GUI and at Command in Windows 7

VPN Remote Access Installation and Configuration Guide Operating System: Windows (XP, Vista, 7 and 8)

Integrating LANGuardian with Active Directory

NODE4 SERVICE DESK SYSTEM

Defender EAP Agent Installation and Configuration Guide

Browser Client 2.0 Admin Guide

Yale Software Library. PGP 9.6 for Windows

StreamServe Persuasion SP4 Service Broker

Note that if at any time during the setup process you are asked to login, click either Cancel or Work Offline depending upon the prompt.

Knights Outlook 2013 Configuration

How do I set up a branch office VPN tunnel with the Management Server?

Set Up Setup with Microsoft Outlook 2007 using POP3

McAfee One Time Password

S/MIME on Good for Enterprise MS Online Certificate Status Protocol. Installation and Configuration Notes. Updated: October 08, 2014

Using Logon Agent for Transparent User Identification

TROUBLESHOOTING INCORRECT REPORTING OF THE WHO CHANGED PARAMETER

Using Windows Task Scheduler instead of the Backup Express Scheduler

Using Microsoft Expression Web to Upload Your Site

DEPLOYMENT GUIDE Version 1.1. Deploying the BIG-IP LTM v10 with Citrix Presentation Server 4.5

TIBCO Spotfire Web Player 6.0. Installation and Configuration Manual

Troubleshooting Failover in Cisco Unity 8.x

etoken Enterprise For: SSL SSL with etoken

Microsoft Corporation. Project Server 2010 Installation Guide

Deploying Remote Desktop Connection Broker with High Availability Step-by-Step Guide

CHARTER BUSINESS custom hosting faqs 2010 INTERNET. Q. How do I access my ? Q. How do I change or reset a password for an account?

Cox Managed CPE Services. RADIUS Authentication for AnyConnect VPN Version 1.3 [Draft]

Outlook Express. Make Changes in Red: Open up Outlook Express. From the Menu Bar. Tools to Accounts - Click on. User Information

How to set up your Secure in Outlook 2010*

DIGIPASS Pack for Citrix on WI 4.5 does not detect a login attempt. Creation date: 28/02/2008 Last Review: 04/03/2008 Revision number: 2

Using TLS Encryption with Microsoft Outlook 2007

CONNECT-TO-CHOP USER GUIDE

Cisco QuickVPN Installation Tips for Windows Operating Systems

How to Configure Web Authentication on a ProCurve Switch

Configuring Thunderbird for Flinders Mail at home.

Update Instructions

Defender Configuring for Use with GrIDsure Tokens

Setting Up a Unisphere Management Station for the VNX Series P/N Revision A01 January 5, 2010

Configuration Guide. Remote Backups How-To Guide. Overview

Knights Outlook Configuration

Server Manager Performance Monitor. Server Manager Diagnostics Page. . Information. . Audit Success. . Audit Failure

User Guide. Please visit the Helpdesk website for more information:

Outlook Express. Make Changes in Red: Open up Outlook Express. From the Menu Bar. Tools to Accounts - Click on Mail Tab.

Windows Firewall Configuration with Group Policy for SyAM System Client Installation

Use the below instructions to configure your wireless settings to connect to the secure wireless network using Microsoft Windows Vista/7.

Building and Using Web Services With JDeveloper 11g

Backing Up TestTrack Native Project Databases

Windows Security Scoring Tool Implementation Guide v2.0.1

Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint InfoPath 2013 Web Enabled (Browser) forms

Configure your 3CX in our IP telephone service.

Setting up the Oracle Warehouse Builder Project. Topics. Overview. Purpose

NetBeans IDE Field Guide

Application Note VAST Network settings

Chapter 2 Editor s Note:

How do I load balance FTP on NetScaler?

Backing Up and Restoring Data

Backup and Restore FAQ

StarWind iscsi SAN Software: Tape Drives Using StarWind and Symantec Backup Exec

Quick Reference Guide. Online Courier: FTP. Signing On. Using FTP Pickup. To Access Online Courier.

Using Protection Engine for Cloud Services for URL Filtering, Malware Protection and Proxy Integration Hands-On Lab

Introduction to the MISD Web FTP Client

Crestron Fusion Version 9.3 Enterprise Management Platform Installation Guide

Test Automation Integration with Test Management QAComplete

Appendix E. Captioning Manager system requirements. Installing the Captioning Manager

Exchange Web Services [EWS] support in The Bat! v7

Update Instructions

Transcription:

Integrating Web Services and Natural Objects Using EntireX Technical Paper: Calling a Web Service from Natural 4/15/2013 Software AG Global Support Services

1) Start Broker (e.g. ETB1331) 2) Check that Service RPC/SRV2/CALLNAT and Service RPC/XMLGETTEMP/CALLNAT are defined in the Broker Attribute File 3) Start a Natural RPC Server with the following settings (see Sample RPC Server JCL in Appendix A): STACK=(LOGON MYLIB2) RPC=(SERVER=ON,RPCSIZE=8000,SRVNAME=SRV2,SRVNODE=ETB1331,MAXBUFF=4000, TRACE=(0),ACIVERS=9) NOTE: If Library MYLIB2 is empty, create a Natural object of any type, so that the Natural Wrapper can save objects remotely into this Library (see Step 18 below). 4) Optional: Check that the Service RPC/SRV2/CALLNAT has been registered (e.g. using SMH) 5) Start Software AG Designer (e.g. Start > Software AG > Tools > Software AG Designer 8.2) 6) In Software AG Designer, make sure you are in the EntireX Perspective, and create a new Project: 7) Select General > Project and click Next: Page 1

8) Provide a new Project Name (e.g. CallWebServiceFromNaturalDemo2) and click Finish 9) Right-click the Project Name (e.g. CallWebServiceFromNaturalDemo2), click New and select IDL Extractor for WSDL : 10) Select Use Entry from List and URL, and click Next: Page 2

11) Provide the URL of the Web Service WSDL, and click Next: NOTE: The following is the URL of the WSDL associated with this external Web Service: http://www.w3schools.com/webservices/tempconvert.asmx?wsdl 12) The name of the Container will be the Project name (e.g. /CallWebServiceFromNaturalDemo2) at this point, click Next: Page 3

13) On the Broker Settings screen, point to the Broker and Server from Steps 1 and 3 above then, click Next: 14) The next screen shows the Legacy Options. Click Finish on the Legacy Options screen. NOTE 1: For this particular example, you can use the default settings. In some particular instances, you might have to select options such as Transform variable-length alphanumeric fields (e.g. AV -> An, AVn) or Transform unbounded arrays (e.g. V -> n, Vn). NOTE 2: You can select whether Library/Program short names will be created for Natural, COBOL or PL/I RPC Clients, by selecting the corresponding option from the following drop-down field: Page 4

15) The IDL will be created within the selected Project and displayed automatically in the Editor: NOTE: The corresponding XMM will also be created within the Project. This will be the XMM used by the XML RPC Server, as described in the corresponding steps below. 16) Right-click the IDL and select Generate Natural from Software AG IDL > RPC Client : Page 5

17) Select the existing RPC environment that points to the Broker in Step 1 and the RPC Server that was started in Step 3. Then, check the box Modify the selected RPC environment and click Next: 18) On the next screen (under Wrapper Settings ), select Save remotely and enter MYLIB2 as the Target Library Name -- then, click Next: Page 6

NOTE: If error There are no libraries matching your filter MYLIB2! occurs while trying to save remotely, create a Natural object of any type in Library MYLIB2 (refer to Step 3 above). 19) On the next screen, select Library MYLIB2 and click Finish. NOTE: Optionally, you can check the box Overwrite existing Natural objects use caution when using this option, as you might not be able to restore these objects from an earlier state. 20) Open a Natural Session passing the following parameters, and LOGON to Library MYLIB2: NAT823 RPC=(RPCSIZE=64,MAXBUFF=60,AUTO=ON,ACIVERS=9) 21) List the objects in Library MYLIB2 (all Objects, except for TEST, were generated by the Natural Wrapper Wizard): Name Type S/C SM Version User ID Date Time * * * * * * * * CELSIUST Subprogram S S 8.2.02 MYUID 2013-04-04 11:14:53 CELSIUS1 Parameter S S 8.2.02 MYUID 2013-04-04 11:14:53 CELSIUS2 Program S S 8.2.02 MYUID 2013-04-04 11:14:53 FAHRENHE Subprogram S S 8.2.02 MYUID 2013-04-04 11:14:52 FAHRENH1 Parameter S S 8.2.02 MYUID 2013-04-04 11:14:52 FAHRENH2 Program S S 8.2.02 MYUID 2013-04-04 11:14:52 TEST Text S 8.2.03 MYUID 2013-04-04 11:10:02 22) Stow all Natural Objects (or perform a CATALL of all existing Source Code) in Library MYLIB2 NOTE: At this point, we will proceed to work on the XML RPC Server. We will return to Natural in Step 29. Page 7

23) On Windows, create a BAT file to start the XML RPC Server: - Copy file: C:\SoftwareAG\EntireX\bin\jxmlrpcserver.bat To file: C:\SoftwareAG\EntireX\bin\jxmlrpcserver_GETTEMP.bat 24) Using a text editor, EDIT file jxmlrpcserver_gettemp.bat and make these changes: - Change the Properties file: From: @set EXXPROP=%EXXDIR%\config\entirex.xmlrpcserver.properties To: @set EXXPROP=%EXXDIR%\config\entirex.xmlrpcserver_GETTEMP.properties - Change the Configuration file: From: @set EXXCONF=%EXXDIR%\config\entirex.xmlrpcserver.configuration.xml To: @set EXXCONF=%EXXDIR%\config\entirex.xmlrpcserver.configuration_GETTEMP.xml - Change the Java Trace Level: From: "%JAVA_HOME_BIN%java" %PROXY% -Dentirex.trace=0... To: "%JAVA_HOME_BIN%java" %PROXY% -Dentirex.trace=2... (do not modify the rest of the line) 25) Create the XML RPC Server Properties and Configuration files: - Copy file: C:\SoftwareAG\EntireX\config\entirex.xmlrpcserver.properties To file: C:\SoftwareAG\EntireX\config\entirex.xmlrpcserver_GETTEMP.properties - Copy file: C:\SoftwareAG\EntireX\config\entirex.xmlrpcserver.configuration.xml To file: C:\SoftwareAG\EntireX\config\entirex.xmlrpcserver.configuration_GETTEMP.xml 26) Using a text editor, make these changes in entirex.xmlrpcserver_gettemp.properties: - Change the Configuration file: From: entirex.sdk.xml.runtime.configurationfile=entirex.xmlrpcserver.configuration.xml To: entirex.sdk.xml.runtime.configurationfile=entirex.xmlrpcserver.configuration_gettemp.xml - Change the Broker node: From: entirex.server.brokerid=localhost To: entirex.server.brokerid=mymainframe:myportnumber (use your Broker ID and Port) - Change the RPC Server: From: entirex.server.serveraddress=rpc/xmlserver/callnat To: entirex.server.serveraddress=rpc/xmlgettemp/callnat 27) Using a text editor, make these changes in entirex.xmlrpcserver.configuration_gettemp.xml: - In section <BrokerID>: From: localhost:1971 To: MyMainframe:MyPortNumber (use your Broker ID and Port) - In section <ServerAddress>: From: RPC/XMLSERVER/CALLNAT To: RPC/XMLGETTEMP/CALLNAT Page 8

- In section <TargetServer name=...>: From: "http://localhost:10010/wsstack/services/examplexml" To: "http://www.w3schools.com/webservices/tempconvert.asmx" - In tag <exx-xmm name=...> of section <xmms>: From: "C:\SoftwareAG\EntireX\examples\RPC\basic\example\XMLServer\example.xmm" To: "C:\workspace82\CallWebServiceFromNaturalDemo2\TempConvert.xmm" (the actual location can be obtained from the XMM Properties in SAG Designer) 28) Start the EntireX XML RPC Server by executing the Windows BAT file C:\SoftwareAG\EntireX\bin\jxmlrpcserver_GETTEMP.bat from a DOS Command Prompt window, for example, as follows: NOTE: Since the Java Trace Level was set to 2 in Step 24 above, the XML RPC Server will start, echoing back a number of trace lines in the DOS window above. At this point, we should have a running XML RPC Server registered with Broker on the Mainframe, and we can return to the Natural session on the Mainframe. Page 9

29) Run program FAHRENH2 from Natural Library MYLIB2, and provide the data requested, for example: EntireX RPC Template - Natural FAHRENHE Client Node name... ETB1331 Server name... XMLGETTEMP RPC Library... Compression... _ Encryption... 0 EntireX Authentication RPC Server Authentication User id... MYUID RPC User id... Password... RPC Password... RPC ETID... Natural Logon... _ (Y/L = Logon, N/' ' = No Logon) FAHRENHEIT... 80 FAHRENHEITTOCELSIUSRESULT 30) Press PF5 to execute the call to the Web Service 31) The results should be similar to the following: FAHRENHEIT... 80 FAHRENHEITTOCELSIUSRESULT 26.6666666666667 Broker Logon : ok Calling FAHRENHE: success. Broker Logoff : ok NOTE: The messages above indicate that the first test was successful (Fahrenheit to Celsius). Change the Fahrenheit field and press PF5 to test with different values, or press any other PF-Key to exit the FAHRENH2 program. Page 10

32) Run program CELSIUS2 from Natural Library MYLIB2, and provide the data requested, for example: EntireX RPC Template - Natural FAHRENHE Client Node name... ETB1331 Server name... XMLGETTEMP RPC Library... Compression... _ Encryption... 0 EntireX Authentication RPC Server Authentication User id... MYUID RPC User id... Password... RPC Password... RPC ETID... Natural Logon... _ (Y/L = Logon, N/' ' = No Logon) CELSIUS... 35 CELSIUSTOFAHRENHEITRESULT 33) Press PF5 to execute the call to the Web Service 34) The results should be similar to the following: CELSIUS... 35 CELSIUSTOFAHRENHEITRESULT 95 Broker Logon : ok Calling CELSIUST: success. Broker Logoff : ok NOTE: The messages above indicate that the second test was successful (Celsius to Fahrenheit). Change the Celsius field and press PF5 to test with different values, or press any other PF-Key to exit the CELSIUS2 program. Page 11

A) Sample Natural RPC Server JCL Appendix A //RPMYLIB2 JOB MYJOB,MSGLEVEL=1, // CLASS=S,MSGCLASS=X,REGION=4M,NOTIFY=&SYSUID //* //NATB0100 EXEC PGM=NAT822BA, // COND=(0,LT), // PARM=('IM=D,INTENS=1,MADIO=0,MAXCL=0,DU=OFF') //STEPLIB DD DSN=NAT822.LOAD,DISP=SHR // DD DSN=ADA825.LOAD,DISP=SHR // DD DSN=EXX822.LOAD,DISP=SHR //DDPRINT DD SYSOUT=* //DDDRUCK DD SYSOUT=* //SYSOUT DD SYSOUT=* //SYSUDUMP DD SYSOUT=* //SYSPRINT DD SYSOUT=* //DDKARTE DD DUMMY //DDCARD DD * ADARUN DB=dbid,DE=device,SVC=svcnr,MODE=MULTI //CMPRINT DD SYSOUT=* //CMTRACE DD SYSOUT=* //CMPRT01 DD SYSOUT=* //CMPRT10 DD SYSOUT=* //TRACE1 DD SYSOUT=* //CMPRMIN DD * STACK=(LOGON MYLIB2) RPC=(SERVER=ON,RPCSIZE=8000,SRVNAME=SRV2,SRVNODE=ETB1331,MAXBUFF=4000, TRACE=(0),ACIVERS=9) //CMSYNIN DD * // Page 12