• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

accessing a web service

 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1934
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic