svcutil から出力された内容がよくわかりません。誰か説明してもらえますか?
対コマンド プロンプトで使用: svcitil /mc *.wsdl *.xsd /language:c#
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
[System.ServiceModel.ServiceContractAttribute(ConfigurationName="GenericInboundBrokerSoap")]
public interface GenericInboundBrokerSoap
{
// CODEGEN: Generating message contract since element name SourceID from namespace http://tempuri.org/ is not marked nillable
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/BrokerInboundRequest", ReplyAction="*")]
BrokerInboundRequestResponse BrokerInboundRequest(BrokerInboundRequestRequest request);
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
[System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
public partial class BrokerInboundRequestRequest
{
[System.ServiceModel.MessageBodyMemberAttribute(Name="BrokerInboundRequest", Namespace="http://tempuri.org/", Order=0)]
public BrokerInboundRequestRequestBody Body;
public BrokerInboundRequestRequest()
{
}
public BrokerInboundRequestRequest(BrokerInboundRequestRequestBody Body)
{
this.Body = Body;
}
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
[System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
public partial class BrokerInboundRequestRequestBody
{
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
public string SourceID;
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
public string TokenID;
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=2)]
public string xml;
public BrokerInboundRequestRequestBody()
{
}
public BrokerInboundRequestRequestBody(string SourceID, string TokenID, string xml)
{
this.SourceID = SourceID;
this.TokenID = TokenID;
this.xml = xml;
}
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
[System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
public partial class BrokerInboundRequestResponse
{
[System.ServiceModel.MessageBodyMemberAttribute(Name="BrokerInboundRequestResponse", Namespace="http://tempuri.org/", Order=0)]
public BrokerInboundRequestResponseBody Body;
public BrokerInboundRequestResponse()
{
}
public BrokerInboundRequestResponse(BrokerInboundRequestResponseBody Body)
{
this.Body = Body;
}
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
[System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
public partial class BrokerInboundRequestResponseBody
{
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
public string BrokerInboundRequestResult;
public BrokerInboundRequestResponseBody()
{
}
public BrokerInboundRequestResponseBody(string BrokerInboundRequestResult)
{
this.BrokerInboundRequestResult = BrokerInboundRequestResult;
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
public interface GenericInboundBrokerSoapChannel : GenericInboundBrokerSoap, System.ServiceModel.IClientChannel
{
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
public partial class GenericInboundBrokerSoapClient : System.ServiceModel.ClientBase<GenericInboundBrokerSoap>, GenericInboundBrokerSoap
{
public GenericInboundBrokerSoapClient()
{
}
public GenericInboundBrokerSoapClient(string endpointConfigurationName) :
base(endpointConfigurationName)
{
}
public GenericInboundBrokerSoapClient(string endpointConfigurationName, string remoteAddress) :
base(endpointConfigurationName, remoteAddress)
{
}
public GenericInboundBrokerSoapClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
base(endpointConfigurationName, remoteAddress)
{
}
public GenericInboundBrokerSoapClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
base(binding, remoteAddress)
{
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
BrokerInboundRequestResponse GenericInboundBrokerSoap.BrokerInboundRequest(BrokerInboundRequestRequest request)
{
return base.Channel.BrokerInboundRequest(request);
}
public string BrokerInboundRequest(string SourceID, string TokenID, string xml)
{
BrokerInboundRequestRequest inValue = new BrokerInboundRequestRequest();
inValue.Body = new BrokerInboundRequestRequestBody();
inValue.Body.SourceID = SourceID;
inValue.Body.TokenID = TokenID;
inValue.Body.xml = xml;
//do the hokey pokey here?
BrokerInboundRequestResponse retVal = ((GenericInboundBrokerSoap)(this)).BrokerInboundRequest(inValue);
return retVal.Body.BrokerInboundRequestResult;
}
}
WCF サービスをどのように/どのように作成できますか? 以下を使用してサービスを作成しました。
何を実装しますか?