begoua
Contributor
Contributor

RegisterExtension with standard Http client

Jump to solution

Hello,

I try to register plug-in with my own http client in my application.

I create SOAP message en send it to http://vcenterIP/sdk/vimService

It work with propertyCollector message and other.

But when i try to send a soap message for register a plug-in, i have an error

<soapenv:Fault><faultcode>ServerFaultCode</faultcode><faultstring>Not initialized: string version</faultstring><detail><InvalidRequestFault xmlns=\"urn:vim25\" xsi:type=\"InvalidRequest\"></InvalidRequestFault></detail>

I think that the soap message that i send is correct because i have test it with the MOB interface of vCenter https://vCEnterIP/mob/?moid=EventManager

below my xml message:

<soapenv:Body><RegisterExtension xmlns="urn:vim25">

<_this type="ExtensionManager">ExtensionManager</_this>

<extension>
<description>
<label>taratatatatata</label>
<summary>taratatatatata</summary>
</description>
<key>com.test.vmware</key>
<company>taratatatatata</company>
<type>com.vmware.vim.viClientScripts</type>
<version>1.1</version>
<subjectName>taratatatatata</subjectName>
<server><url>http://127.0.0.1/vmware</url>
<description>
<label>taratatatatata</label>
<summary>taratatatatata</summary>
</description>
<company>Company test</company>
<type>com.vmware.vim.viClientScripts</type>
<adminEmail>admin@test.com</adminEmail>
</server>
<lastHeartbeatTime>2012-12-23T00:00:00Z</lastHeartbeatTime>
</extension>

</RegisterExtension>

</soapenv:Body></soapenv:Envelope>


Thanks for your help

0 Kudos
1 Solution

Accepted Solutions
Steve_Jin
Expert
Expert

It's more than the SOAP message itself, but also the related HTTP headers. Check out this article:

http://www.doublecloud.org/2011/02/vsphere-sdk-compatibility/

Steve Jin, Author of VMware VI and vSphere SDK, Creator of Open Source VI Java API, http://www.doublecloud.org

Steve JIN Author of VMware VI and vSphere SDK; Creator of open source VI Java API (http://vijava.sf.net); Blogger at http://www.doublecloud.org

View solution in original post

0 Kudos
2 Replies
Steve_Jin
Expert
Expert

It's more than the SOAP message itself, but also the related HTTP headers. Check out this article:

http://www.doublecloud.org/2011/02/vsphere-sdk-compatibility/

Steve Jin, Author of VMware VI and vSphere SDK, Creator of Open Source VI Java API, http://www.doublecloud.org

Steve JIN Author of VMware VI and vSphere SDK; Creator of open source VI Java API (http://vijava.sf.net); Blogger at http://www.doublecloud.org
0 Kudos
begoua
Contributor
Contributor

Thanks a lot!

It was exactly what I was looking.

0 Kudos