首页 Soft PlugIn RAN乱 Dev开发 Info资料 English WAP 留言 登陆 注册
-
Posted by Yippee | 评论(1) | 引用(0) | 阅读3344次
C# MSN Search Web Service 失败

C# MSN Search Web Service 失败

根据资料说明,分别进行两种操作,结果均失败。

使用MSN Search Web Service开发搜索应用
http://www.microsoft.com/china/MSDN/library/WebServices/WebServices/msnsearch.mspx


结果就不行了:
2.
 添加MSN Search API XML Web Services引用集

[C#] using WindowsSearchForm.MSNSearch;
 
 添加了 http://soap.search.msn.com/webservices.asmx?wsdl
 "MSNSearchService" 说明
方法
Search(Request As SearchRequest) As SearchResponse

但是名称是:com.msn.search.soap

 这里USING之后:
\msnserch\Form1.cs(10): 类型或命名空间名称“MSNSearch”在类或命名空间“WindowsSearchForm”中不存在(是否缺少程序集引用?)

然后又到 网站下载SDK
File Name:  MSNSearchWebServiceSDK.exe
Version:  V0.5.0
Date Published:  9/14/2005
http://www.microsoft.com/downloads/details.aspx?FamilyID=c271309b-02de-42a7-b23e-e19f68667197&displaylang=en

The MSN Search SDK provides documentation that describes the core concepts, requirements, development guidelines, and class library for the MSN Search Web Service. The SDK also contains sample code that demonstrates application development techniques using the MSN Search Web Service.

解压之后,打开 WindowsSearchForm.sln

结果这里就报错
// Catch SOAP exceptions.
catch(SoapException fault)
{
 System.Diagnostics.Trace.WriteLine(fault.ToString());
}

System.Web.Services.Protocols.SoapException: Client Error
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at WindowsSearchForm.MSNSearch.MSNSearchService.Search(SearchRequest Request) in  \WindowsSearchForm\Web References\MSNSearch\Reference.cs:line 38
   at WindowsSearchForm.frmSearchSample.btnSearch_Click(Object sender, EventArgs e) in  \windowssearchform\searchform.cs:line 551

Reference.cs:line 38            object[] results = this.Invoke("Search", new object[] {

searchform.cs:line 551  
// Execute the search request and return the search response by
// setting the SearchResponse to MSNSearchService.Search(SearchRequest).
searchResponse = s.Search(searchRequest);

MSNSearchService s = new MSNSearchService()


字体:

Permanant URI永久地址 http://www.shengfang.org/blog/p/MSNSearchWebfaile.php
Trackback URI引用地址 http://www.shengfang.org/blog/tb.php?tb_id=1133752818

2005年12月5日11:20星期一  [Dev开发] 追踪此文的RSS
ethan在 2006年6月9日17:46星期五 评论:
你申请msn search 开发者id了么
Yippee 回复于 2006年6月9日20:59
没有,还没有用到呢。

称呼:    登陆   注册
   不注册,但记住我的信息
邮件:
(非必须)
评论: [UBB代码帮助]
粗体 斜体 下划线 链接 水平线 引用



验证码: 请输入你看见的数字
关闭UBB      提交时自动将内容复制到剪贴板

公告





统计信息
[Yippee]||[统计]||日志:2143
在线: 15||用户: 2635 [列表]
今日:475||到访:3654260
Rss:||评论:1668

最新日志

最新评论

友情链接

日历
342009 - 0734
   1234
567891011
12131415161718
19202122232425
262728293031 

最新引用
搜索

归档

杂项
Get RSS Feed (Version 2.0)
Get Atom Feed (Version 0.3)
编码:  UTF-8