Forum Discussion
scott_nixon_825
Apr 04, 2005Historic F5 Account
3DNS 4.6.3 SOAP is slow while being queried
3DNS 4.6.3 build 82
Our 3DNS that uses SOAP is extremley slow the time it takes to run
against the perl script they have that queries 3DNS.
It takes up 15 min to p...
May 09, 2005
I've been looking at this for a while and as luck will have it, in version 0.65 of SOAP::Lite, the authors have exposed the HTTP request object allowing custom insertion of HTTP headers. This allows the user, in the client code, to inject the Authenticate header thus eliminating the need for the infamous request-with-no-auth, 401-error, request-with-auth, 200-success. By including the following line after your SOAP::Lite object instantiation, you'll bypass half of the round trips needed!
Here's a sample taken from the SystemInfo.pl sample from the SDK.
...
$soap = SOAP::Lite
-> uri('urn:iControl:System/SystemInfo')
-> proxy($sURL);
$soap->transport->http_request->header
(
'Authorization' => 'Basic ' . MIME::Base64::encode("$sUID:$sPWD", '')
);
I haven't performed timing tests yet, but this should reduce the total time by a good chunk. Not 50%, but a good chunk.
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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