Skip to content

Commit

Permalink
Fix method parameter's namespace of Array type in WSDL is incorrect p…
Browse files Browse the repository at this point in the history
…roblem DigDes#937
  • Loading branch information
Deng Bo authored and Deng Bo committed Mar 31, 2023
1 parent c8b3c68 commit fb02bba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SoapCore/Meta/MetaWCFBodyWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ private void WriteParameters(XmlDictionaryWriter writer, SoapMethodParameterInfo
? elementAttribute.ElementName
: parameterInfo.Parameter.GetCustomAttribute<MessageParameterAttribute>()?.Name ?? parameterInfo.Parameter.Name;
var isRequired = !parameterInfo.Parameter.IsOptional;
AddSchemaType(writer, parameterInfo.Parameter.ParameterType, parameterName, objectNamespace: elementAttribute?.Namespace ?? (parameterInfo.Namespace != "http://tempuri.org/" ? parameterInfo.Namespace : null), isRequired: isRequired);
AddSchemaType(writer, parameterInfo.Parameter.ParameterType, parameterName, objectNamespace: GetDataContractNamespace(parameterInfo.Parameter.ParameterType), isRequired: isRequired);
}
}

Expand Down

0 comments on commit fb02bba

Please sign in to comment.