VMware {code} Community
Sirry
Enthusiast
Enthusiast

Starting to learn the SDK... need some help getting the demos working

Hello,

     I have had a decent amount of experience working with PowerCLI, but there has been a recent need to pick up the Java SDK. I am running Windows 7 and have downloaded JDK 7, and the SDK package from my local ESXi server, but am having some issues running the examples. Here is some output that has me scratching my head:

c:\SDK\JAXWS>run.bat Connect --username eshen --password mypassword --url https://myserver/sdk

WARNING: Java is now set to trust all SSL certificates.

-- VMware samples in Java --

The server at https://usyp-vctr55.kingstonlab.corp:7444/ims/STSService did not respond as expected. Is this a valid URL?Note: SSO connections only work on vCenter SSO enabled products.

Use the --basic-connection switch if you know this is an ESX host.

See the connection.properties file for more instructions.

No valid connection available. Exiting now.

Done.

It seems like changing the url around a bit always ends up redirectiong to the :7444/ims/STSService address.

When I go to that address, something does pop up, with the source code as follows:

<html>
<head><title>
Web Services
</title></head>
<body>
<h1>Web Services</h1>
<table width='100%' border='1'>
<tr>
<td>
Endpoint
</td>
<td>
Information
</td>
</tr>
<tr>
<td>
<table border="0"><tr><td>Service Name:</td><td>{http://docs.oasis-open.org/ws-sx/ws-trust/200512/wsdl}STSService</td></tr><tr><td>Port Name:</td><td>{http://docs.oasis-open.org/ws-sx/ws-trust/200512/wsdl}STSService_Port</td></tr></table>
</td>
<td>
<table border="0"><tr><td>Address:</td><td>https://usyp-vctr55.kingstonlab.corp:7444/sts/STSService</td></tr><tr><td>WSDL:</td><td><a href="https://usyp-vctr55.kingstonlab.corp:7444/sts/STSService?wsdl">https://usyp-vctr55.kingstonlab.corp:7444/sts/STSService?wsdl</a></td></tr><tr><td>Implementation class:</td><td>com.vmware.identity.sts.ws.StsServiceImpl</td></tr></table>
</td>
</tr>
</table>
</body>

</html>

Can anyone run into a similar issue when starting to learn the SDK?

Reply
0 Kudos
0 Replies