• Post Reply Bookmark Topic Watch Topic
  • New Topic

accessing a web service  RSS feed

 
igwe kalu kalu ogba
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I've deployed a webservice on the tomcat server. But to access it, I use http://localhost:8080 e.t.c e.t.c. My question is, since this web seRvice is deployed on a web server which is connected to the internet, will it be possible to access this web service from another internet connection besides my own? i.e , I dont want to use localhost but maybe, an ip address or something similar. I want it to be accessed by everyone on my LAN. Please help.

Also, this is slightly beside the point, but how can I create a folder and write to a file in java.I need to write a specific file to a specific folder. Thanks.
 
Kishore Dandu
Ranch Hand
Posts: 1934
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may have to look into concepts of UDDI etc so that you can discover a webservice from a different domain.

With respect to writing to a file using your java classes, isn't that insecure to do file modifications using J2EE. Why not saving to a database and insert some transactional security?
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your web service is deployed on a machine accessible from the internet, then every body on earth will be able to call it, using the IP address (or DNS name) and the port number.

This has nothing to do with UDDI, which is another concept
 
igwe kalu kalu ogba
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah jean louis, that is what i was thinking of. I have it hosted on a tomcat server, but how do I make it available publically?
Any answers of my previous question would be appreciated to. Thanks
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Igwe,

Public access is not related to Tomcat or web services. It is related to IT infrastucture. If your machine has an IP address accessible from the internet (no firewall, or http port opened), then your deployed service is *de facto* available publically
Check with your network administrator to obtain the answer.

Now about creating a folder and a file, you should post your question in the Java forum, as it is not specific to web services.
You can also check the java.io.* packahe in the J2SE API
[ February 16, 2005: Message edited by: Jean-Louis Marechaux ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!