惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Secure Thoughts
Security Latest
Security Latest
Simon Willison's Weblog
Simon Willison's Weblog
O
OpenAI News
GbyAI
GbyAI
L
LINUX DO - 最新话题
A
Arctic Wolf
T
Tor Project blog
G
GRAHAM CLULEY
I
InfoQ
博客园_首页
IT之家
IT之家
The Register - Security
The Register - Security
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Proofpoint News Feed
The GitHub Blog
The GitHub Blog
Blog — PlanetScale
Blog — PlanetScale
N
Netflix TechBlog - Medium
K
Kaspersky official blog
博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
U
Unit 42
PCI Perspectives
PCI Perspectives
量子位
P
Palo Alto Networks Blog
S
Securelist
T
Troy Hunt's Blog
博客园 - 【当耐特】
Recorded Future
Recorded Future
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
S
Security Affairs
Engineering at Meta
Engineering at Meta
T
The Blog of Author Tim Ferriss
博客园 - 聂微东
罗磊的独立博客
N
News and Events Feed by Topic
人人都是产品经理
人人都是产品经理
B
Blog RSS Feed
NISL@THU
NISL@THU
C
Cisco Blogs
T
Threatpost
有赞技术团队
有赞技术团队
Forbes - Security
Forbes - Security
Hugging Face - Blog
Hugging Face - Blog
Last Week in AI
Last Week in AI
T
The Exploit Database - CXSecurity.com
Cloudbric
Cloudbric
Cyberwarzone
Cyberwarzone
Google DeepMind News
Google DeepMind News
C
Cyber Attacks, Cyber Crime and Cyber Security

博客园 - 谢小漫

弹出选择窗体控件(附源码) 获取枚举描述信息(Description)2 - 谢小漫 - 博客园 mshtml组件引用的问题 导出所有用户表到excel Sql Server数据导出EXCEL C#的串口编程 DataReceived XML-RPC.NET的X509Certificates如何使用呢 在读《C#和.NET 2.0实战》 如何在ASP.NET中做异步 如何在winform中用委托做异步 C#的串口编程 重新开始学习.net 在看Test-Driven Development In Microsoft .NET 最近了解过的一个支付接口 网站的第三天 BAIDU的第一个搜索访问进入网站 不错的日期选择 星期六提交sitemap 关于代码自动生成器
XML-RPC.NET
谢小漫 · 2009-01-14 · via 博客园 - 谢小漫

XML-RPC.NET,最近在用的一个DLL,用起来不错,几个代码就可以对远程的XML-RPC数据进行交换了。对XML-RPC不太懂的可以看看本网站的Xml-rpc类别。
我用这个是用来与远程的PHP网站来进行数据交换。相比WebServices这个大块头来说,xml-rpc就是小菜一碟了。不过这小菜下下酒还是不错的。
Overview
XML-RPC.NET is a library for implementing XML-RPC Services and clients in the .NET environment, supporting versions 1.0, 1.1, and 2.0 of the .NET runtime. The library has been in development since March 2001 and is used in many open-source and business applications. Its features include:

interface based definition of XML-RPC servers and clients
code generation of type-safe client proxies
support for .NET Remoting on both client and server
ASP.NET Web Services which support both XML-RPC and SOAP
client support for asynchronous calls
client support for various XML encodings and XML indentation styles (some other XML-RPC server implementations incorrectly only accept certain indentation styles)
built-in support for XML-RPC Introspection API on server
dynamic generation of documentation page at URL of XML-RPC end-point
support for mapping XML-RPC method and struct member names to .NET-compatible names
support for Unicode XML-RPC strings in both client and server
support for optional struct members when mapping between .NET and XML-RPC types
The XML-RPC.NET library is CLS-compliant and so can be called from any CLS-compliant language, the main examples being C# and VB.NET.

个人觉得美中不足的地方是只是使用WebRequest来提供一个Http Proxy功能,想在上边实现一个Socket代理。

其实这个功能好像微软也是没有提供的,微软的WebRequest也是只有一个WebProxy提供,没有提供一个Socket5Proxy。刚开始的时候想法就是分别对待,对于WebProxy,就给用户一个WebRequest;而对于Socket5Proxy,就给用户一个自己重新定义的Socket,连接到Proxy服务器,然后向它发送请求(这里是Web请求)。
后来又看了看XML-RPC.NET的代码,发现实现这个比重新实现一个WebRequest来得更复杂,而且是特别龌龊。所以就此,先向简单的出发,实现Socket5Proxy,再向WebProxy实现。

花了两天,了解了一下之后,大致的代码已经成功了。也在codeproject上找到了一个MyWebRequest的类似WebRequest的实现代码。

另外一点:XML-RPC.NET的X509Certificates如何使用呢?要练习一下才行。c