Forum Discussion

Jacob_Gilley_28's avatar
Jacob_Gilley_28
Icon for Nimbostratus rankNimbostratus
Mar 09, 2005

xsd:int to short type conversion problems

I'm trying to use the "get_wideip_attribute" web service method and recieve the error "Unable to set 'ttl' property: argument type mismatch." I'm assuming this has to do with the SOAP type definition of "WideipAttribute" and the Java implementation of that type? The properties of the Java class in the SDK are of type "short" and the properties are defined as "xsd:int" in the WSDL. I took a look at some of the persistence TTL values of some of our WIPs and they were well above the range of a short data type. Is this a bug or am I not doing something correctly?

 

2 Replies

  • Okay, I've verified that Apache SOAP will not convert XSD "int" data-type to a Java "short" data-type. I modified the support.SOAP.java.shared.ITCMGlobalLB.WideipAttribute class to use "int" types instead of "short" and was able to successfully make the web service call. I guess I'll have to grep through the iControl source tree, replace any usage of "short" and recompile the SDK.
  • Thanks for finding this. This is probably a oversite in our client generation code. I'll look into getting this fixed in the 4.6.3 SDK release that will happen in the next month or so.

     

     

    -Joe