• [BTS]为什么BTSharePointAdapterWS.asmx无法预览?


    Web Service的调试习惯,希望用IE去看WS内容。

    而BizTalk的SharePointWS在访问时报错。

    无法识别请求格式。

    说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

    异常详细信息: System.InvalidOperationException: 无法识别请求格式。

    源错误:

    执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。

    堆栈跟踪:

    [InvalidOperationException: 无法识别请求格式。]
       System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response) +405942
       System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext context, String verb, String url, String filePath) +212
       System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +193
       System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +93
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
    

    其实,修改这个问题很简单,把web.config中的配置修改一下就可以了。

    默认文件路径:C:\Program Files\Microsoft BizTalk Server 2006\Business Activity Services\BTSharePointV3AdapterWS\Web.config

    修改内容如下:

      <webServices>
       <protocols>
        <!--<remove name="Documentation"/>-->
       </protocols>
      </webServices>

    这样,默认的ws就可以通过IE访问了。

    BTSharePointAdapterWS


     

    支持下列操作。有关正式定义,请查看服务说明

  • 相关阅读:
    Day3学习笔记
    Day2学习笔记
    Day1学习笔记
    中文标识
    about original idea
    那些和matlab有关的
    GRE Sub math 报名
    虽然实际没有什么用,但是可能会有理论上的意义吧
    latex相关
    对venturelli theorem的重新认识
  • 原文地址:https://www.cnblogs.com/xuzhong/p/1437502.html
Copyright © 2020-2023  润新知