Forum Discussion
DeVon_Jarvis
Altostratus
Apr 06, 2010iControl with Java?
Need to setup a Java environment for iControl. I downloaded Axis2 and the iControlAssembly, and I compiled the code in this example:
http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=115
But it won't compile. I get "The type org.apache.axis.client.Stub cannot be resolved. It is indirectly referenced from required .class files"
Any ideas?
Here is the code:
package icontrol;
public class Test1 {
/**
* @param args
*/
public static void main(String[] args) {
iControl.Interfaces interfaces = new iControl.Interfaces();
if(interfaces.initialize("bigip1.con-way.com", "admin", "xxxxxxxxx")) {
iControl.SystemSystemInfoPortType t = interfaces.getSystemSystemInfo();
String version = t.get_version();
System.out.println("version=" + version);
}
}
}
- Unfortunately, iControl isn't compatible with Axis2 as Apache decided to remove support for rpc/enc when they moved from Axis1 to Axis2.
- DeVon_Jarvis
Altostratus
Thanks for the update Joe. I will try again with the supplied libraries. - DeVon_Jarvis
Altostratus
Do you have any example code to enable or disable a node in a pool?
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects