摘要: 调用webservice的几种方法:方法一:添加web引用(简单/方便 局限客户端是.net)方法二:Post xml(本文重点讲述)方法三:使用微软MSXML2组件(好像在window server2008上就不支持)方法四:在页面上添加form post到服务端//创建HttpWebReques... 阅读全文
posted @ 2015-05-30 18:01 jumahe 阅读(805) 评论(0) 推荐(0)
摘要: 使用XmlDocument类时候报错:未处理的XPathException:需要命名空间管理器或 XsltContext。此查询具有前缀、变量或用户定义的函数。需要使用XmlNamespaceManager类:Resolves, adds, and removes namespaces to a c... 阅读全文
posted @ 2015-05-30 17:50 jumahe 阅读(2875) 评论(0) 推荐(0)
摘要: 我的读后感:由于第一次接触WebService,对于很多概念不太理解,尤其是看到各个OpenAPI的不同提供方式时,更加疑惑。如google map api采用了AJAX方式,通过javascript提供API,而淘宝TOP则采用直接的HTTP+XML请求方式,最令我疑惑的是教材上讲的WSDL,UD... 阅读全文
posted @ 2015-05-30 15:52 jumahe 阅读(528) 评论(0) 推荐(0)
摘要: 来源This article describes a .NET Application model driven by the Web Services using the Virtual Web Service Proxy (written in C#)Download source files ... 阅读全文
posted @ 2015-05-30 15:50 jumahe 阅读(276) 评论(0) 推荐(0)
摘要: http://www.iteedu.com/plang/ccpp/cppdxjch2b/111.phpC++语言把每一个文件都看成一个有序的字节流(见图14.2),每一个文件或者以文件结束符(end-of-file marker)结束,或者在特定的字节号处结束(结束文件的特定的字节号记录在由系统维护... 阅读全文
posted @ 2015-05-30 14:25 jumahe 阅读(451) 评论(0) 推荐(0)
摘要: http://www.codeguru.com/csharp/csharp/cs_data/streaming/article.php/c4223/Streams-and-NET.htmIn this article I will show you the classes the .NET prov... 阅读全文
posted @ 2015-05-30 14:12 jumahe 阅读(171) 评论(0) 推荐(0)
摘要: 本文来源定义提供字节序列的一般视图。Provides a generic view of a sequence of bytes.流涉及三个基本操作Streams involve three fundamental operations:可以读取流(You can read from streams... 阅读全文
posted @ 2015-05-30 14:09 jumahe 阅读(233) 评论(0) 推荐(0)
摘要: 发送http请求,可以用HttpWebRequest,比如:HttpWebRequest logonReq = (HttpWebRequest)WebRequest.Create("http://127.0.0.1:8097");也可以直接发送基础字节,但要着重注意:(1)发送和接收之间要有等待,否... 阅读全文
posted @ 2015-05-30 12:54 jumahe 阅读(2439) 评论(0) 推荐(0)
摘要: 我们都会用字符分割字符串:string[] recvArr = recv.Split(';');如果用字符串分割呢?下面:string[] sArray = Regex.Split(recv, "\r\n", RegexOptions.IgnoreCase); 阅读全文
posted @ 2015-05-30 12:48 jumahe 阅读(2872) 评论(0) 推荐(0)