I have found out that the behavior of vSphere Perl SDK for vSphere 6.0 is defferent on vSphere 6.5 .
Need Help to solve this issue.
There is no issue on vSphere Perl SDK for vSphere 6.0.
If there is a vSphere Perl SDK for vSphere 6.5 please let me know.
Thanks.
For example :
Running command on vSphere 6.5
Vim::save_session(session_file => $session_file);
Warning: The session being saved to '/tmp/session_api_session7_7_2016_16_5_36' is expired or not authenticated.
Vim::load_session(session_file => $session_file);
lib/perl5db.pl:197] line 1, near "/tmp/session_api_session7_7_2016_16_5_36"
(Missing operator before session_api_session7_7_2016_16_5_36?)
Warning: The session being saved to '/tmp/session_api_session7_7_2016_16_5_36' is expired or not authenticated.
Error while testing status of connection 'https://10.214.115.9/sdk': Unsupported namespace "urn:vim2" in content of SOAP body
while parsing SOAP body
at line 1, column 213
while parsing SOAP envelope
at line 1, column 38
while parsing HTTP request before method was determined
at line 1, column 0[0m
while testing status of connection 'https://10.214.115.9/sdk': Unsupported namespace "urn:vim2" in content of SOAP body
while parsing SOAP body
at line 1, column 213
while parsing SOAP envelope
at line 1, column 38
while parsing HTTP request before method was determined
at line 1, column 0[0m
Error while testing status of connection 'https://10.214.115.9/sdk': Unsupported namespace "urn:vim2" in content of SOAP body
while parsing SOAP body
at line 1, column 213
while parsing SOAP envelope
at line 1, column 38
while parsing HTTP request before method was determined
at line 1, column 0[0m
Error while testing status of connection 'https://10.214.115.9/sdk': Unsupported namespace "urn:vim2" in content of SOAP body
while parsing SOAP body
at line 1, column 213
while parsing SOAP envelope
at line 1, column 38
while parsing HTTP request before method was determined
at line 1, column 0[0m
Warning: The session being saved to '/tmp/session_api_session7_7_2016_16_5_36' is expired or not authenticated.
Info from host cat session file:
cat /tmp/session_api_session7_7_2016_16_5_36
#LWP-Cookies-1.0
Set-Cookie3: vmware_soap_session="\"edaf96069f84a42accbc1f9f7f5081b823f50e95\""; path="/"; domain=10.214.115.9; path_spec; secure; discard; HttpOnly; version=0