Instruction manual
Appendix B: NetScaler API Reference
NetScaler 9000 Series Installation and Configuration Guide - Volume 1 B-9
NSICG60_JAN05
NetScaler provides a WSDL file (NSConfig.wsdl) containing the interface
definition. Developers, with the help of a third-party tool (such as, gSOAP)
can use this WSDL file to generate client “stubs”. These stubs are then called
in a custom application to send a request to NetScaler. The application can be
in any of the languages supported by the third-party tool. For example, Java,
C, or C++.
The
NSConfig.wsdl file is available on the NetScaler box at:
http://<NSIP>/API/NSConfig.wsdl
where:
NSIP is the IP address of your NetScaler box.
Use this WSDL file and the interfaces mentioned in this document to develop
customized applications.
B.10 Creating Client Applications using the
NSConfig.wsdl File
A client application can be created by importing the NSConfig.wsdl with
the gSOAP WSDL Importer to create a header file with the C/C++
declarations of the SOAP methods. The gSOAP compiler is then used to
translate this header file into stubs for the client application.
The following are the steps to create client stubs using the
NSConfig.wsdl
file:
1. Get the NSConfig.h header file from the WSDL file, using the wsdl2h
program that comes with gSOAP:
./wsdl2h NSConfig.wsdl
Output
** The gSOAP WSDL parser for C and C++ 1.0.2
** Copyright (C) 2001-2004 Robert van Engelen, Genivia,
Inc.
** All Rights Reserved. This product is provided "as is",
without any warranty.
Saving NSConfig.h
Reading file 'NSConfig.wsdl'
Cannot open file 'typemap.dat'