简体   繁体   中英

Web Service without the .asmx extension

I am Mocking a web service from it's wsdl file. In the original wsdl I see:

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

In my implementation I have:

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

How I can remove asmx part from the path Broker.asmx that my service can be called as the original service.

If it's hosted in IIS, you could set "broker.asmx" as default document. So, when you open ..../ws/broker, IIS will automatically assume that you meant .../ws/broker/broker.asmx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM