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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:29:39+00:00 2026-05-17T20:29:39+00:00

I have a project, which has a server listening on port 9999. Originally the

  • 0

I have a project, which has a server listening on port 9999. Originally the client is a flash program, which uses XML to communicate with the server. Now I want to write a web client to it(html). I want to make the modification as little as possible in the server side.

I am thinking using pure html + ajax. The problem I am facing is:

1) Can I send xml from the client side and wait for the response? If so, which is the most efficient way to develop it?

2) I think all the xml sent from client is embedded in HTTP request but my server didn’t know HTTP at all. Do I need to modify my server to be a CGI program?

Is there any good framework for me to start with?

  • 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-17T20:29:40+00:00Added an answer on May 17, 2026 at 8:29 pm

    Because it is no clear what kind your server is (probably it is based on java or C/C++ sockets), if it is true you can adapt it to use the HTTP protocol, then you can use javascript code on the client side for requesting the server, by means of JSON (you should prefer JSON over XML firstly because it is simpler and is in the core of the JavaScript language). Particularly I have found the Prototype.js library very efficient and simple:

    function doAJAXRequest(url, t_method, v_parameters, p_onsuccessfunction, p_onloadingfunction) {
        url = url + "?" + "randNum" + getRandom();
        var objAjax = new Ajax.Request( url, { method: t_method, parameters: v_parameters,  onLoading: p_onloadingfunction, 
                                               onSuccess: p_onsuccessfunction, onFailure: onfailureAjx } );
    }
    function setAJAXResultInElement(objRequest, elementId){ $(elementId).innerHTML = objRequest.responseText; }
    function onloadingAjx(){ /*...*/ }
    function onsuccessAjx(){ /*...*/ }
    function onfailureAjx(objRequest) { setAJAXResultInElement(objRequest, "div_main_result"); }
    

    For knowing more about prototype refer to: http://www.prototypejs.org/learn/introduction-to-ajax

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

Sidebar

Related Questions

i have a java ee project which has a text file that uses a
I have Django project on Dreamhost server which has several views that returns Json
I have a standard sql server 2008 project which has been created using vs2010.
I'm trying to implement a client server app which a Server program has a
I'm currently writing a project in Python which has a client and a server
I have a project which has some lib's associated with it (in Build Path).
I have a project which has a set of binary dependencies (assembly dlls for
I have a project which has shared functionality between three other projects and have
I have one project which has RIAService with entity framework that is referenced to
ok i have a project which has many gridview in its pages... now i

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.