ここでは、生成しようとしているコードファイルのスニペットを示します。これは古いWCFプロジェクトなので、私はよく知らない。新しいサービスプロジェクトでは、右クリックしてサービス参照の更新を選択するだけです。WCFサービス用のサービスインターフェイスクラスを作成する必要があります。
using System;
`//-------------------------------------------------------------------------
-----
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.269
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--------------------------------------------------------------------------
----
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel",
"4.0.0.0")]
[System.ServiceModel.ServiceContractAttribute(ConfigurationName =
"IBusinessService")]
[CLSCompliant(false)]
public interface IBusinessService
{
[System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IBusinessService/Receive_Replenishment_Request", ReplyAction = "http://tempuri.org/IBusinessService/Receive_Replenishment_RequestResponse")]
int Receive_Replenishment_Request(System.Nullable<int> Module, System.Nullable<int> Level, System.Nullable<int> Side, System.Nullable<int> Row, string User);
このファイルには、[のServiceContract]属性を持ちBusinessService.csとIBuesinessService.csより独立したプロジェクトです。
サービス参照クラスを生成するために実行する必要があるツールはありますか?私はこのサービスリファレンスを更新する必要があります。
あなたのやりたいことははっきりしません。サービスを定義するインタフェースを生成しますか?あるいはコンシューマーコードを生成したいですか? –