Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » newbie question
newbie question [message #174604] Sun, 16 July 2006 20:04 Go to next message
Eclipse UserFriend
Originally posted by: tiberiu_motoc.yahoo.ca

Hi.

I'm just starting with Web Services and Eclipse and I'm trying to set up
my first simple web service.
I have a web service running in IIS on a Windows XP machine
(http://localhost:1635/NetWSService/Service1.asmx - the machine's name is
serec). It exposes a simple "add" method (takes two integers, returns the
sum).
I did create a web service client with Eclipse WebTools (I added the wsdl
of the web service) and I generated the client jsp pages, but the invoking
of the "add" method times out. I debugged the application and I can see it
timing out on the following line:
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new
java.lang.Integer(x), new java.lang.Integer(y)})

I think I'm not setting up the soap:address location correctly in the wsdl
file. I tried "http://serec/NetWSServer/Service1.asmx" and
"http://serec.mydomain.com/NetWSServer/Service1.asmx" and
"http://serec:1635/NetWSServer/Service1.asmx" and
"http://serec.mydomain.com:1635/NetWSServer/Service1.asmx".
I also tried replacing serec with the direct IP of the Windows XP machine
and nothing works.
My web service client is running on Solaris 5.8. Both client and server
are setup on two different networks (UNIX and Windows) on the same domain.

What am I doing wrong?

Thanks,
Tiberiu
Re: newbie question [message #174693 is a reply to message #174604] Mon, 17 July 2006 16:03 Go to previous messageGo to next message
Seng Phung Lu is currently offline Seng Phung LuFriend
Messages: 62
Registered: July 2009
Member
Hi Tiberiu,

The service's correct endpoint URL should be identified in your WSDL by
the "<wsdlsoap:address location=... >" attribute. With .NET services,
if the service if running, you should be able to see the WSDL by
appending ?WSDL to the end of the service URL.

ie. http://localhost:1635/NetWSService/Service1.asmx?WSDL

Have you tried running the client on the local machine to ensure it is
operational?

After you've confirmed it is running and you still don't get a response
from the service on other machines, then I suspect you may be having
server/network issues. ie. Is your machine serving Web pages? Is it
accessible from other machines in your network/internet? Is there a
firewall blocking communication? Those would be the next questions to
answer in your exercise.

hth,
-Seng


Tiberiu Motoc wrote:
> Hi.
>
> I'm just starting with Web Services and Eclipse and I'm trying to set up
> my first simple web service.
> I have a web service running in IIS on a Windows XP machine
> (http://localhost:1635/NetWSService/Service1.asmx - the machine's name
> is serec). It exposes a simple "add" method (takes two integers, returns
> the sum).
> I did create a web service client with Eclipse WebTools (I added the
> wsdl of the web service) and I generated the client jsp pages, but the
> invoking of the "add" method times out. I debugged the application and I
> can see it timing out on the following line:
> java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new
> java.lang.Integer(x), new java.lang.Integer(y)})
>
> I think I'm not setting up the soap:address location correctly in the
> wsdl file. I tried "http://serec/NetWSServer/Service1.asmx" and
> "http://serec.mydomain.com/NetWSServer/Service1.asmx" and
> "http://serec:1635/NetWSServer/Service1.asmx" and
> "http://serec.mydomain.com:1635/NetWSServer/Service1.asmx".
> I also tried replacing serec with the direct IP of the Windows XP
> machine and nothing works.
> My web service client is running on Solaris 5.8. Both client and server
> are setup on two different networks (UNIX and Windows) on the same domain.
>
> What am I doing wrong?
>
> Thanks,
> Tiberiu
>
Re: newbie question [message #174731 is a reply to message #174693] Mon, 17 July 2006 21:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tiberiu_motoc.yahoo.ca

Thanks Seng.

There might be a problem with security. I know the network admins don't
let anything squeeze in from outside (or from within).
The web service does work on the Windows host machine. It is started at:
http://localhost:1635/NetWSService/Service1.asmx. However if I try to
access it at: http://ceres:1635/NetWSService/Service1.asmx or
http://ceres.mydomain.com:1635/NetWSService/Service1.asmx, or
http://[numeric_IP]:1635/NetWSService/Service1.asmx, I cannot see it.
Should I be able to see it as listed above?

Thanks,
Tiberiu
Re: newbie question [message #174984 is a reply to message #174731] Wed, 19 July 2006 19:40 Go to previous message
Graeme Harker is currently offline Graeme HarkerFriend
Messages: 12
Registered: July 2009
Junior Member
You will be able to see the web service using any of these URLs if you
set up the security right. There are two security systems in .NET Web
services - one done by IIS and one done by ASP.NET - both are used -
they're layered on top of each other and it's pretty complicated.

If that wasn't complicated enough, Windows clients and non-Windows
clients are authenticated differently by IIS.

What client are you running on the server box to test the access to the
web service, Visual Studio? IE? Eclipse?

Tiberiu Motoc wrote:
> Thanks Seng.
>
> There might be a problem with security. I know the network admins don't
> let anything squeeze in from outside (or from within).
> The web service does work on the Windows host machine. It is started at:
> http://localhost:1635/NetWSService/Service1.asmx. However if I try to
> access it at: http://ceres:1635/NetWSService/Service1.asmx or
> http://ceres.mydomain.com:1635/NetWSService/Service1.asmx, or
> http://[numeric_IP]:1635/NetWSService/Service1.asmx, I cannot see it.
> Should I be able to see it as listed above?
>
> Thanks,
> Tiberiu
>
Previous Topic:usage of wsexplorer.war
Next Topic:Web Services Explorer and Authentication
Goto Forum:
  


Current Time: Wed Apr 24 19:48:57 GMT 2024

Powered by FUDForum. Page generated in 0.02823 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top