Yeah, so everyone knows WeatherBug, right? They have this URL...
http://[apicode].api.wxbug.net/weatherservice.asmx
Works great, but they don't supply an https alternative for those on secure connections.
What's the best technique to use here? I know I need to create my own page or service and that way it hits "my" service on https instead, but in the back end it would be pulling down the WeatherBug's service calls.
How would I write that inside of my own web service (asmx)?
This is what I was trying in an aspx page, but it wasn't working...
protected void Page_Load(object sender, EventArgs e)
{
Response.Write(
new StreamReader(
WebRequest.Create(
String.Format("{0}?{1}",
"http://[apicode].api.wxbug.net/weatherservice.asmx",
Request.QueryString.ToString()
)
).GetResponse()
.GetResponseStream()
).ReadToEnd()
);
}