Enabling a web service on a brocade virtual adx – Brocade Virtual ADX XML API Programmer’s Guide (Supporting ADX v03.1.00) User Manual

Page 16

Advertising
background image

6

Brocade Virtual ADX XML API Programmer’s Guide

53-1003248-01

Enabling a web service on a Brocade Virtual ADX

1

Response resp = call.invoke(url, "");

if (resp.generatedFault ( )) {

Fault fault = resp.getFault ( );

System.out.println ("\nOuch, the call failed: ");

System.out.println (" Fault Code = " + fault.getFaultCode ( ));

System.out.println (" Fault String = " + fault.getFaultString ( ));

} else {

Parameter result = resp.getReturnValue ( );

System.out.print(result.getValue ( ));

System.out.println( );

}

}

}

Enabling a web service on a Brocade Virtual ADX

Before a Brocade Virtual ADX can acknowledge any SOAP requests, it must have the
web-management command configured with at least the soap-service option:

web-managment

Syntax: web-managment [option[ ...]]

Options:

allow-no-password Allow web server to have no password

connection-receive-timeout Web connection receive timeout

enable Enable web management

frame Allow to disable or enable a frame

front-panel Enable front panel

hp-top-tools Enable the support of HP TOP Tools

http Enable the support of http server

list-menu Show web menu as a list

page-menu Enable page menu

page-size Maximum number of entries in a page

refresh Page refresh (polling time) in seconds

session-timeout Web session timeout in minutes (value 0 means no

timeout)

soap-service Enable SOAP Services

Advertising