-
WSClient.invoke() method checks if there was a SOAP fault and raises SoapFaultException, which contains fault's "code" and "string". If there was a specific fault parsed (like com.vmware.vim25.InvalidRequest fault), the specific fault is thrown instead of SoapFaultException, loosing fault's code and string information. VMWare often passes actual error description in FaultString element and it...
2009-11-02 14:13:38 UTC by Maxim Kulkin
-
The characters that need escaping can be found in any string that is passed to server. E.g. inventory names or (my personal struggle) passing OVF descriptor to server (OvfManager.parseDescriptor()) as OVF descriptor is an XML document. With current implementation that XML document is embedded as is into SOAP request causing failures on server side.
If using DOM API to build SOAP requests...
2009-10-30 11:31:10 UTC by Maxim Kulkin
-
I presented the VI Java API at SpringOne 2GX conference in New Orleans. Here is the presnetation slides which cover all the basics of the VI Java API and advanced features in version 2.0 like Just Enough Web Service Engine, Client REST API, etc. Check it out here.
http://vijava.sourceforge.net/files/Open%20Source%20VI%20Java%20API%20for%20managing%20VMware%20platforms.pdf
The presentation was...
2009-10-30 00:28:52 UTC by sjin2008
-
Today we hit yet another milestone - 4,000 downloads. I am now in New Orleans and will present the VI Java API at the SpringOne 2GX conference. I will post the slides and possibly the recored video next week. So stay tuned.
Steve Jin.
2009-10-30 00:27:33 UTC by sjin2008
-
I am very happy to announce the 1.0 of the Jython Virtual Appliance based on Ubuntu. It's made available by our community member Timo Sugliani. Great job Timo!
To run the virtual appliance, you will need either VMware Workstation, VMware Server or VMware Player. The later two are free products from VMware Download Site.
After compressed to RAR format, the virtual appliance is about 600M. After...
2009-10-30 00:27:08 UTC by sjin2008
-
While working on the VI Java API, I got many inquiries from new users on references. They concern mainly about the API quality, support, and licenses before developing products/projects on the API. Not much about the ease of use and cleanness of the API because the samples tell everything there.
Thanks to the user community, I just compiled a page with testimonials by CTO, VP Engineering...
2009-10-30 00:25:52 UTC by sjin2008
-
As the API ref states, " The client first calls AcquireCredentialsHandle(). If Kerberos is used, this should include the desired credential to pass. The client then calls InitializeSecurityContext(). The resulting partially-formed context is passed in Base-64 encoded form to this method.
If the context has been successfully formed, the server proceeds with login and behaves like Login...
2009-10-29 23:33:42 UTC by sjin2008
-
Hi Maxim,
Thanks a lot for filing the bug. We have a bug tracking this now: 2797091
The obvious failure happens with password field which we patched. For the MOR values, I haven't seen any case in which the value string contain special chars as you mentioned. If you have such a case, please let me know.
Thanks!
-Steve.
2009-10-29 18:26:21 UTC by sjin2008
-
Err... the actual function for escaping is org.apache.commons.lang.StringEscapeUtils.escapeXml();.
2009-10-29 10:48:03 UTC by Maxim Kulkin
-
When you use a string argument in any MOR function, the corresponding SOAP request contains that string unescaped. If the string contains "" or "&" characters, the server will not be able to parse that request and will respond with 400 HTTP code.
Solution 1 (fast): add value escaping to XmlGen.toXML method. Escaping function can be written just there (if author do not want to introduce...
2009-10-29 09:13:59 UTC by Maxim Kulkin