【在线等。。。】 开源框架EasySL调用webservice

austin_luobj 2013-01-05 05:01:25
因为公司的后台主要是用webservice开发的,现在需要把前台改造下,
最近在研究EasySL框架,不知是动态调用已经部署好的WebService服务~~~
按照EasySL调用方法传参数的机制,如果我调用webservice的话
在webservice需要怎么解析参数。
拜托各位大侠帮帮忙。。。。
...全文
171 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
austin_luobj 2013-01-08
  • 打赏
  • 举报
回复
谢谢各位,EasySL的代码调试了下,发现了里面GetData.asmx进行了特殊处理,在web.config文件指定调用特定的方法。而且配置webservice的地方需要在*.asmx加上调用的方法名加上。 结贴鸟。
jv9 2013-01-06
  • 打赏
  • 举报
回复
EasySL支持webservice调用,楼主不用考虑过多细节,只需要在移植项目中添加新webservice即可,创建方法楼主可以参考: http://silverlightchina.net/html/tips/2012/1110/20043.html http://silverlightchina.net/html/tips/2012/0913/18876.html http://silverlightchina.net/html/tips/2012/0812/18081.html http://silverlightchina.net/html/tips/2012/0812/18079.html http://silverlightchina.net/html/tips/2012/0717/17439.html
在路上20130607 2013-01-06
  • 打赏
  • 举报
回复
根据接收的字符串 来决定调用的方法 用这种方式 来做webservices 是不是不合适··· 没用过 EasySL 没有的话 可以自己建一个
austin_luobj 2013-01-05
  • 打赏
  • 举报
回复
看了下框架里面的代码有些不是很明白,下面的URL传的参数是 string requestHandleUrl = GetServiceUrl("GetData.asmx"); 但我在整个项目解决方案里面没有看到GetData.asmx这个webservice.

public HttpHelper(Uri requestUri, string method, params KeyValuePair<string, string>[] postValues)
        {
            this.Request = (HttpWebRequest)WebRequest.Create(requestUri);
            this.Request.ContentType = "application/x-www-form-urlencoded";
            this.Request.Method = method;
            this.PostValues = new Dictionary<string, string>();
            if (postValues != null && postValues.Length > 0)
            {
                foreach (var item in postValues)
                {
                    this.PostValues.Add(item.Key, item.Value);
                }
            }
        }
austin_luobj 2013-01-05
  • 打赏
  • 举报
回复
引用 2 楼 luoSaiMingJavaAndC 的回复:
你们的webservices 是怎么写的?
现在的服务端比较简单,主要接收分发的字符串,根据这个来判断调用哪个方法。 现在如果单纯的考虑在EasySL框架里面调用我已经发布好了的webservice不知如何做。
在路上20130607 2013-01-05
  • 打赏
  • 举报
回复
你们的webservices 是怎么写的?
在路上20130607 2013-01-05
  • 打赏
  • 举报
回复
是不是考虑多了? 客户端的调用 不能要求服务端去做各种各样的兼容

8,757

社区成员

发帖
与我相关
我的任务
社区描述
WPF/Silverlight相关讨论
社区管理员
  • WPF/Silverlight社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