Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
浏览器交互的WCF配置文件?_Wcf_Data Binding_Browser - Fatal编程技术网

浏览器交互的WCF配置文件?

浏览器交互的WCF配置文件?,wcf,data-binding,browser,Wcf,Data Binding,Browser,我有一个简单的WCF 4.0服务和一些简单的方法,还有一个属性和一个返回列表的getter。以编程方式连接到时,服务工作正常。getter和接口上定义服务契约的其他方法一样被修饰 我的下一步行动是通过IE web浏览器访问该服务,以便服务器/部署管理员可以在服务安装后进行“smoketest” 这项工作目前正在进行: http://localhost/myservice.svc?wsdl 但我需要把事情做得更进一步,让它发挥作用: http://localhost/myservice.svc

我有一个简单的WCF 4.0服务和一些简单的方法,还有一个属性和一个返回列表的getter。以编程方式连接到时,服务工作正常。getter和接口上定义服务契约的其他方法一样被修饰

我的下一步行动是通过IE web浏览器访问该服务,以便服务器/部署管理员可以在服务安装后进行“smoketest”

这项工作目前正在进行:

http://localhost/myservice.svc?wsdl 
但我需要把事情做得更进一步,让它发挥作用:

http://localhost/myservice.svc/SmokeTest
并且在浏览器中显示结果,SmokeTest是一个具有getter的属性,它执行填充并返回我要在浏览器中显示的列表

到目前为止,我还不知道我的配置应该是什么样子。谢谢你的帮助

这是我在web.config中为该服务提供的全部内容。端点是myservice.svc:

  <behaviors>
  <serviceBehaviors>
    <behavior >
      <serviceMetadata httpGetEnabled="true" />
      <serviceDebug includeExceptionDetailInFaults="true"/>
    </behavior>
  </serviceBehaviors>
</behaviors>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> 
    <services>
        <service name="myservice.worker"  >
            <endpoint address="" binding="basicHttpBinding" contract="myservice.IServicio" />
        </service>
    </services>

相关问题,解释什么可以做,什么不能做:


使WCF服务与REST兼容可以提供一些免费的浏览器查看/调试。现在我有一个问题,让它在IIS5.1下运行。啊。但是谢谢!