WCFWebサービスを作成しました。ASP.NET1.1Webサイトから呼び出しています。
文字列値=ITWORKEDを送信するための簡単な操作コントラクトを追加しました。
WCFWebサービスに関する情報
WCFWebサービスにDLLを1つ追加しました。操作コントラクトでDLLの公開されたメソッドにアクセスしています。
しかし、私が運用契約を呼び出すときに問題に直面しています:
Webサービスで、いくつかのメソッドを公開しているDLLを参照/追加し、1つの操作コントラクトでそれらのメソッドを呼び出しています。 description7a.Description7aPortType=これはWCFサービスに追加したDLLからのものです。
エラーが発生しています:
Could not find default endpoint element that references contract
'description7a.Description7aPortType' in the ServiceModel client
configuration section. This might be because no configuration file was
found for your application, or because no endpoint element matching this
contract could be found in the client element.
どうすればこれを修正できますか?
WCFWebサービスのWeb構成
<system.serviceModel>
<services>
<service name="ADSChromeVINDecoder.Service" behaviorConfiguration="asmx">
<endpoint address="basic" binding="basicHttpBinding"
contract="ADSChromeVINDecoder.IService"></endpoint>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="asmx">
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
</system.serviceModel>