Skip to content

Commit

Permalink
missed the ASPNET_30 impl. of IntegrationTest SOAP v1.1 with encoding…
Browse files Browse the repository at this point in the history
… ISO-8859-1
  • Loading branch information
microknights committed Feb 12, 2020
1 parent 7af86af commit aa986b4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/SoapCore.Tests/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,17 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerF

app.UseSoapEndpoint<TestService>("/WSA10Service.svc", new CustomBinding(transportBinding, textEncodingBinding), SoapSerializer.DataContractSerializer);
});

app.UseWhen(ctx => ctx.Request.Path.Value.Contains("/WSA11ISO88591Service.svc"), app2 =>
{
var soapEncodingOptions = new SoapEncoderOptions
{
MessageVersion = MessageVersion.Soap11,
WriteEncoding = Encoding.GetEncoding("ISO-8859-1")
};

app.UseSoapEndpoint<TestService>("/WSA11ISO88591Service.svc", soapEncodingOptions, SoapSerializer.DataContractSerializer);
});
}
#endif
}
Expand Down

0 comments on commit aa986b4

Please sign in to comment.