zoukankan      html  css  js  c++  java
  • How to resolve the Web Service Invoke button missing?

    Hi. I've inherited a Web Service from a developer who is no longer
    here. One of the purposes of the service was to clear the cache on the
    server side. Up until a few days ago, it worked fine - I'd open up the
    service from my browser, select the appropriate function from the list,
    click the Invoke button and all worked well. One of the things I do
    each fiscal quarter is to make a change to the service, so it will
    return the correct fiscal year and quarter. It is hard-coded. Yes, I
    know...it should have been in a table. But, that's the way it works
    and what I have to deal with. Anyway, I made the latest change and the
    Invoke button has disappeared. I'm sure I did something, but not sure
    what.

    Before this started to not work, there was a message that said, "To
    test the operation using HTTP POST protocal, click the 'Invoke'
    button.' Now it says "The test form is only available for requests
    from the local machine." I suppose I could go to our web server and
    invoke it there when I need to, but I'd rather not.

    I don't have any real experience with Web Services and how they work,
    or even know any C# code (which is what it was written in), other than
    to be able to read it a little bit. Does anyone have any suggestions
    as to what I might look for to determine the cause of a missing Invoke
    button?
    -------------------------------------------------------------------------------------

    Below is the answer

    ---------------------------------------------------------------------------------------

    you need to explicitly enable whatever protocols are to be allowed from a
    remote machine in the web.config (There are additional entries beyond what is
    shown below):


    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
    ... <system.web>
    ...
    <webServices>
    <protocols>
    <add name="HttpPost" />
    <add name="HttpGet" />
    </protocols>
    </webServices>
    ...
    </system.web>
    </configuration>

    --

  • 相关阅读:
    结对项目电梯调度--设计模拟
    程序的单元测试
    一个文本单词统计的案例
    MFC vs2012 Office2013 读写excel文件
    Unix NetWork Programming(unix环境编程)——环境搭建(解决unp.h等源码编译问题)
    VMware三种上网模型
    矩阵求逆算法及程序实现(C++)
    unix环境高级编程基础知识之第四章
    2014阿里研发面试题目
    MFC下debug改成release版本出现问题及解决办法
  • 原文地址:https://www.cnblogs.com/Jayan/p/1706484.html
Copyright © 2011-2022 走看看