[Mono-list] VMware vSphere SDK problems

manzi mdaneri at vmware.com
Wed May 27 05:56:17 EDT 2009

Hi guys,
I' developing a plugin for VMware vSphere on Windows now I'm try to porting
on linux but I've some trouble with sdk.
I created my SOAP library in this manner 

"C:\Program Files\Mono-2.4\bin\wsdl2" /l:cs /n:VimApi  /o:VimObjects.cs
vim.wsdl vimService.wsdl
"C:\Program Files\Mono-2.4\bin\gmcs" -reference:System.Web.Services
/t:library /out:VimService2005.dll VimObjects.cs

but from wsdl2 I get 
  - This web reference does not conform to WS-I Basic Profile v1.1
      R2718: A wsdl:binding in a DESCRIPTION MUST have the same set of
      wsdl:operations as the wsdl:portType to which it refers.
        * Binding 'VimBinding', in Service Description 'urn:vim25'
      R2401: A wsdl:binding element in a DESCRIPTION MUST use WSDL SOAP
      Binding as defined in WSDL 1.1 Section 3.
        * BindingCollection

the VimObjects.cs file that I get is more little than that I get from
Microsoft WSDL.exe.

The problem is that when I use the library I get error like this 

2009.05.26-11.01.57:error: System.Web.Services
2009.05.26-11.01.57:error: A specified parameter was not correct. 

2009.05.26-11.01.57:error:   at
(System.Net.WebResponse response,
System.Web.Services.Protocols.SoapClientMessage message,
System.Web.Services.Protocols.SoapExtension[] extensions) [0x00000] 
  at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke
(System.String method_name, System.Object[] parameters) [0x00000] 
  at Vim25Api.VimService.UpdateUser (Vim25Api.ManagedObjectReference _this,
Vim25Api.HostAccountSpec user) [0x00000] 
  at (wrapper remoting-invoke-with-check) Vim25Api.VimService:UpdateUser
  at vpxe.DHCP_ESXHost.ChangeRootPassword (System.String pwd) [0x00000] 

the same program works under Windows and .Net 2.0

View this message in context: http://www.nabble.com/VMware-vSphere-SDK-problems-tp23731620p23731620.html
Sent from the Mono - General mailing list archive at Nabble.com.

More information about the Mono-list mailing list