Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jan 2013
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    TO process server response

    HI!
    I have not worked on server/client framework for many years now and now I am trying to get response from the server and print it on a webpage.
    I have to send a request in xml tag and the response come back in xml format as well.
    Can i send the request in a html file with the form tag and how do i process the response and display it in the same webpage? Can javascript do this work? or do i need something like .net/php etc.
    The server at the moment is local host on a particular port.
    Thank you.
    DP

  2. #2
    Master Coder sunfighter's Avatar
    Join Date
    Jan 2011
    Location
    Washington
    Posts
    6,400
    Thanks
    30
    Thanked 877 Times in 875 Posts
    You need explain your self some more. What do you mean
    I have to send a request in xml tag
    What are you sending this to and how is the receiving program reading this?
    Are you asking for an xml file?

  3. #3
    New to the CF scene
    Join Date
    Jan 2013
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I need to send a request to a server(currently it's localhostortno) in this format
    <Request><Getjobstatus></Request>

    The server will respond something like this
    <?xml tag.....
    <Response>
    <Jobid>dkljfldkf<jobid>
    <status>done</status>

    </Response>

    The response is already in place and i don't have to worry abou tthat. All I am trying to do is send the request and receive the response and show it in a webpage.
    I hope i make sense.

  4. #4
    Master Coder sunfighter's Avatar
    Join Date
    Jan 2011
    Location
    Washington
    Posts
    6,400
    Thanks
    30
    Thanked 877 Times in 875 Posts
    Read my response to this thread http://www.codingforums.com/showthre...22#post1306722 for showing the response. The problem I'm having is with the request. Looks like a lot missing (ex:soap) or something I know nothing about.

  5. #5
    New to the CF scene
    Join Date
    Jan 2013
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    We have a C csocket app which takes in request and responds with xmltag.
    The response is a stream of data which includes xml tag. I need to send a request(xmltag) to the server and display the result(using the xml tag and xsl) in an IE.
    Since there is no actual page in the server I can't do localhostortno/webpage?querystring. I need to convert this string of xmltag which is in the csocket app to a webpage. What is the best way to do this?
    I hope I have put this in the right forum, if not please redirect me?

    Thanks in advance.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •