次の Visual Studio Web アプリケーション構造があります。
CustomerManagement\
- Services
- Customers.aspx
- Customers.aspx.cs
- CustomersWcfDS.svc
- Default.aspx
- web.config
次のコードは<configuration>
、web.config ファイル内にあります。
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_ICustomers" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None" realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:1112/Services/Customers.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ICustomers" contract="CustomersService.ICustomers" name="BasicHttpBinding_ICustomers" />
</client>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
</system.serviceModel>
プロジェクトをビルドし、以下の URL を入力しますが反応がありません。
http://localhost:1112/Services/Customers.svc
私も次のことを試しました:
http://localhost:1112/Services/CustomersWcfDS.svc
そしてまた
http://localhost:1110/Services/Customers.svc
と
http://localhost:1110/Services/CustomersWcfDS.svc
(プロジェクト プロパティPort number
が に設定されているため、ポート 1110 がテストされました1110
。)
ただし、次の図のようなものは表示されません
では、WCF サービスの URL がどこに移動したかを教えてくれる専門家はいますか?