• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need help to access a web service

 
Rudy Rusli
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I had a program that I created before to access a web service, where I created java files from the wsdl and then I compile the java files to get some class files.
Then I use this class files to connect to the web service.
The address of the webservice is something like this: "http://rudy_rusli_example.com/test.asmx"

But now I have a web service where the address of the webservice is "http://localhost/../test.asmx"
My question is why is it "localhost". Shouldn't it be a domain name or an IP address like I had before?

I'm pretty new in using web service so maybe I'm missing something here.

Thanks in advance for the help.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"localhost" is the implicit name of the machine where you're using it. So trying to access that URL would imply that you have that WS running on your machine - is that the case?
 
Rudy Rusli
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That what made me confused actually. I understand that "localhost" is my own machine but the webservice that I'm trying to access is webservice from my client that sends some data to me.

Shouldn't I connect to their server and not my localhost?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!