Introduction to the Cisco ANM Web Services API

Similar documents
Web Service API Reference Guide for Cisco Application Networking Manager 5.2 and 5.1

Using Homepage. Information About Homepage CHAPTER

Data Transport. Publisher's Note

Using Homepage. Information About Hompage CHAPTER

Using Application Template Definitions

C exam. IBM C IBM WebSphere Application Server Developer Tools V8.5 with Liberty Profile. Version: 1.

RPC. Remote Procedure Calls. Robert Grimm New York University

Using the Cisco ACE Application Control Engine Application Switches with the Cisco ACE XML Gateway

Web Services Overview

Java Web Service Essentials (TT7300) Day(s): 3. Course Code: GK4232. Overview

Using ANM With Virtual Data Centers

Why SOAP? Why SOAP? Web Services integration platform

Real-Time Claim Adjudication and Estimation Connectivity Specifications

Distributed Internet Applications - DIA. Web Services XML-RPC and SOAP

SOAP Introduction Tutorial

Web Services Development for IBM WebSphere Application Server V7.0

Web services. In plain words, they provide a good mechanism to connect heterogeneous systems with WSDL, XML, SOAP etc.

Exercise SBPM Session-4 : Web Services

Objective: Review how to use access the Bulkvs.com Origination and 911 SOAP API using SOAP UI

Web services are a middleware, like CORBA and RMI. What makes web services unique is that the language being used is XML

4 Using Web Services and SOAP

Introduction to Web Services

Practice 2. SOAP & REST

Real-Time Connectivity Specifications

Perceptive TransForm Web Services Autowrite

Oracle - Developing Applications for the Java EE 7 Platform Ed 1 (Training On Demand)

How to import a WSDL Data Source and Prepare it for Use in Framework Manager

SOAP Specification. 3 major parts. SOAP envelope specification. Data encoding rules. RPC conventions

SOA & Web services. PV207 Business Process Management

Web Services in Cincom VisualWorks. WHITE PAPER Cincom In-depth Analysis and Review

Web Services Chapter 9 of Coulouris

Invoking Web Services. with Axis. Web Languages Course 2009 University of Trento

Introduction to Web Services

NAADS DSS web service usage Contents

Create an account in Salesforce using the Web Services consumer functionality

02267: Software Development of Web Services

IBM C IBM WebSphere App Server Dev Tools V8.5, with Liberty.

WebServices the New Era

Real-Time Inquiry Connectivity Specifications

ECE450H1S Software Engineering II Tutorial I Web Services

Lecture Notes course Software Development of Web Services

eservices Integrated Capture Points Guide Web Service Capture Point

XML Web Service? A programmable component Provides a particular function for an application Can be published, located, and invoked across the Web

Developer Walkthrough

Programming Web Services in Java

Monitoring WAAS Using XML API

Lecture Notes course Software Development of Web Services

SOAP Web Services Objektumorientált szoftvertervezés Object-oriented software design. Web services 11/23/2016. Outline. Remote call.

Alexa Site Thumbnail. Developer Guide

Distributed Multitiered Application

The contents of this publication the specifications of this application are subject to change without notice.

Composer Help. Web Request Common Block

OAG Historical Flight Status. Web Service User Guide

Managing GSS Devices from the GUI

CA SiteMinder Web Services Security

SAP Business Connector SOAP Programming Guide

Introduction to the Prime Fulfillment API

Broadband Connectivity Service (BBCS),Full Access Services (FA) and Cooperation Partner Services (COPA) General Functions Interface Specification

SDMX self-learning package XML based technologies used in SDMX-IT TEST

Cisco CallManager 4.1(2) AXL Serviceability API Programming Guide

IUID Registry Application Programming Interface (API) Version 5.6. Software User s Manual (SUM)

What is Web Service. An example web service. What is a Web Service?

Rolling out Web Services the Right Way with Spring-WS

The Future of Web Services: Overview. Paul Cotton

Simple Object Access Protocol

Web Service Elements. Element Specifications for Cisco Unified CVP VXML Server and Cisco Unified Call Studio Release 10.0(1) 1

Simple Object Access Protocol (SOAP) Reference: 1. Web Services, Gustavo Alonso et. al., Springer

edocs Home > BEA AquaLogic Service Bus 3.0 Documentation > Accessing ALDSP Data Services Through ALSB

Enabling Embedded Systems to access Internet Resources

IUID Registry Application Programming Interface (API) Version Software User s Manual (SUM)

This presentation is a primer on WSDL Bindings. It s part of our series to help prepare you for creating BPEL projects. We recommend you review this

Mono Infocard project::

Project Sens-ation. Research, Technology: AXIS, Web Service, J2ME

