VMware Cloud Community
colinj
Contributor
Contributor

Eclipse, vCO web service and WSDL - somethings not right.

Howdy all,

For the last couple of days I've been trying to build a basic java client to interact with the vCO web service and I keep running in to the same roadblock. When I try and connect to the WSDL so that Eclipse can generate the stub code it doesn't recognize what's coming back from the server as a proper WSDL.

Here's what I'm using:

Eclipse Java EE IDE for Web Developers.

Version: Helios Service Release 2
Build id: 20110218-0911

Running on Windows 7 64bit

The URL that I'm using is:

http://<server name>:8280/vmware-vmo-webcontrol/webservice?WSDL

Any thoughts?

Thanks

Colin J.

0 Kudos
4 Replies
tschoergez
Leadership
Leadership

Hi!

When you open the url in a browser, you see the xml containing the WSDL-data?

(vCO only listens on the interface you have configured in the web-configurator)

I gave it a try with my ...

SpringSource Tool Suite

Version: 2.5.2.SR1
Build Id: 201102261000

(I don't know which Eclipse Version is in there)

...and stumbled over following bug:

http://forum.springsource.org/showthread.php?83788-STS-2.3.0-Bug-Create-Axis-SOAP-Web-Service

(seems to related to STS only, maybe?)

However, after deleting the file as recommended, I was able to create the stubs...

Do you get any specific error message?

Regards,

Joerg

0 Kudos
colinj
Contributor
Contributor

Thanks for the response.

I am able to connect to the web service and see the generated xml.

I don't actually get an error other than the web service client wizard reporting that the URL isn't WSDL.

I've also tried with the Indigo release of Eclipse and none of the Spring framework installed.

Eclipse Java EE IDE for Web Developers.

Version: Indigo Release
Build id: 20110615-0604

Thanks!

0 Kudos
tschoergez
Leadership
Leadership

hm, another thing:

vCO only supports WSDL 1.1.

maybe Eclipse expects some newert Version of the WSDL specifcation?

If this also not help: Can you generate the stubs manually (using some old Axis 1.4 version, that's the combination used in the Developer Guide)?

Regards,

Joerg

0 Kudos
tschoergez
Leadership
Leadership

oh, I forgot some other workaround:

Search in the examples-file:

http://www.vmware.com/support/orchestrator/doc/vco-samples-4.1.0-776.zip

If I remember correct, there is an example for a Java Webservice Client in source code, maybe you can get the stubs there....

0 Kudos