Version
4.0
Notes
We are accessing the `Catalog/Protection' uri to edit a service
protection class. With a WSDL based interface, we'd use the
Catalog.Protection.wsdl interface.
We use the addBannedAddresses() function. Like most Control API
functions, this takes a series of arrays as arguments:
1. A list of service protection policies
2. A list of lists of banned IP addresses
This means that the function can perform bulk updates, modifying
several objects simultaneously.
This example includes an on_fault handler which is called if an error
ever occurs. The handler will report a transport error if the SOAP
application could not connect to the remote SOAP server. Otherwise,
it will report a SOAP error.
33
New Page 1