Oracle Fusion Middleware

Publications Office. TED Website - Notice Viewer WS Technical Specifications Document - Appendix D - NoticeViewer

SERVICE TECHNOLOGIES 1

Introduction to Web Services

1Z Java EE 6 Web Services Developer Certified Expert Exam Summary Syllabus Questions

Modulo II WebServices

All About Integration

Using Configuration Building Blocks

XchangeCore Quick Start Guide to the Incident Command Service

IndySoap Architectural Overview Presentation Resources

Using Configuration Building Blocks

CmpE 596: Service-Oriented Computing

Advanced Service Design. vrealize Automation 6.2

XML for Java Developers G Session 8 - Main Theme XML Information Rendering (Part II) Dr. Jean-Claude Franchitti

SUN. Java Platform Enterprise Edition 6 Web Services Developer Certified Professional

PRIMIX SOLUTIONS. Core Labs. Tapestry : Java Web Components Whitepaper

Java EE 7: Back-End Server Application Development

CO Java EE 6: Develop Web Services with JAX-WS & JAX-RS

RSA Identity Governance and Lifecycle Generic SOAP Web Service Connector Application Guide. Generic SOAP Web Service Connector Application Guide

IBM Security Access Manager Version January Federation Administration topics IBM

JAVA COURSES. Empowering Innovation. DN InfoTech Pvt. Ltd. H-151, Sector 63, Noida, UP

Storage Made Easy Cloud Appliance installation Guide

Enterprise SOA Experience Workshop. Module 8: Operating an enterprise SOA Landscape

Web Services. Grid Computing (M) Lecture 6. Olufemi Komolafe 19 January 2007

Web Services & Axis2. Architecture & Tutorial. Ing. Buda Claudio 2nd Engineering Faculty University of Bologna

COP 4814 Florida International University Kip Irvine. Inside WCF. Updated: 11/21/2013

Artix Version Release Notes: Java

Transcription:

1 CHAPTER This chapter describes the Cisco ANM Web Services application programming interface (API), which provides a programmable interface for system developers to integrate with customized or third-party management applications. This chapter contains the following sections: ANM Web Services Overview, page 1-1 Obtaining the Web Services Description Language File, page 1-3 Using the ANM Web Services, page 1-2 ANM Web Services Overview The ANM Web Services are a Web Service implementation, which is defined by the W3C standard as a software system designed to support interoperable machine-to-machine (client and server) interaction over the network. Client and server communication follows the Simple Object Access Protocol or Service Oriented Architecture Protocol (SOAP) standard. SOAP, which exchanges XML-based messages over the network using HTTP or HTTPS, is the foundation layer of the Web Service stack. It provides a basic messaging framework that allows more abstract layers to build on. SOAP encoding wraps XML headers and tags in a SOAP envelope. ANM is a Java application that uses Java SE 6, which is a standard with Web Services support in the form of JSR 224, Java API for XML-Based Web Services (JAX-WS) 2.0. ANM makes use of Java SE 6 Web Services support to implement its Web Services-based NBI. Java SE 6 also supports JSR 181, Web Services Metadata for the Java Platform. JSR 181 makes it possible to develop web services. Additionally, Java SE 6 makes it extremely easy to publish a Java Web Service by using javax.xml ws.endpoint of JAX-WS. ANM provides the following Web Services to support the operation of the devices it manages, such as the Cisco Application Control Engine: Operation Manager Perform operational tasks such as: Log in and out of ANM. List objects such as virtual contexts, real servers, virtual servers, server farms, server farm real servers, VIP answers, and DNS rules. Activate or susupend objects. ApplicationTemplateManager Perform the following tasks: Manage application templates used to configure ACE devices. 1-1

Using the ANM Web Services Chapter 1 Manage configuration checkpoints. Obtain specific show command output. RBACManager Perform the following tasks: Manage user accounts List user accounts List role, domain, an organization information For a complete list of the devices that the ANM Web Services support, see the Required Software, Web Standards, and Supported Hardware section on page 1-2. Using the ANM Web Services This section describes how to use the ANM Web Services. It contains the following topics: Required Software, Web Standards, and Supported Hardware, page 1-2 Enabling the Web Services Interface, page 1-3 Obtaining the Web Services Description Language File, page 1-3 Generating the Client Code to Invoke a Web Service, page 1-3 Calling an ANM Web Service and Posting a SOAP Request, page 1-4 Required Software, Web Standards, and Supported Hardware ANM Web Services are supported in ANM software Version 4.1 and later. The API examples in this document require the following development environment: Java SE 6 Note Java SE 6 is applicable only if the client code is java-based. WSDL Support: 1.1 SOAP 1.1 The ANM Web Services API is supported on the following product types: Cisco Application Control Engine (ACE) devices as follows: ACE20 and ACE30 modules ACE 4710 appliance Cisco Content Services Switch (CSS) Cisco Content Switching Module (CSM) Cisco Content Switching Module with SSL (CSM-S) Cisco Global Site Selector (GSS) 1-2

