Skip to content

Conversation

@zgabi
Copy link

@zgabi zgabi commented Jan 17, 2026

sWe have a webservice in the following address: https://pannonris.hu/web/PannonRisIf3Ws?import&name=ServiceDefinitions.xml
The application server hosts the service in the /DataExcahngeService location, but in the public service it is overwritten to web/PannonRisIf3Ws

In the url above the schemaLocation is wrong since the overwrite is not applied sometimes:
image

Another small issue is also fixed... with newer .NET (10) I get a warning, that in the HeaderHelper comparing soapAction to null is redundant, since it is a Span, it wont be null.

@zgabi
Copy link
Author

zgabi commented Jan 17, 2026

Test fixed.

I think the test was wrong, since in another test you can see that the service is located at /Management/Service.asmx

public void CheckXSDInclude()
{
StartService(typeof(EchoIncludeService));
var wsdl = GetWsdlFromAsmx("Service.asmx");
StopServer();
var root = new XmlDocument();
root.LoadXml(wsdl);
var nsmgr = new XmlNamespaceManager(root.NameTable);
nsmgr.AddNamespace("wsdl", "http://schemas.xmlsoap.org/wsdl/");
nsmgr.AddNamespace("xs", "http://www.w3.org/2001/XMLSchema");
nsmgr.AddNamespace("soapbind", "http://schemas.xmlsoap.org/wsdl/soap/");
var element = root.SelectSingleNode("/wsdl:definitions/wsdl:types/xs:schema/xs:include[1]", nsmgr);
var addresses = _host.ServerFeatures.Get<IServerAddressesFeature>();
var address = addresses.Addresses.Single();
string url = address + "/Management/Service.asmx?xsd&name=echoInclude.xsd";
Assert.IsNotNull(element);
Assert.AreEqual(url, element.Attributes["schemaLocation"]?.Value);
}

But in the CheckXSDIncludeXSD test the Management folder was missing:

string url = address + "/Service.asmx?xsd&name=echoIncluded.xsd";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant