We just upgraded our VC server from 2.0 to 2.5 and now our VI code developed with the 2.5 SDK fails on the RetrieveServiceContent call using HTTP. I'm guessing this is a configuration problem, rather than a code problem, but can't find documentation about how to change the configuration in 2.5. Can somebody point me in the right direction?
Hi,
Please provide the error detail and share the code snippet with us to move ahead and fix your issue.
Thanks
Niket
Code snippet, written in C#;
ManagedObjectReference svcRef = new ManagedObjectReference();
svcRef.type = "ServiceInstance";
svcRef.Value = "ServiceInstance";
VimService service = new VimService();
service.Url = "http://" + url + "/sdk";
service.CookieContainer = new CookieContainer();
try
{
ServiceContent sic = service.RetrieveServiceContent(svcRef);
etc.
}
catch (Exception e)
{
etc.
}
The error message is "The request failed with an empty response."
I found the problem - the vpxd.cfg file can't be used to configure HTTP for the SDK any more. Instead, edit the proxy.xml file and set the <accessMode> to httpAndHttps.