Skip to content

SoapCore SOAP 1.2 wsdl request prompts with a save file dialog #408

@IvanFarkas

Description

@IvanFarkas

SoapCore SOAP 1.2 wsdl request prompts with a file save dialog.

SOAP 1.1

http://localhost:8080/SoapService.asmx?wsdl is OK for SOAP 1.1. It returns an XML response.

// Create Soap 1.1 Binding
binding = new BasicHttpBinding();
app.UseSoapEndpoint<ISoapService>("/SoapService.asmx", binding, SoapSerializer.XmlSerializer)

SOAP 1.2

SOAP 1.2 wsdl request, however, prompts with a file save dialog

// Create Soap 1.2 Binding
var textBindingElement = new TextMessageEncodingBindingElement(MessageVersion.Soap12WSAddressing10, Encoding.UTF8);
var httpBindingElement = new HttpTransportBindingElement();
binding = new CustomBinding(textBindingElement, httpBindingElement);
app.UseSoapEndpoint<ISoapService>("/SoapService.asmx", binding, SoapSerializer.XmlSerializer)

What could be the issue, please?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions