System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (8)
300this.IsOneWay = operation.Messages.Count == 1;
302this.RequestRequiresSerialization = !operation.Messages[0].IsUntypedMessage;
303this.ReplyRequiresSerialization = !this.IsOneWay && !operation.Messages[1].IsUntypedMessage;
319foreach (MessageDescription message in operation.Messages)
392this.request = CreateMessageInfo(this.Operation.Messages[0], ":Request");
394throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxRpcMessageBodyPartNameInvalid, Operation.Name, this.Operation.Messages[0].MessageName, request.BodyMapping.XsdElementName, this.Operation.Name)));
397this.reply = CreateMessageInfo(this.Operation.Messages[1], ":Response");
400throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxRpcMessageBodyPartNameInvalid, Operation.Name, this.Operation.Messages[1].MessageName, reply.BodyMapping.XsdElementName, responseName.EncodedName)));