title: Hosting a java made webservice
body: <p>So I have been working on a web service which communicates between the client and server. It fully works on my computer and am able to send requests from client to server while not in the same package. 
  I am hosting my service like: </p>
  
  <pre><code>public class WebServiceServer {
  
      public static void main(String[] args) {
          String bindingURI = "http://localhost:4040/absolute/uploadService";
          FileReceive service = new FileReceiveImpl();
          Endpoint.publish(bindingURI, service);
          System.out.println("Server started at: " + bindingURI);
      }
  }
  </code></pre>
  
  <p>And my client connects to my service like:</p>
  
  <p>public static void main(String args[]) throws Exception {</p>
  
  <pre><code>JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
  
  factory.getInInterceptors().add(new LoggingInInterceptor());
  factory.getOutInterceptors().add(new LoggingOutInterceptor());
  factory.setServiceClass(FileReceive.class);
  factory.setAddress
  ("http://localhost:4040/absolute/uploadService");
  FileReceive client =(FileReceive) factory.create();
  </code></pre>
  
  <p>From this point I would like to make the web-service public(able to connect from outside of the local-host). I installed ruby and ruby gems only to find out the local-tunnel is no longer available. I have then moved to using ngrok which forwarded a URL for me, but I cannot get any post requests to go through to it(as if it was my web-service) only get methods as I type the URL into my web-browser. Is anyone aware of any easier to use hosting services so that someone (outside of local-host) can post a file to my web-service? Thanks.</p>