Forum Discussion

imperalix_38422's avatar
imperalix_38422
Icon for Nimbostratus rankNimbostratus
Feb 08, 2011

set_session_enabled_state

I am trying to set_session_enabled_state to STATE_DISABLED for two or more nodes at a time in one call. I am seeing that only the first node gets disabled. Am I doing something wrong? Thanks!

 

 

Edit: Looks like the xml was stripped. I put the request on my dropbox: http://dl.dropbox.com/u/145446/sample.txt

 

2 Replies

  • Here's the xml wrapped in [ code ] [/ code ] tags:

     

     

    
    
       
       
          
             
                10.0.0.61
                10.0.0.62
             
             
                STATE_DISABLED
             
          
       
    
    

     

     

    Aaron
  • What toolkit are you using? Hopefully you aren't hand rolling the XML on your own...

    The LocalLB.NodeAddress's set_enabled_state method takes two parameters: node_addresses, and states. Both of which are arrays. In your trace, only the node_addresses has a single entry. Also, I don't see the correct encoding format for the arrays. They are missing the "item" entries. Here's a trace from perl's SOAP::Lite showing enabling the state for two nodes

    
    
      
        
          
            1.1.1.1
    
            2.2.2.2
          
    
          
            STATE_ENABLED
    
            STATE_ENABLED
          
        
      
    

    -Joe