Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 179681

How to register vSphere web client pulg-in using API

$
0
0

Hi All

 

        I am new to web client pulg-in development. I have tried to register the web client pulg-in using vim25 sdk. registerExtension Method executed but package not deployed from server.

 

If manually copied the folder and xml its working fine. Is it standard  way to register the pulgin.

 

Read the How to registering webclient plug-in  link and update the webclient.properties file (enable allowHttp=true) . But still pulgin not upload into webclient.

I didn't see the error message in log file.

 

How to verify my registerExtenstion worked or not for vSphere web Client.

 

 

Description description = new Description();

  description.setLabel("Optional Label for Your Plug-in Here");

  description.setSummary(descStr);

  ExtensionServerInfo esi = new ExtensionServerInfo();

  esi.setUrl(ext_url);

  esi.setDescription(description);

  esi.setCompany(companyStr);

  esi.setType("vsphere-client-serenity");

  esi.setAdminEmail(new String[] { adminEmail });

  

  Extension ext = new Extension();

  ext.setDescription(description);

  ext.setKey(keyStr);

  ext.setVersion(versionStr);

  ext.setSubjectName("VC Extensibility");

  ext.setServer(new ExtensionServerInfo[] { esi });

 

  ext.setLastHeartbeatTime(Calendar.getInstance());

  createServiceRef();

  _locator = new VimServiceLocator();

  _locator.setMaintainSession(true);

  _service = _locator.getVimPort(new URL(url));

  _sic = _service.retrieveServiceContent(_svcRef);

  if (_sic.getSessionManager() != null) {

  _service.login(_sic.getSessionManager(), "Administrator", "msys@123", null);

  ManagedObjectReference extMgrMof = _sic.getExtensionManager();

  _service.registerExtension(extMgrMof, ext);

  }


Viewing all articles
Browse latest Browse all 179681

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>