Raritan Computer CC-WSAPI-0B-v5.1.0-E Manuel d'utilisateur Page 41

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 54
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 40
Appendix B: Web Services Development in Java
37
{
session = port.signOn( user, password );
} catch (
security.service.webservice.bl.cc.raritan.com.Authent
icationAndAuthorizationException ex )
{
auth_exception_handler( ex, "signOn()" );
System.exit(1);
}
current_name = get_input( "Enter the name of the
node to change: " );
new_name = get_input( "Enter the new name: " );
if( current_name != null && new_name != null )
{
try
{
if( node_service_port.renameNode( session,
current_name, new_name ) )
System.out.println( "Node name successfully
changed to " + new_name );
else
System.err.println( "renameNode() failed
without an exception." );
} catch(
node.service.webservice.bl.cc.raritan.com.NodeManagem
entException ex )
{
System.out.println( "NodeManagementException: "
+ ex.getFaultInfo().getMessage() );
System.out.println( "\t" +
ex.getFaultInfo().getCode() );
// ex.printStackTrace();
}
Vue de la page 40
1 2 ... 36 37 38 39 40 41 42 43 44 45 46 ... 53 54

Commentaires sur ces manuels

Pas de commentaire