Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

XML serialization not working with VMWare Web Services SDK on C#

$
0
0

I have followed the instructions in http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=87402 to create Vim25Service2005.dll and Vim25Service2005.XmlSerializers.dll  with latest 5.5 SDK downloaded from vSphere Management SDK for vSphere 5.5 - VMware Developer Center

However, when I try to something like VimService.RetrieveProperties(), it will fail with XML serialization error.

Name: InvalidOperationException

Message: There is an error in XML document (7, 176).

Trace:    at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle) at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at Vim25Api.VimService.RetrieveProperties(ManagedObjectReference _this, PropertyFilterSpec[] specSet)

 

I went through few links but it did not helped me.

If we do not follow the KB link and build the XML serialize dll it is not throwing any "InvalidOperationException". only vimservice took long time Instantiate for which this KB article wrote.

 

 

Any help would be Appreciate.


Viewing all articles
Browse latest Browse all 2218

Trending Articles



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