从桌面应用程序的帖子建议/指针/获取到.asp(或.ASPX)页面 [英] Suggestions/pointers for Post/Get to an .ASP (or .ASPX) page from a desktop app

查看:106
本文介绍了从桌面应用程序的帖子建议/指针/获取到.asp(或.ASPX)页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我计划有一个桌面应用程序与服务器上的一些.ASP或.ASPX页面交互。

I'm planning to have a desktop app interact with some .ASP or .ASPX pages on a server.

我只是做与.asp页一点点,我想我会刚刚发布或获取URL一些变量:

I've only done a little bit with .asp pages and I'm thinking I'd just Post or Get a URL with some variables:

MySite.com/Functions.asp?FunctionName=?Paramater1=somevalue?Parameter2 = ...

MySite.com/Functions.asp?FunctionName=?Paramater1=somevalue?Parameter2=...

我不知道是否有更好的方式去这件事吗?

I'm wondering if there is any better way to go about this?

我缺少的东西吗?有没有可能是一个更好的方式去了解呢?

Am I missing something? Is there perhaps a better way to go about this?

推荐答案

Windows通讯基础或Web服务可能是一个更好的主意,如果你不需要的网页的开销ASP或ASPX需要。这些将是我的建议,为更好的方式去这样做一些这方面。这是假设你没有的网页已经建成并处于设计这个早期阶段。

Windows Communication Foundation or Web Services may be a better idea if you don't require the overhead of the web page that ASP or ASPX requires. Those would be my suggestions for a better way to go about doing some of this. This is assuming you don't have the pages built already and are at the early stages of designing this.

WCF是更好,如果你只是想有传达来回的服务,从而可以拿出一些什么HTTP设置和手感,但是可能会更好,如果你想绕过我认为数据最小化。 WCF是.NET 3.0框架的一部分,因此,它可能不是什么要安装一定,因为它可能已经由默认在某些情况下,在那里。例如,这是取代.NET远程处理这本来是通过使用非标准端口等方式机器之间对象的古老方式,可能是在基础设施方面多做一些工作。 Web服务是更好,如果你并不需要所有有一个网页,并与有消息来回在SOAP或POX,或者不必是HTML其他格式确定。相反,一个ASPX的你有一个ASMX和落后,但在理论上有些code有一个精心打造的一套服务应该帮助,如果你曾经有上添加一个web前端或扎入别人的系统。

WCF is better if you just want to have services communicated back and forth, which can takes out some of what HTTP sets up and handles but could be better if you want to minimize the data passed around I'd think. WCF is part of the .Net 3.0 framework, so it may not be something to be installed necessarily as it may already be there by default in some cases. For example, this is what replaced .Net Remoting which would have been an older way to pass objects between machines in other ways using non-standard ports and may be a bit more work in terms of infrastructure. Web services are better if you don't need all that there is to a web page and are OK with having messages go back and forth in SOAP or POX or some other format that doesn't have to be HTML. Instead of an ASPX you'd have an ASMX and some code behind but in theory having a well-built set of services should help if you ever have to add on a web front-end or tie into someone else's systems.

这篇关于从桌面应用程序的帖子建议/指针/获取到.asp(或.ASPX)页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