Forum Discussion
I don't think the problem is with the code (I implemented the same functionality in Perl with SOAP::Lite and got the same error). But after some more testing I discovered that the code works if there is already a WSDL file associated with the XML profile with the same name as the one I am trying to upload. For example, if I upload Device.wsdl to the XML Profile via the GUI and then run the Python script - it doesn't throw any errors and actually overwrites the contents of the file on the BigIP appliance. But if I run the exact same script just with a different wsdl_filename (that doesn't already exist), I get the error "The XML profile doesn't have a WSDL file".
Maybe I am missing something but I thought the entire purpose of this method was to allow to upload new WSDL files to the XML Profile.... O_o