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\S...
Mar 18, 2004
The last section says it all:
"
[b:f801fb6e23]401 Authorization Required[/b:f801fb6e23]
Authorization Required
This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn&t understand how to supply
the credentials required."
This means you do not have the correct user credentials. These would be the same credentials you use to log into the Web based GUI configuration. The username and password are attributes of the SOAPHTTPConnection object and can be set as follows:
// 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);
-Joe
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