Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6767555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:57:53+00:00 2026-05-26T14:57:53+00:00

I have a desktop application built with jdk 6 which publishes web services to

  • 0

I have a desktop application built with jdk 6 which publishes web services to be consumed by a web application. So far I’ve had no problem while both applications are running in the same physical computer, i can access the wsdl without any problem and the web application works with the desktop application just fine. The thing is I cannot access to the services from a remote computer in the same network. The two PCs are connected and can interact. If I run both applications in PC1, from PC2 I can use the webapp through

http://PC1:8080

I am currently publishing like this:

public Publicador(){
 servicios= new Servicios();
Endpoint endpoint = Endpoint.publish("http://PC1:8686/servicios", servicios);
}

where PC1 is the name of the pc. From PC1, i can see the generated wsdl from the following address, and it’s the one I used for the wsimport command:

http://PC1:8686/servicios?wsdl

But I cannnot from PC2.

Any ideas why it is not visible from outside PC1?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T14:57:54+00:00Added an answer on May 26, 2026 at 2:57 pm

    Incredible as it may seem, I found the simplest of answers… Instead of publishing as

    Endpoint endpoint = Endpoint.publish("http://PC1:8686/servicios", servicios);
    

    I published as

    Endpoint endpoint = Endpoint.publish("http://0.0.0.0:8686/servicios", servicios);
    

    and that solved it…

    Another solution was to get the address to publish from a file, that worked too. I don’t know why it didn’t hardcoded… I ended up doing it like this:

    Properties prop = new Properties();
    InputStream is = null;
    String currenDir = System.getProperty("user.dir");
    String nombreArchivo = currenDir + File.separator + "ubicacion.PROPERTIES";
    try {
    is=new FileInputStream(nombreArchivo);
    prop.load(is);
    } catch(IOException ioe) {}
    
    String pc = prop.getProperty("ServiciosWeb");      
    Endpoint endpoint = Endpoint.publish( pc, servicios);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's a use case: I have a desktop application (built using Eclipse RCP) which
I'm early in development on a web application built in VS2008. I have both
I have built Web sites with Python/Django and desktop applications with Objective-C/Cocoa so programming
I have a desktop application which contains an App.config (program.exe.config at release) with clearly
I have an Java desktop application which connects directly with the DB (an Oracle).
We have built an desktop(windows) application that needs SQL Server to store the data.
I have a fairly standard ASP.Net web application which is used via mobile safari
I have an ASP.NET web application I built for a client that uses default
I have a desktop application written in C#. It is trying to manage a
We have a desktop application that performs a pretty rigorous set of calculations in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.