| Introduction | Requirement | Compiling samples | Usage | Samples | Feature configuration samples | ||||||||||||||||
![]() |
||||||||||||||||
| Introduction | ||||||||||||||||
![]() |
||||||||||||||||
|
The example code that accompanies this file uses GSOAP to communicate with Netscaler, using XML/SOAP. Here, we describe how to get it up and running. The full NSConfig.wsdl file is very large - WSDL to C interface generation utility can take time to parse it. You can avoid this by creating a custom subset of the WSDL, containing just the methods used in these examples: |
||||||||||||||||
![]() |
||||||||||||||||
|
||||||||||||||||
![]() |
||||||||||||||||
|
Note that you need to modify NSConfig.wsdl file at the bottom, where it says location="http://NetScaler/soap/" to location="http://10.100.50.25/soap/", where 10.100.50.25 is assumed to be your Netscaler's IP address. The setConfig.c example uses the Netscaler API to:
The rmConfig.c example removes all of the configuration that was created by setConfig.cs. The getStat.c example demonstrates usage of statistical api. Additional documentation is available as inline comments in the C programs. |
||||||||||||||||
![]() |
||||||||||||||||
| Requirement | ||||||||||||||||
|
||||||||||||||||
| Compiling samples | ||||||||||||||||
![]() |
||||||||||||||||
1. Extract files from the archive. It contains, among other files -
3. Obtain the NetScaler WSDL file. The wsdl file for the API is located on the Netscaler device,at http://Netscaler/api/NSConfig.wsdl. The full NSConfig.wsdl file is very large - it will take up to five minutes or more to compile the generated C stubs. You can avoid this by creating a custom subset of the WSDL, containing just the methods used in these examples:
NOTE: you must modify the NSConfig.wsdl file, in the <service> section at the bottom; change "Netscaler" to the IP address of your Netscaler in 'location="http://NetScaler/soap/"'. 4. Build the three samples. In the directory where you extracted these files, type "gmake [ENTER]" or on windows "makesamp [ENTER]". This will -
|
||||||||||||||||
| Usage | ||||||||||||||||
![]() |
||||||||||||||||
The parameters to all of the examples are:
|
||||||||||||||||
![]() |
||||||||||||||||
| Samples | ||||||||||||||||
![]() |
||||||||||||||||
|
||||||||||||||||
![]() |
||||||||||||||||
| Feature configuration samples | ||||||||||||||||
![]() |
||||||||||||||||
|