<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Esxi Webservice Login Not Working in VMware{code} Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-code-Discussions/Esxi-Webservice-Login-Not-Working/m-p/2951701#M2208</link>
    <description>&lt;P&gt;The issue is not passing the right SessionManager value in tag &amp;lt;urn:_this type="SessionManager"&amp;gt; .&lt;BR /&gt;&lt;BR /&gt;To retrieve the&amp;nbsp;SessionManager value, use the below &lt;STRONG&gt;POST&amp;nbsp;&lt;/STRONG&gt;SOAP API with the body and then pass the retrieved SessionManager value in the login API.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Step#1:&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;POST:&lt;/STRONG&gt; &lt;EM&gt;&lt;A target="_blank" rel="noopener"&gt;https://&amp;lt;server&amp;gt;/sdk&lt;/A&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;DIV&gt;&lt;STRONG&gt;Body:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:vim25"&amp;gt;
    &amp;lt;soapenv:Header /&amp;gt;
    &amp;lt;soapenv:Body&amp;gt;
        &amp;lt;urn:RetrieveServiceContent&amp;gt;
            &amp;lt;urn:_this type="ServiceInstance"&amp;gt;ServiceInstance&amp;lt;/urn:_this&amp;gt;
        &amp;lt;/urn:RetrieveServiceContent&amp;gt;
    &amp;lt;/soapenv:Body&amp;gt;
&amp;lt;/soapenv:Envelope&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Response:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"...&amp;gt;
    &amp;lt;soapenv:Body&amp;gt;
        &amp;lt;RetrieveServiceContentResponse xmlns="urn:vim25"&amp;gt;
            ...
                &amp;lt;about&amp;gt;
                   ....
                &amp;lt;/about&amp;gt;
                   ...
                &amp;lt;sessionManager type="SessionManager"&amp;gt;ha-sessionmgr&amp;lt;/sessionManager&amp;gt;
                   ...
            &amp;lt;/returnval&amp;gt;
        &amp;lt;/RetrieveServiceContentResponse&amp;gt;
    &amp;lt;/soapenv:Body&amp;gt;
&amp;lt;/soapenv:Envelope&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;STRONG&gt;Step#2:&lt;/STRONG&gt;&amp;nbsp; Copy the above SessionManager value i.e, "ha-sessionmgr" and update in login api.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;POST:&lt;/STRONG&gt; &lt;EM&gt;&lt;A target="_blank" rel="noopener"&gt;https://&amp;lt;server&amp;gt;/sdk&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BODY:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:vim25"&amp;gt;
   &amp;lt;soapenv:Header /&amp;gt;
   &amp;lt;soapenv:Body&amp;gt;
      &amp;lt;urn:Login&amp;gt;
         &amp;lt;urn:_this type="SessionManager"&amp;gt;ha-sessionmgr&amp;lt;/urn:_this&amp;gt;
         &amp;lt;urn:userName&amp;gt;root&amp;lt;/urn:userName&amp;gt;
         &amp;lt;urn:password&amp;gt;XXXXXXXX&amp;lt;/urn:password&amp;gt;
         &amp;lt;urn:locale&amp;gt;&amp;lt;/urn:locale&amp;gt;
      &amp;lt;/urn:Login&amp;gt;
   &amp;lt;/soapenv:Body&amp;gt;
&amp;lt;/soapenv:Envelope&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;Response:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
 xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&amp;gt;
    &amp;lt;soapenv:Body&amp;gt;
        &amp;lt;LoginResponse xmlns="urn:vim25"&amp;gt;
            &amp;lt;returnval&amp;gt;
                &amp;lt;key&amp;gt;xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx&amp;lt;/key&amp;gt;
                &amp;lt;userName&amp;gt;root&amp;lt;/userName&amp;gt;
                &amp;lt;fullName&amp;gt;Administrator&amp;lt;/fullName&amp;gt;
                &amp;lt;loginTime&amp;gt;2023-01-31T09:06:39.124597Z&amp;lt;/loginTime&amp;gt;
                &amp;lt;lastActiveTime&amp;gt;2023-01-31T09:06:39.124615Z&amp;lt;/lastActiveTime&amp;gt;
                &amp;lt;locale&amp;gt;en&amp;lt;/locale&amp;gt;
                &amp;lt;messageLocale&amp;gt;en&amp;lt;/messageLocale&amp;gt;
            &amp;lt;/returnval&amp;gt;
        &amp;lt;/LoginResponse&amp;gt;
    &amp;lt;/soapenv:Body&amp;gt;
