473,396 Members | 1,768 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Forcing SSL redirect on webservice

The subject says it all, I have a webservice which I want to require SSL on.
I don't want to do this via IIS, I would like to enable it via the service.

Something where when the service is called, if it is called on port 80, it
redirects to 443.

I can do this on normal ASP and ASP.NET pages with ForceSSL.inc and a
include statement. I can't seem to figure out how to make it work with a web
service.

Anyone have any ideas ?
Dec 6 '05 #1
1 2269
Hi Chris,

I believe you cannot perform redirections from a web-service that simply.
Notice that a redirection is a HTTP response with status code 3xx, which
delegates to the client to request the (eventual same) web resource from
another URL. Although you can send the response code back to the client (for
instance, through HttpResponse.Redirect) you will always rely on the client
to perform the new request.

--

Best regards,

Abel Eduardo Pereira
"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:19**********************************@microsof t.com...
The subject says it all, I have a webservice which I want to require SSL
on.
I don't want to do this via IIS, I would like to enable it via the
service.

Something where when the service is called, if it is called on port 80, it
redirects to 443.

I can do this on normal ASP and ASP.NET pages with ForceSSL.inc and a
include statement. I can't seem to figure out how to make it work with a
web
service.

Anyone have any ideas ?

Dec 6 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Tin Man | last post by:
I have an aspx page: myPage.aspx that I want to always display in a new brower window regardless of how it gets invoked i.e. hyperlink, response.redirect, server.transfer. Is there something I can...
0
by: Neal | last post by:
Hi All I need to store data (DS) in a a session variable within my WebService and then Call an aspx page ie response.redirect (the webservice is part of a WebAppllication,...which allows a...
6
by: Stewart Saathoff | last post by:
Hello, I would like to programatically redirect the location of a web service from the client machine. Let me explain further. This is the exact process: I would like the client to click a...
0
by: JeffL | last post by:
I am trying to either redirect or throw an error through a webservice that has been called through Microsoft webservice.htc element. What I want to be able to do is if a user which no longer...
3
by: eross | last post by:
Noob here, I am trying to manage calls from multiple clients to my web service by only letting one execute at a time and forcing the others to wait. Code is as follows: ...
0
by: Andreas | last post by:
Hello, I have the folloing problem: We have an existing webService in C++ with several ports. Some methods in two ports have the same name and the same parameters. Know I am building a...
2
by: pbd22 | last post by:
Hi. I feel like i should know this but i dont. How do I get the server to send a specific HTTP response to the browser? I want to tell the browser that there is no content coming back from...
1
by: pmasclark | last post by:
Hello, I created a web site, site A, that redirects to another web site, site B, where a simple web service is hosted. The code to call the web service is simple. oWS.AllowAutoRedirect = True...
0
by: werbung | last post by:
Hi everyone, I have a class called Request and a whole bunch of inherited classes, for example RequestEntity. And I have a WebMethod Execute which takes the Request class as an argument: ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.