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 8785051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:15:16+00:00 2026-06-13T21:15:16+00:00

I have a simple question about deploying web services. Currently I have two endPoints,

  • 0

I have a simple question about deploying web services. Currently I have two endPoints, see below:

Endpoint.publish("http://localhost:8000/eCalcWS/eCalc", new eCalc());

Endpoint.publish("http://localhost:8001/eCalcWS/eCalc_service", new eCalc_service());

Is it possible to have two web services on the same address? How would I do that?

  • 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-06-13T21:15:17+00:00Added an answer on June 13, 2026 at 9:15 pm

    Unfortunately you can not the way you want.
    The design is that each endpoint is associated with web service implementor.
    From spec:

    The Endpoint class can be used to create and publish Web service
    endpoints. An endpoint consists of an object that acts as the Web
    service implementation (called here implementor) plus some
    configuration information, e.g. a Binding

    and on publish (my emphasis):

    publish(String address, Object implementor)
    Creates and publishes an Endpoint for the given implementor. The binding is chosen by
    default based on the URL scheme of the provided address (which must be
    a URL). If a suitable binding if found, the endpoint is created then
    published as if the Endpoint.publish(String address) method had been
    called. The created Endpoint is then returned as the value of the
    method.

    I remember I also encounter this problem quite a while back which is really bad as I needed to associate 2-3 different implementations with different URLs and it was impossible (got address already bind error).
    The way I got around this if I recall was to create my own dispatcher.
    I published an endpoint that accepted web service requests for multiple endpoints and dispatched the request to the corresponding implementation. I worked directly on the SOAP message.
    But it was possible for me since the xml messages were really simple and quite few.
    For you I would recommend to publish in different endpoints if your web service implementations are non-trivial and have complicated messages and expect a lot of clients as the endpoint really just deploys a simple http server under the hood.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have another simple question about Node. I'm trying to make a simple http
I'm looking to deploy a web app and I have a simple question about
I have a simple question about the expression in jquery to select a class
I have a simple question about the barplot function. I have a TRUE/FALSE table
I have a fairly simple question about these 2 templating engines. I'm trying to
I have what I hope is a fairly simple question about using the value
I have a question about XSLT. On a website i have a simple calendar,
I have a simple question, but I'm about 80% sure that the answer to
I am learning Servlets/JSP/MVC and have a question about architecting a simple application. I
I have a simple question about the most efficient way to perform a particular

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.