【发布时间】:2012-02-26 19:24:23
【问题描述】:
我有一些接受字符串参数并返回 json 字符串的 ASMX Web 服务。它们看起来像这样:
WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.Web.Script.Services.ScriptService]
public class MyService : System.Web.Services.WebService
{
[WebMethod(EnableSession = true)]
public string MyWebMethod1(string TheParameter1)
{
TheClassThatDoesTheWork MyClass = new TheClassThatDoesTheWork();
return MyClass.DoTheWork1(TheParameter);
}
[WebMethod(EnableSession = true)]
public string MyWebMethod2(string TheParameter2)
{
TheClassThatDoesTheWork MyClass = new TheClassThatDoesTheWork();
return MyClass.DoTheWork2(TheParameter);
}
}
目前,他们在 HTTP 中的 IIS 上工作。我想在 Azure 中移动应用程序,并将 WCF 用于 Web 服务并使它们在 HTTPS 中工作。 最好的方法是什么?
谢谢。
【问题讨论】: