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

  • Home
  • SEARCH
  • 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 6635077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:00:23+00:00 2026-05-25T23:00:23+00:00

There is a web service that can only be consumed via http and a

  • 0

There is a web service that can only be consumed via http and a client that can only consume https web services. Therefore I need some intermediary that forwards on requests received in https and returns responses in http.

Supposing that the intermediary is completely dumb save for the fact that it knows where the web service endpoint is (i.e. it doesn’t know what the signature of the service is, it just knows that it can communicate with it via an http web request, and it listens on some https uri, forwarding on anything it receives), what is the most simple way of achieving this?

I’ve been playing around with this all day and am not sure how to achieve the “dumb” bit, i.e. not knowing the signature for passing back the verbatim response.

  • 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-25T23:00:23+00:00Added an answer on May 25, 2026 at 11:00 pm

    A dumb intermediary is essentially a proxy. Your best bet might to be just use standard asp.net pages (instead of shoehorning into service functionality like ASMX or WCF which are just going to fight you) so you can receive the request exactly as-is and process it in a simple way using standard request/response. You can make use of HttpWebRequest class to forward the request on to the other endpoint.

    1. Client requests https://myserver.com/forwarder.aspx?forwardUrl=http://3rdparty.com/api/login
    2. myserver.com (your proxy) reads querystring forwardUrl and any POST or GET request included.
    3. myserver.com requests to http://3rdparty.com/api/login and passes along GET or POST data sent from the client.
    4. myserver.com takes response and sends back as response to other endpoint (essentially just Response.Write contents out to the response)

    You would need to write forwarder.aspx to process the requests. Code for forwarder.aspx would be something like this (untested):

    protected void Page_Load(object sender, EventArgs e)
    {
        var forwardUrl = Request.QueryString["forwardUrl"];
        var post = new StreamReader(Request.InputStream).ReadToEnd();
        var req = (HttpWebRequest) HttpWebRequest.Create(forwardUrl);
        new StreamWriter(req.GetRequestStream()).Write(post);
        var resp = (HttpWebResponse)req.GetResponse();
        var result = new StreamReader(resp.GetResponseStream).ReadToEnd();
        Response.Write(result);  // send result back to caller
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We need to implement a WCF service on a machine that can only run
Is there a web-service/API that will provide information on who the US State and
are there any free web services out there that will detect the IP Address
There are plenty of examples of sending data to SugarCRM via a web-service, but
I'm creating a system that uses two web services and a client to provide
I need to consume an AXIS 1.4 Web service over SSL from a .NET
I'm looking for an app or a script (web service) that can clean up
Hi I'm bringing back some items from a web service that contains three strings.
I'm working on a web service at the moment and there is the potential
Is there any easy way to automatically deploy a web service / java web

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.