&amp;lt;/soapenv:Envelope&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jan 2023 10:37:02 GMT</pubDate>
    <dc:creator>doskiran</dc:creator>
    <dc:date>2023-01-31T10:37:02Z</dc:date>
    <item>
      <title>Esxi Webservice Login Not Working</title>
      <link>https://communities.vmware.com/t5/VMware-code-Discussions/Esxi-Webservice-Login-Not-Working/m-p/2951558#M2204</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am not sure if I am posting it on the right channel. The issue that I am facing is with the Esxi Webservice. I am attempting to login via web service and I don't get an OK response as shown below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cubits_0-1675059461387.png" style="width: 400px;"&gt;&lt;img src="https://communities.vmware.com/t5/image/serverpage/image-id/99674iCC42E56E841C77C2/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="cubits_0-1675059461387.png" alt="cubits_0-1675059461387.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cubits_1-1675059544100.png" style="width: 400px;"&gt;&lt;img src="https://communities.vmware.com/t5/image/serverpage/image-id/99673iC594A6E0218FE1F9/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="cubits_1-1675059544100.png" alt="cubits_1-1675059544100.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;  &lt;SPAN&gt;Any help is much appreciated&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 14:32:55 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-code-Discussions/Esxi-Webservice-Login-Not-Working/m-p/2951558#M2204</guid>
      <dc:creator>cubits</dc:creator>
      <dc:date>2023-01-30T14:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Esxi Webservice Login Not Working</title>
      <link>https://communities.vmware.com/t5/VMware-code-Discussions/Esxi-Webservice-Login-Not-Working/m-p/2951578#M2205</link>
      <description>&lt;P&gt;You are trying to log in directly to vsphere client or to vCenter?&amp;nbsp;&lt;/P&gt;&lt;P&gt;From screenshots, I am not able to identify is this a monitoring tool or smth for network?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 15:47:51 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-code-Discussions/Esxi-Webservice-Login-Not-Working/m-p/2951578#M2205</guid>
      <dc:creator>maksym007</dc:creator>
      <dc:date>2023-01-30T15:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Esxi Webservice Login Not Working</title>
      <link>https://communities.vmware.com/t5/VMware-code-Discussions/Esxi-Webservice-Login-Not-Working/m-p/2951701#M2208</link>
      <description>&lt;P&gt;The issue is not passing the right SessionManager value in tag &amp;lt;urn:_this type="SessionManager"&amp;gt; .&lt;BR /&gt;&lt;BR /&gt;To retrieve the&amp;nbsp;SessionManager value, use the below &lt;STRONG&gt;POST&amp;nbsp;&lt;/STRONG&gt;SOAP API with the body and then pass the retrieved SessionManager value in the login API.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Step#1:&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;POST:&lt;/STRONG&gt; &lt;EM&gt;&lt;A target="_blank" rel="noopener"&gt;https://&amp;lt;server&amp;gt;/sdk&lt;/A&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;DIV&gt;&lt;STRONG&gt;Body:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:vim25"&amp;gt;
    &amp;lt;soapenv:Header /&amp;gt;
    &amp;lt;soapenv:Body&amp;gt;
        &amp;lt;urn:RetrieveServiceContent&amp;gt;
            &amp;lt;urn:_this type="ServiceInstance"&amp;gt;ServiceInstance&amp;lt;/urn:_this&amp;gt;
        &amp;lt;/urn:RetrieveServiceContent&amp;gt;
    &amp;lt;/soapenv:Body&amp;gt;
