Forum Discussion

hotrod_127503's avatar
hotrod_127503
Icon for Nimbostratus rankNimbostratus
Sep 04, 2004

IPPortDefinition

Hey all,

 

 

Is the address member in the IPPortDefinition a String or a Long?

 

 

The reason I ask is in the WSDL says it is a long, but in the java classes provided by IControl says that it's very clearly is a String. The iControlSOAPMappingRegistry does not do anything special to convert it to a long either.

 

 

Thanks,

 

Justin
  • Ok, here's some history on the IPAddress. Our initial implementation was based on our CORBA idl definitions. In those technologies (c/c++) it was very popular to deal with IP Addresses as long's as that is how they are represented at the network layer. So, our CORBA implementation supported IPAddresses as longs. When we created our iControl SOAP, we decided that exposing the address as a string would make more sense for user mode applications written in higher level languages (C, Java, etc.). So, we "changed" the type for the SOAP interfaces to a string and do some runtime conversions under the seams to it's network representation.

    I'm not sure what WSDL you are looking at, but as far back as iControl version 2.1 (which mapped to BIG-IP 4.2) we've defined the ITCMCommon.IPAddress as the following in the WSDL:

     
      
          
      
     

    And the ITCMCommon.IPPortDefinition as the following:

     
      
          
              
              
          
      
     

    If you could post the snippet of the WSDL that you are referring to and the version of the SDK you got it from, I can see if I'm missing something here.

    -Joe
  • Hey Joe,

     

     

    Here it is from iControl-4.6.2 downloaded last week. It looks like iControl9 is out which is good because. I will be using a BigIP 9 box. Anyway, here is the snippet from 4.6.2

     

     

     

     

     

     

     

     

     

     

    Now, the ITCMCommon.IPAddress is defined in that WSDL. Soo... I think something didn't get changed?

     

     

     

     

     

     

    That is a snippet from the same file. It looks like it just didn't get mapped. I guess I will download 9 since it is available this morning.

     

     

    Thanks,

     

    Justin
  • Thanks! I've verified that this is an issue with version 4.6.2 of the SDK and I'll get a corrected version on the website by the end of the week.

     

     

    -Joe
  • Joe,

     

    All is ok. In the WSDL from the iControl9 SDK. Thanks for your quick response.

     

     

    Justin