| Author |
Message |
|
|
Post subject: Running & testing web service example
Posted: Jan 07, 2008 - 04:38 PM
|
|
Registered Member

Joined: Jan 06, 2004
Posts: 23824
|
|
Originally Posted by WilliamCraine
Hello!
I doing the "MyEclipse Code-First Web Service QuickStart" example. On step # 8, that is Test a Web Service with Web Service Explorer, it states in the Action Panel enter the following URL to the HelloWorldService WSDL document. It is "http://localhost:8095/HelloWorld/services/HelloWorldService?WSDL" Please not that the port number is 8095. Tomcat-5.0.29 works fine, that is, when I use the following URL
http://localhost:8095/ I get the tomcat home web page, so that is not an issue. My is issue is that it states that the Web Services Explorer will download the auto-gernerated WSDL created by the XFire farmework and create a list of operation, but this never happens.
Another strange thing, is that if I select the Browse... link the open the Web Browser window the Category list-box and the Workspace Project List-box is correctly populated but the WSDL URL list box is empty.
I'm use My Eclipse 5.5.1with Java 5 I thank you for your time and help with my problem |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jan 07, 2008 - 04:46 PM
|
|
Registered Member

Joined: Jan 06, 2004
Posts: 23824
|
|
William,
Just to make sure you are using the explorer correctly. You have to switch to the WSDL inspector mode (Step 1 in screenshot) then click the Main link then enter in the URL and hit Go. Then the operations for your service will be shown to you and can be executed/interacted with. |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jan 08, 2008 - 01:34 AM
|
|
Registered Member


Joined: Jan 06, 2008
Posts: 3
|
|
|
|
|
 |
|
|
Post subject:
Posted: Jan 08, 2008 - 03:55 PM
|
|
Registered Member

Joined: Jan 06, 2004
Posts: 23824
|
|
William,
I don't know if this is a typo or not, but in the first line of your error, the URL ends with a period ("?WSDL.") was that a typo, or did you try and load the URL with a period at the end? |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jan 09, 2008 - 04:13 AM
|
|
Registered Member


Joined: Jan 06, 2008
Posts: 3
|
|
Good Morning Riyad!
I'm sorry but the line you are talking about was just cut & pasted from the following error message (very first line)
Why is (4th line) this error message so ambiguous?
IWAB0379E Unable to open http://localhost:8095/HelloWorld/services/HelloWorldService?WSDL.
IWAB0135E An unexpected error has occurred.
WSDLException
WSDLException: faultCode=OTHER_ERROR: Connection refused: connect
Thanks for all your time and help. Tell me and you can take over my tower and test this app yourself |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jan 09, 2008 - 03:05 PM
|
|
Registered Member

Joined: Jan 06, 2004
Posts: 23824
|
|
Well it looks like the URL is wrong. A few things to check:
1. Is your server running? Does http://localhost:8095 reply at all?
2. You are sure 8095 is the right port you set Tomcat to run on right?
3. You made sure to deploy your project correctly right?
4. In your web.xml file, you mapped your web services to the /services/* url pattern right?
5. Did you name your service HelloWorldService? |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|