Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XmlSerializer: Remove empty <xsd:import /> tag in generated WSDL #1023

Merged
merged 1 commit into from
Feb 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/SoapCore/Meta/MetaBodyWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
public class MetaBodyWriter : BodyWriter
{
private const string FaultSuffix = "Fault";
private static int _namespaceCounter = 1;

Check warning on line 23 in src/SoapCore/Meta/MetaBodyWriter.cs

View workflow job for this annotation

GitHub Actions / Analyze

The field 'MetaBodyWriter._namespaceCounter' is assigned but its value is never used

private readonly ServiceDescription _service;
private readonly string _baseUrl;
Expand Down Expand Up @@ -297,9 +297,6 @@
writer.WriteAttributeString("elementFormDefault", "qualified");
writer.WriteAttributeString("targetNamespace", TargetNameSpace);

writer.WriteStartElement("import", Namespaces.XMLNS_XSD);
writer.WriteEndElement();

foreach (var operation in _service.Operations)
{
bool hasWrittenOutParameters = false;
Expand Down
Loading