vSphere Web Services SDK WSDL files obtained directly from vCenter Server are not complete
search cancel

vSphere Web Services SDK WSDL files obtained directly from vCenter Server are not complete

book

Article ID: 305642

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:
  • Cannot resolve https://localhost/sdk/reflect-messagetypes.xsd on vCenter Server
  • You see a list of these vSphere Web Services SDK WSDL files in vCenter Server:

    core-types.xsd
    query-messagetypes.xsd
    query-types.xsd
    vim.wsdl
    vim-messagetypes.xsd
    vimService.wsdl
    vimServiceVersions.xml
    vim-types.xsd


    Note
    : By default, these files are located at C:\ProgramData\VMware\VMware VirtualCenter\docRoot\sdk.

  • These vSphere Web Services SDK WSDL files are missing:

    reflect-messagetypes.xsd
    reflect-types.xsd


Environment

VMware vCenter Server 5.0.x

Cause

This issue occurs because vCenter Server 5.0 does not have a complete set of the schema files required when making SOAP calls using the vSphere Web Services SDK WSDL upon installation. As a result, you cannot use the server-based WSDL and SOAP toolkit.

Resolution

To workaround this issue:
  1. Download the vSphere 5.0 Web Services SDK and unzip the file.
  2. Navigate to the location where you have unzipped the file.
  3. Copy the two missing files from VMware-vSphere-SDK-5.0.0-429209\SDK\vsphere-ws\wsdl\vim25\ to C:\ProgramData\VMware\VMware VirtualCenter\docRoot\sdk.
  4. Try resolving the address in a browser again. For example:

    <?xml version="1.0" encoding="UTF-8" ?>
    -
    - <schema targetNamespace="urn:reflect" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:reflect="urn:reflect"<br>xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" elementFormDefault="qualified">
    <import namespace="urn:vim25" schemaLocation="core-types.xsd" />
    <include schemaLocation="reflect-types.xsd" />
    </schema>


Additional Information

For additional information, see the vSphere Web Services SDK 5.0 Release Notes.