Need help with a program I am writing (VMware, SOAP, etc).

Just starting out? Need help? Post your questions and find answers here.
Longshot
User
User
Posts: 12
Joined: Sat Sep 08, 2012 2:32 pm

Need help with a program I am writing (VMware, SOAP, etc).

Post by Longshot »

Hey guys, I need some help with a program I am writing. I am trying to write a UI that allows automation for a number of services. It's designed to talk with VMs over a network so that you can automate scripts and tasks in order to save time. I've had a great amount of success with PureBasic interacting with plink, by calling it and passing batch information, however I have hit a bit of a snag.

I am trying to communicate with vSphere in an easy an efficient way. I could do it over SSH, but not many people seem to have SSH enabled on their ESX host. I looked into automating it by passing PowerShell commands, but because I am basically going PB > PowerShell > PowerCLI it makes things a lot more complicated than they need to be, and I am only reliably able to get output from stdout.

I don't particularly want to re-write the entire application in PowerShell, as the only way to make a GUI easily is with a program called Primal Forms that appears to be feature limited or $350 USD. So, my question is this:

Does anyone have a good suggestion for how I can proceed? I know vSphere can talk over SOAP, but I am not really confident in calling external DLLs in PureBasic, and I don't have a lot of examples to look at.




Thanks!
sec
Enthusiast
Enthusiast
Posts: 792
Joined: Sat Aug 09, 2003 3:13 am
Location: 90-61-92 // EU or ASIA
Contact:

Re: Need help with a program I am writing (VMware, SOAP, etc

Post by sec »

Imo vmware give you api to control vm clients without write backdoor per each vm.
Its easy if you are family with vmware api!
Longshot
User
User
Posts: 12
Joined: Sat Sep 08, 2012 2:32 pm

Re: Need help with a program I am writing (VMware, SOAP, etc

Post by Longshot »

I am not trying to write a backdoor per VM, I am trying to determine the best way to approach talking to vSphere using PureBasic. I saw your PM, and I appreciate the offer, but I am not looking to pay someone to do something I am doing as an exercise in learning to program in PureBasic.
Post Reply