I am trying to get the InitiateFileTransferToGuest web services call to work but i am not having any luck. I believe the issue is around the guest file path.
Whne i use a path like @"c:\temp\test.txt" or "c:\\temp\\test.txt" I get an SoapException was unhandled (A specified parameter was not correct.).
The path exists... but what is strange is if i set the path like this: @"c:\test.txt" or "c:\\test.txt" I get no error and get a url returned, but i still dont see a file once we put the file over.
I would like to first get the path issue resolved. Anyone know why this wont work?
Another question here is when using the web service against vCenter, the url returned from InitiateFileTransferToGuest always has an ip to a specific host, it never changes. The api docs say the url will come back as: http://*/guestFile?id=1&token=1234 but instead i an getting http://1.1.1.1/guestFile?id=1&token=1234 with a valid host server ip.
I have two questions to this, 1) is that correct in that i should see the ip address, 2) does it matter what host the vm (guest) we are trying to copy a file to is on. As in if the vm(guest) is on host2 but the call is return host1's ip address is this an issue?
Thanks in advance.