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

Wsdl schema mapping improvements #904

Merged

Conversation

Aleksanderis
Copy link
Contributor

@Aleksanderis Aleksanderis commented Sep 26, 2022

Added some improvements for external WSDL schemas support:

  • WsdlFileOptionsCaseInsensitive options - to use with case-insensitive mapping. Without it, even if you use SoapCoreOptions.CaseInsensitivePath = true - external WSDL schemas would fail to map by HttpContext.Request.Path.
  • UrlOverride property to WebServiceWSDLMapping. It's needed to be able to host services under different folders. For example if you have one service hosted like - https://localhost:5001/Management/Service.asmx, and another one - as https://localhost:5001/Orders/Customers.asmx. I didn't manage to achieve this goal with existing UrlOverride, VirtualPath, AppPath properties in WsdlFileOptions.

Short afterword: I hope the goals I was trying to achieve are clear. As about implementation - I'm ready to do additional changes in case someone has any better ideas or if there are some general issues or inconsistencies with the nature of SoapCore.
For now I tried to be cautious and add functionality on top. If it would be mine own project - then, for example I perhaps WsdlFileOptionsCaseInsensitive could just replace WsdlFileOptions, because it's just would be more flexible. However I didn't want to introduce any potential breaking changes.

@Aleksanderis
Copy link
Contributor Author

Aleksanderis commented Sep 26, 2022

Force-pushed same commits, but with removed line-breaks changes

Copy link
Collaborator

@andersjonsson andersjonsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@andersjonsson andersjonsson merged commit 3a5ef9f into DigDes:develop Sep 27, 2022
@Aleksanderis Aleksanderis deleted the wsdl-schema-mapping-improvements branch September 27, 2022 18:54
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.

2 participants