Chapter 1 Using the ANM Web Services Enabling the Web Services Interface ANM uses the following ports for Web Services: http port: 8080 https port: 8443 After you have installed the ANM software, you can reconfigure ANM configuration properties, such as enabling HTTP(S) for Web Services. For information about enabling Web Services, see the Changing ANM Configuration Property Values section in the User Guide for the Cisco Application Networking Manager 5.2.2. Obtaining the Web Services Description Language File ANM Web Services uses Web Services Description Language (WSDL) with SOAP and XML schemas to provide Web Services. WSDL is an XML-based service that describes the functionality offered by the Web Service and defines the actions, parameter names, input parameter data types, and return data types for the Web Service. When you connect to a Web Service through a web browser, you can read the WSDL file to determine which functions are available on the server. Any special data types that are used are embedded in the WSDL file in an XML schema. You can then call one of the functions listed in the WSDL file by sending a SOAP request message. To obtain the WSDL file defined for a particular service in the ANM Web Services API implementation, submit a URL to the service with a?wsdl suffix. For example, to retrieve the WSDL for the OperationManager service running on https://localhost:8443/anm/operationmanager, call the WSDL file by using the following URL: https://<host/ip>:8443/anm/operationmanager?wsdl. For more examples, see the Generating the Client Code to Invoke a Web Service section on page 1-3. Generating the Client Code to Invoke a Web Service This procedure shows how to generate the client source code. Procedure Step 1 Download the WSDL file from the server using the following WSDL URL formats: OperationManager WSDL: https://<host/ip>:8443/anm/operationmanager?wsdl or http://<host/ip>:8080/anm/operationmanager?wsdl ApplicationTemplateManager WSDL: https://<host/ip>:8443/anm/applicationtemplatemanager?wsdl or http://<host/ip>:8080/anm/applicationtemplatemanager?wsdl RBACManager WSDL https://<host/ip>:8443/anm/rbacmanager?wsdl or 1-3

Using the ANM Web Services Chapter 1 Step 2 Step 3 http://<host/ip>:8080/anm/rbacmanager?wsdl where the host/ip value is the hostname or IP address of the ANM that has the service running. Save the file as either OperationManager.wsdl, ApplicationTemplateManager.wsdl, or RBACManager.wsdl, depending on which one you are downloading. Generate and compile the source code by using the wsimport command as follows: wsimport -d <specify where to place generated output files> -s <specify where to place generated source files> {OperationManager.wsdl ApplicationTemplateManager.wsdl RBACManager.wsdl} The above command generates the java source code from the wsdl file and then compiles it and puts the class file in the same location where the source file.wsimport file is located in the dir $JAVA_HOME/bin. Note This step is applicable only if the client code is a java-based code. Calling an ANM Web Service and Posting a SOAP Request To call a service, you connect to a particular ANM through a web browser by using a service URL that contains the IP address or hostname of the ANM and the name of the particular service (such as OperationManager). For example, https://<host/ip>:8443/anm/operationmanager?wsdl is the service URL for the OperationManager Web Service. You use the same format to call the ApplicationTemplateManager Web Service. By default, ANM supports up to 10 concurrent sessions for Web Services (see the Modifying the Number of Concurrent Sessions Allowed section on page 4-3). Next, you must post a SOAP request written in a XML format to retrieve the information. The request calls for a particular action (such as login) and the input parameter content when required. The ANM responds with a SOAP envelope that contains the answer in an XML format. The response contains the output values for this action. Example Request The following example shows an XML-formatted SOAP request to perform the login action. There are no input parameters for this particular action. <?xml version="1.0" encoding="utf-8"?> <SOAP-ENV:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/xmlschema" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"> <SOAP-ENV:Body> <login xmlns="http://anm.cisco.com"> <user xmlns="">admin</user> <password xmlns="">admin</password> </login> </SOAP-ENV:Body> </SOAP-ENV:Envelope> 1-4

Chapter 1 Using the ANM Web Services Example Response The following example shows the XML response to the login request. The response contains output values such as the SessionToken. <?xml version="1.0" encoding="utf-8"?> <S:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:loginresponse xmlns:ns2="http://anm.cisco.com"> <SessionToken xmlns=""> <sid>5546099606143734326</sid> </SessionToken> </ns2:loginresponse> </S:Body> </S:Envelope> 1-5

Using the ANM Web Services Chapter 1 1-6