【问题标题】:How to Authenticate to a asp.Net webservice from Flash Media Server如何从 Flash Media Server 向 asp.Net Web 服务进行身份验证
【发布时间】:2010-03-05 19:30:56
【问题描述】:

我找遍了所有地方,都找不到这个地址。

我有一个 Flash Media Server 脚本,它在用户连接时将数据写入 ASP.Net Web 服务。效果很好,但如果可能,我想锁定安全性。

我能想到的最好办法是向客户端 flv 的 flashVars 添加一个令牌,然后在进行 Web 服务调用时通过 FMS 传递它,但如果可能的话,我更喜欢另一种方法。使用 SOAP 身份验证等的东西?

这是 FMS 脚本的相关部分

load("webservices/WebServices.asc");

application.onAppStart = function()
{
 application.allowDebug = true;

 webServiceObj = new WebService('http://webserviceURI.asmx?WSDL');
 webServiceObj.onLoad = function(Wsdl){
  trace("result string -- " + Wsdl);
 }

 webServiceObj.onFault = function(fault){
  trace("web service fault --" + fault.faultstring);
 }
}

application.onConnect = function(client, name, guid, role, sessID)
{
 callWebMethod = webServiceObj.MyWebSErviceFunction(parameters...)


 callWebMethod.onResult = function(returning){
  trace("called back from WebService");
 }
}

【问题讨论】:

    标签: asp.net web-services authentication flash-media-server


    【解决方案1】:

    刚刚在Adobe documentation for the WebService class找到了这个问题的答案:

    注意:WebService 类无法检索复杂数据或 Web 服务返回的数组。此外,WebService 类不支持安全功能。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-11
      • 2016-06-10
      • 1970-01-01
      • 2012-07-28
      • 2011-08-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多