System\ServiceModel\Description\MessageContractExporter.cs (6)
126ExportAnyMessage(wsdlMessage, description.Body.ReturnValue ?? description.Body.Parts[0]);
975if (OperationFormatter.IsValidReturnValue(description.Body.ReturnValue))
978Type dataContractType = DataContractSerializerOperationFormatter.GetSubstituteDataContractType(description.Body.ReturnValue.Type, out isQueryable);
979XmlQualifiedName typeName = ExportType(dataContractType, description.Body.ReturnValue.Name, operation.Name, out xsdType);
980ExportMessagePart(wsdlMessage, description.Body.ReturnValue, typeName, xsdType, true/*isOptional*/, IsTypeNullable(description.Body.ReturnValue.Type), false/*isOperationInherited*/, dataContractFormatAttribute.Style != OperationFormatStyle.Rpc, description.Body.WrapperNamespace, wrapperSequence, SchemaSet);
System\ServiceModel\Description\OperationGenerator.cs (13)
259if (!this.Oneway && this.Response.Body.ReturnValue != null)
261this.EndMethod.ReturnType = GetParameterType(this.Response.Body.ReturnValue);
262ParameterizedMessageHelper.GenerateMessageParameterAttribute(this.Response.Body.ReturnValue, this.EndMethod.ReturnTypeCustomAttributes, TypeLoader.GetReturnValueName(this.DefaultName), this.DefaultNS);
263AddAdditionalAttributes(this.Response.Body.ReturnValue, this.EndMethod.ReturnTypeCustomAttributes, this.IsEncoded);
334if (isReply && message.Body.ReturnValue != null)
336GenerateBodyPart(0, message.Body.ReturnValue, partCodeGenerator, true, this.IsEncoded, this.DefaultNS);
608if (messageDescription.Body.ReturnValue != null)
610AddWrapperPart(messageDescription.MessageName, this.WrappedBodyTypeGenerator, partGenerator, messageDescription.Body.ReturnValue, wrapperTypeDecl.CustomAttributes);
611protectionLevel = ProtectionLevelHelper.Max(protectionLevel, messageDescription.Body.ReturnValue.ProtectionLevel);
612if (messageDescription.Body.ReturnValue.HasProtectionLevel)
653if (messageDescription.Body.ReturnValue != null)
654defaultNS = messageDescription.Body.ReturnValue.Namespace;
671order = this.Response.Body.ReturnValue != null ? 1 : 0;
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (2)
284SerializeBody(writer, version, messageInfo.BodySerializer, messageDescription.Body.ReturnValue, messageDescription.Body.Parts, returnValue, parameters);
345return DeserializeBody(reader, version, messageInfo.BodySerializer, messageDescription.Body.ReturnValue, messageDescription.Body.Parts, parameters, isRequest);