&amp;lt;/soapenv:Envelope&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Response:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"...&amp;gt;
    &amp;lt;soapenv:Body&amp;gt;
        &amp;lt;RetrieveServiceContentResponse xmlns="urn:vim25"&amp;gt;
            ...
                &amp;lt;about&amp;gt;
                   ....
                &amp;lt;/about&amp;gt;
                   ...
                &amp;lt;sessionManager type="SessionManager"&amp;gt;ha-sessionmgr&amp;lt;/sessionManager&amp;gt;
                   ...
            &amp;lt;/returnval&amp;gt;
        &amp;lt;/RetrieveServiceContentResponse&amp;gt;
    &amp;lt;/soapenv:Body&amp;gt;
&amp;lt;/soapenv:Envelope&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;STRONG&gt;Step#2:&lt;/STRONG&gt;&amp;nbsp; Copy the above SessionManager value i.e, "ha-sessionmgr" and update in login api.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;POST:&lt;/STRONG&gt; &lt;EM&gt;&lt;A target="_blank" rel="noopener"&gt;https://&amp;lt;server&amp;gt;/sdk&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BODY:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:vim25"&amp;gt;
   &amp;lt;soapenv:Header /&amp;gt;
   &amp;lt;soapenv:Body&amp;gt;
      &amp;lt;urn:Login&amp;gt;
         &amp;lt;urn:_this type="SessionManager"&amp;gt;ha-sessionmgr&amp;lt;/urn:_this&amp;gt;
         &amp;lt;urn:userName&amp;gt;root&amp;lt;/urn:userName&amp;gt;
         &amp;lt;urn:password&amp;gt;XXXXXXXX&amp;lt;/urn:password&amp;gt;
         &amp;lt;urn:locale&amp;gt;&amp;lt;/urn:locale&amp;gt;
      &amp;lt;/urn:Login&amp;gt;
   &amp;lt;/soapenv:Body&amp;gt;
&amp;lt;/soapenv:Envelope&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;Response:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
 xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&amp;gt;
    &amp;lt;soapenv:Body&amp;gt;
        &amp;lt;LoginResponse xmlns="urn:vim25"&amp;gt;
            &amp;lt;returnval&amp;gt;
                &amp;lt;key&amp;gt;xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx&amp;lt;/key&amp;gt;
                &amp;lt;userName&amp;gt;root&amp;lt;/userName&amp;gt;
                &amp;lt;fullName&amp;gt;Administrator&amp;lt;/fullName&amp;gt;
                &amp;lt;loginTime&amp;gt;2023-01-31T09:06:39.124597Z&amp;lt;/loginTime&amp;gt;
                &amp;lt;lastActiveTime&amp;gt;2023-01-31T09:06:39.124615Z&amp;lt;/lastActiveTime&amp;gt;
                &amp;lt;locale&amp;gt;en&amp;lt;/locale&amp;gt;
                &amp;lt;messageLocale&amp;gt;en&amp;lt;/messageLocale&amp;gt;
            &amp;lt;/returnval&amp;gt;
        &amp;lt;/LoginResponse&amp;gt;
    &amp;lt;/soapenv:Body&amp;gt;
&amp;lt;/soapenv:Envelope&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 10:37:02 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-code-Discussions/Esxi-Webservice-Login-Not-Working/m-p/2951701#M2208</guid>
      <dc:creator>doskiran</dc:creator>
      <dc:date>2023-01-31T10:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Esxi Webservice Login Not Working</title>
      <link>https://communities.vmware.com/t5/VMware-code-Discussions/Esxi-Webservice-Login-Not-Working/m-p/2952070#M2211</link>
      <description>&lt;P&gt;It worked, thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 08:44:39 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-code-Discussions/Esxi-Webservice-Login-Not-Working/m-p/2952070#M2211</guid>
      <dc:creator>cubits</dc:creator>
      <dc:date>2023-02-02T08:44:39Z</dc:date>
    </item>
  </channel>
</rss>

