Forum Discussion
haeoraki_127471
Nimbostratus
Mar 17, 2004SOAPHTTPConnection Error
I decided to use SOAP.
I installed iControl SDK on my computer. I compiled successfully SOAP Java Sample code - the codes are at iControl-4.5\iControl-4.5\sdk\support\SOAP\java
When I execute java code, error message displayed like this :
run.bat GlobalLBDataCenter 156.147.36.225 80 XXXX XXXX
[SOAPException: faultCode=SOAP-ENV:Client;
msg=Error opening socket: java.net.ConnectException: Connection refused:
connect; targetException=java.lang.IllegalArgumentException:
Error opening socket: java.net.ConnectException: Connection refused: connect]
at org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnection.java:354)
at org.apache.soap.rpc.Call.invoke(Call.java:248)
at support.SOAP.java.GlobalLB.GlobalLBDataCenter.getDataCenterList
(GlobalLBDataCenter.java:154)
at support.SOAP.java.GlobalLB.GlobalLBDataCenter.processRequest
(GlobalLBDataCenter.java:302)
at support.SOAP.java.GlobalLB.GlobalLBDataCenter.main
(GlobalLBDataCenter.java:312)
156.147.36.225 is ip and 80 is port. XXXX are id and password.
Because SOAP use http protocol I wrote port 80. Am I wrong?
How can I get the port which support SOAP?
- haeoraki_127471
Nimbostratus
keytool -import -alias mykey -keystore "C:\Documents and Settings\Administrator\.keystore" -file server_fully_qualified_file.crt (at my company server_fully_qualified_file.crt => bigip1.lge.com.crt)
at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:208) at org.apache.soap.rpc.Call.invoke(Call.java:255) at support.SOAP.java.GlobalLB.GlobalLBDataCenter.getDataCenterList (GlobalLBDataCenter.java:154) at support.SOAP.java.GlobalLB.GlobalLBDataCenter.processRequest (GlobalLBDataCenter.java:302) at support.SOAP.java.GlobalLB.GlobalLBDataCenter.main (GlobalLBDataCenter.java:312)
- You are getting a connection refused exception becuase all of our interfaces are encrypted over ssl so you will have to use https with port 443. The correct url for our iControl endpoint is
- It looks like you do not have the iControl endpoint specified correctly. The error stating that the "A problem has occurred in the configuration utility" tells me that you are trying to access the web GUI and not the iControl endpoint. Make sure that your namespace and url are set correctly to
URL deskURI; String urn; destURI = new URL("https:///iControl/iControlPortal.cgi"); urn = "urn:iControl:ITCMSystem/SystemInfo"; <-- or whichever interface you are trying to access. The format is urn:iControl// Response resp = call.invoke(destURI, urn);
- haeoraki_127471
Nimbostratus
I entered web admin id, password. So Authorization Error disappered but[SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content ty pe "text/html", must be: "text/xml". Response was: ;/bigipgui/scripts/styles.css"> Configuration Utility ; A problem has occurred in the configuration util ity. An attempt to re-load the requested page will be made every 5 seconds while the system automatically recovers from thi s error. If the configuration utility does not recover fr om this error within 30 seconds, the error was likely unrecoverable a nd a customer service representative should be contacted. ] at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:208) at org.apache.soap.rpc.Call.invoke(Call.java:255) at support.SOAP.java.LocalLB.LocalLBNode.getProperty(LocalLBNode.java:86 ) at support.SOAP.java.LocalLB.LocalLBNode.getNodeState(LocalLBNode.java:2 11) at support.SOAP.java.LocalLB.LocalLBNode.processRequest(LocalLBNode.java :249) at support.SOAP.java.LocalLB.LocalLBNode.main(LocalLBNode.java:257)
- The last section says it all:
// Perform basic authentication requested by the server. SOAPHTTPConnection connection = new SOAPHTTPConnection(); connection.setMaintainSession(true); connection.setUserName("username_goes_here"); <--- *** connection.setPassword("password_goes_here"); <--- *** call.setSOAPTransport(connection);
- Thanks for the comments on the article. I'm glad that my writing is helping some people B-).
- Excellent! Please let us know what you are doing with iControl and don't hesitate to post questions whenever they arise.
- ubermunch_12823
Nimbostratus
Kernel Version: BIG-IP Kernel 4.5.10 Build84 - The fact that it says that the server is returning 'text/html' instead of 'text/xml' tells me that the SOAP request isn't getting to the iControl server code but is getting stopped at the management interface.
- Loc_Pham_101863Historic F5 AccountAnother note is that since the Portal was spinned up using the old IP address, when changing the management IP, you might need to rerun "config" (select "I" option) to change the iControl Portal's IIOP/FSSL address to this new IP, so that the Portal can start listening for requests on the new address. Once the new IIOP address is changed, you'll have to restart the Portal and the CORBA servers by:
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