• WebService的一系列問題解答


    問題數 問題與解答
    Q1: 為什麼web services在IIS預設是不啟用的?有什麼用義嗎?
    A: For security issue, many services are not enable by default in nowadays. 採原則禁止,例外開放原則.Especially in Windows 2003 server. Even IIS and web service are disabled by default. You need to install IIS manually and then add web extension for those formats(like .asp, .aspx page).
    Q2: 在建立Web Services後,如何取得WSDL檔呢?
    A: 請您參考微軟網站上的說明
    http://www.microsoft.com/taiwan/msdn/library/2002/Feb-2002/article/MigrSOAPWebServ.htm
    使用SOAP 工具套件的WSDL 精靈產生WSDL 檔和WSML 檔
    或者在aspx後面加上『?wsdl』也可以得到WSDL內容
    Q3: Web services要如何回覆一般Web services?
    A: Web Service 在呼叫 Web Service 時一樣是以 SOAP 方式 ,可以加入其他的Web Service 參考來使用它
    Q4: 有什麼安全控管的機制可以用來限制使用者對Web services的存取呢?
    A: 可以利用Windows Authentication/Form Authentication 的方式與CAS (Code Access Security) 來管制 User 存取 Web Service.
    Q5: how to design the security function of Web services?
    A: You can refer Microsoft MSDN Design Pattern and Practices for more info:
    http://msdn.microsoft.com/architecture/
    Q6: 如何從Windows Application去做reference,Web services於IE6.0上執行?
    A: Web Service 不能在 IE 6 上執行,要在 IIS 上才能執行
    Q7: 如何用JavaScript call web services呢?

    A:

    可以搭配 SOAP Toolkit 來呼叫 Web Service
    Q8: 用Web services去發送信件在安全上的要做什麼準備呢?
    A: 提供一些注意的地方 :
    1. 資料的加密 (System.Security.Cryptographics)
    2. 資料通訊的加密 (SSL)
    3. 帳戶權限與存取權限 (Authentication/Authorization)
    Q9: 為什麼Web services在internet是正常的,但在intranet後,user就又進不來了?
    A: 請檢查Web Service Hosting 的 IIS 的存取權限
    Q10: 如何讓Web services在Windows CE中正常執行?
    A: Windows CE 可當 Web Service 的 Client,但不能作為 Web Service 的 Host
    Q11: 哪裡會提供Web services的相關錯誤訊息可參考,以備不時之需?
    A: 請參考http://forums.aspfree.com/t25602/s.html
    Q12: ASP可以直接連接Web services嗎?
    A: You can use SOAP Toolkit to consume Web Service.
    Q13: 如何建立XML Web Services?可以詳細說明嗎?因為我總無法成功!
    A: 可以利用 Visual Studio.NET 建立 "ASP.NET Web 服務" 專案
    Q14: 想利用ASP網頁資料直接讀取Access database,請專家建議我應該如何做比較好?
    A: 主要透過odbc
    Q15: 用戶端憑證要怎麼設定?
    A: Web services support client certificate authentication as a means of authenticating client applications. This How To shows you how to configure a Web service for client certificate authentication and how to call the Web service, passing a certificate from an ASP.NET Web
    application.
    How To Call a Web Service Using Client Certificates from ASP.NET
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secmod/html/secmod27.asp
    Building Secure ASP.NET Applications: Authentication, Authorization, and Secure Communication
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT13.asp
    Q16: 用Delphi、java開發的client可以正常使用WSE的Web services嗎?
    A: 請參考
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwse/html/wsejavainterop.asp
    http://msdn.microsoft.com/library/en-us/dnwebsrv/html/wsejavainterop2.asp
    Q17: 如何加密web server傳過來的訊息呢?有範例嗎?
    A: 可以利用System.Security.Cryptographics 來加密資料,在WSE 中也有專為 Web Service 設計的加密機制
    Q18: 將.Net Framework 1.0升級至1.1,原本可以使用的Web Service不能使用了,用Brower去連結遠端的Web Service時,呼叫其中一個服
    務,會出現"測試表單只適用於來自本機電腦的要求"?
    A: 預設開發好的web service測試表單只能在本機使用,因此您無法透過internet連接此測試網頁
    Q19: Web Service 是否有辦法不要安裝IIS呢?
    A: 預設在.NET必須使用IIS,java可以搭配tomcat等其他web server開發
    Q20: simultaneous Web services是default的功能嗎?
    A: 是的
    Q21: 為什麼Web services不要使用Forms驗證?
    A: 因為Web Service 是一個元件,沒有使用者介面, 所以儘量不使用 Form Authentication,但可以當做 Form 驗證的應用程式 (負責驗證)
    Q22: 使用ASP.NET 建立的 XML Web Service 所支援的平台與 ASP.NET XML Web Service 用戶端所支援的平台是相同的嗎?
    A: 用戶端和server端或者開發語言可以各自獨立
    Q23: 在建立XML Web Services時,同時需要安裝什麼嗎?
    A: 要安裝有 .NET Framework SDK 和 IIS (建議用 Windows 2000 Pro/Windows XP Pro/Windows Server),如果要方便開發的話可以加裝 Visual Studio.NET
    Q24: DRM可以跟Web Service可以配合使用嗎?要如何配合?
    A: Planning a DRM system. Your DRM system has the following components:
    . Your Web site is the focal point of your DRM system. It is the method by which your content is distributed to your consumers and the point at which consumer registration occurs. Windows Media Packager creates the skeleton of your Web site for you. However, to have a Web site that is visually exciting, it is recommended that you edit the pages yourself to give them a consistent look and feel. An easy way to do this is to use Microsoft® FrontPage® themes.
    . Your SQL Server databases are integral to the success of your DRM system. SQL Server databases are created that record the traffic on your Web site, such as user registrations, content downloads, and license distributions. You can create many useful reports out of your databases that can help you target your content to your consumers.
    . Your encoding platform is the computer on which you create your media content. Windows Media Packager can create content directly from stored source .wav or .mp3 files. To create content using a live source or .avi file, use Microsoft® Windows® Media Encoder.
    Q25: 如何讓SQL Server跟Web services結合起來讀取網路新聞的文件?
    A: 請您進一步詳述您的問題,一旦獲得您的資訊,我們將盡快與您聯繫
    Q26: 該先用什麼語言試寫Web services比較好學習呢?
    A: Use VB.NET(ASP.NET) coding will be more easiler.
    Q27: 如何將client端的Web services移到server端上?
    A: 可以使用 Xcopy deployment 部署Web Service 到Web Server 上,記得要複製所有的 .asmx, /bin 目錄與其他必要的檔案
    Q28: 用VB.NET寫的一個Web Service在Windows2000可以正常執行,但為什麼放到Windows 2003 Service就會出現錯誤?
    A: 請您進一步詳述您的問題,一旦獲得您的資訊,我們將盡快與您聯繫
    Q29: 要如何設定非同步的Web services?
    A: 請參考http://msdn.microsoft.com/library/en-us/dnservice/html/service09032002.asp
    Q30: Web services的HOST系統需求大致如何?
    A: 只要有安裝相關的server和sdk,不論在怎樣的系統都可以執行web service.
    Q31: how to use local Windows form to access Web services?
    A: 在開發一般的windows form加入web 參考即可使用web service提供的方法
    Q32: 將Web services移到別台電腦,另一台電腦是做備份,client端如何重新指定呢?
    A: 需要更新web參考
    Q33: 如何在client端去debug在server上的Web services?
    A: 請參考微軟網站上的文章
    HOW TO: Set Up and Use Remote Debugging in Microsoft Visual Studio .NET
    http://support.microsoft.com/default.aspx?scid=kb;zh-tw;318041
    Q34: Web services要如何做update?
    A: Just the same as you use ADO.NET update date.
    Q35: 用VB.NET發佈的Web services,只能用VB.NET呼叫出來嗎?
    A: 可以用任何支援Web services的語言呼叫
    Q36: 有什麼方法可以搜尋Web services的資訊呢?
    A: You can use UDDI to do that.
    Q37: 在開發Web Service client端時,可以不加入Web reference就找到Web Service的服務嗎?
    A: Use UDDI to do that.
    Q38: 如何讓一般視窗程式和Web services進行檔案的傳輸呢?
    A: 可以使用soap attachment / dime來傳遞檔案
    Q39: Accessing Web Services From DHTML如何利用Server Side去call Web Service?
    A: Just add the Web services reference.
    Q40: 怎麼將Web services改成動態網址呢?
    A: Please refer below URL for detail.
    Web Services Dynamic Discovery (WS-Discovery)February 2004
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnglobspec/html/ws-discovery.asp
    Q41: 如何讓.NET 用戶端與架構於Apache SOAP 2.2 上的Web services整合在一起?
    A: Just add Apache SOAP 2.2 上的Web services from .net.
    Q42: 從ASP移到ASP.NET後還可以在Netscape上run web services嗎?
    A: web service 和client無關
    Q43: 如何讓Web services與資料庫(SQL 2000)進行連結呢?
    A: web service和一般撰寫程式方法一樣,在VS.NET開發環境中您無須煩惱如何設定,只要按照一般使用ADO.NET連接資料庫方式撰寫即可
    Q44: 如何增加XML schemay於Web services WSDL中?
    A: Over the years, many industry-standard XML schemas and dialects have been developed. These industry-specific schemas embrace the original purpose of XML and are extremely valuable in promoting and supporting B2B interaction. Unfortunately, the ASP.NET Web Services runtime does not allow developers to directly reference external schemas from within their XML Web Services interface (the WSDL file). This article builds an external schema framework as an extension to the ASP.NET Web Services runtime to enable you to reference external schemas within your XML Web Service interface.
    Take Advantage of Existing External XML Schemas with a Custom Import Framework in ASP.NET
    http://msdn.microsoft.com/msdnmag/issues/02/12/XMLSchemaImporting/default.aspx
    Q45: 用ASP.NET架的Web services可以連到Linux上的Web services嗎?
    A: 可以,只要都符合SOAP協定

    最近在做一個WebService相關的程序,發現一個問題,當在我自己電腦上運行的WebService,被其它人訪問的時候在打開WebService頁面出現"測試表單只適用於來自本機電腦的要求",並且我寫的方法無法在其它電腦上通過ip地址在ie中訪問,在網上查找了一些方法,最後看到有在webconfig的配置<system.web>  </system.web>中添加如下代碼:

    <webServices>

                    <protocols>

                         <add name="HttpSoap"/>

                         <add name="HttpPost"/>

                         <add name="HttpGet"/>

                         <add name="Documentation"/>

                    </protocols>

               </webServices>

    我按照說明修改了webconfig,發現問題解決。

  • 相关阅读:
    由于客观原因,暂时学习php两天,然后继续学习.net
    【任务】html编辑器在vs2003下实现
    one bug og webMatrix when create a new file
    数据统一接口?
    安全3S
    一个订单管理页面
    【总结】浪费3个月向.net继续前进
    关于在asp.net中类的继承问题
    【心得】create a data table in webMatrix is very easy!
    Java与.NET谁是未来
  • 原文地址:https://www.cnblogs.com/godwar/p/1116714.html
Copyright © 2020-2023  润新知