if you are getting the session token w/ blcred, why are you using webservices? why not just use the blcli ?
I I do not want to use blcli to connect to app server because
1) I want to use session file so that there is no need to create new session again and again and i can ignore to pass user credentials in command line again and again.
2) I want to use login web service methods in my automation because i saw some high CPU and RAM consumption while using bladelogic java classes to run blcli command which saved when i used web services.
The blsso session only lasts for 10 hours by default. so you cannot reuse the same blsso session forever. so you will always need to re-authenticate and get a new blsso session. so you will first run a blcred to get the blsso session and then you want to use that w/ the soap call ?
Check out blcli_execute vs. just blcli (Performance Commands): it doesn't recreate the session every time and has much faster startup time, etc. after initial connection.
blsso session timeout can be set longer, but eventually you will need to reauthenticate either way.
Are you trying to run many many commands? Can you tell us a bit more about your use case?
We have increase validity of blsso session file for 7 days so credentials do not expire before 7 days and then we need to create this file again.
So i want to use this file so that when my script run, it automatically read this file and login. So i want to see how can i pass this file as parameter (with loginUsingSessionCredential) when using web services .
In my case, i am actually running many commands in my python script to create folders in depot, create blpackages, NSH script, adding files and program. So during this process, i want to use blsso session file to connect while running blcli command rather than of creating connections and passing user and password during execution.
It should pick up credentials from file and login to bl to run commands. Do you have idea how i can user login web services wsdl file to use loginUsingSessionCredential and not loginUsingUserCredential.
Any help will be appreciated.