newbie question [message #174604] |
Sun, 16 July 2006 20:04 |
Eclipse User |
|
|
|
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 |
Seng Phung Lu 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
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02823 seconds