Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/288.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/25.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
C# 不带.asmx扩展名的Web服务_C#_.net_Web Services_Asmx - Fatal编程技术网

C# 不带.asmx扩展名的Web服务

C# 不带.asmx扩展名的Web服务,c#,.net,web-services,asmx,C#,.net,Web Services,Asmx,我正在模拟一个web服务的wsdl文件。 在原始wsdl中,我看到: <soap:address location="http://localhost:13080/Core/ws/broker"/> 在我的实施过程中,我有: <soap12:address location="http://localhost:13080/Core/ws/broker/Broker.asmx"/> 如何从路径Broker.asmx中删除asmx部分,使我的服务可以被称为原始

我正在模拟一个web服务的wsdl文件。 在原始wsdl中,我看到:

  <soap:address location="http://localhost:13080/Core/ws/broker"/>

在我的实施过程中,我有:

<soap12:address location="http://localhost:13080/Core/ws/broker/Broker.asmx"/>


如何从路径
Broker.asmx
中删除asmx部分,使我的服务可以被称为原始服务。

如果它托管在IIS中,您可以将“Broker.asmx”设置为默认文档。因此,当您打开..../ws/broker时,IIS将自动假定您的意思是…/ws/broker/broker.asmx