DigDes / SoapCore

SOAP extension for ASP.NET Core
MIT License
1k stars 378 forks source link

how to handle Header, soap SecurityHeader, in SoapCore? supported? #35

Closed proplanlava closed 6 years ago

proplanlava commented 6 years ago

I need my webservice to handle SecurityHeader like this: `

string string ` Very many old client installations we have in our company deliver soap messages with this header in place. I can't see how to make a service wth SoapCore to handle this. Or is there a way? Have anybody managed to use this SoapCore towards webservices made with dotnet *.asmx files? Edit: I have managed to create a webservice with SoapCore doing what old *asmx files are doing. Old dotnet clients are communicating ok on simple parameters. But securityheader is not used, so it's unsafe. Also, passing custom objects went well, but not when they have custom sub objects. All is null on those parameters...
kotovaleksandr commented 6 years ago

I think SoapCore skip this header, but i can't check it. If you want read this header you can access to source message from HttpContext or write custom middleware and read raw message with all headers.

proplanlava commented 6 years ago

thank you for that good feedback. I have trouble finding how to get access på httpcontext. Not beeig in a apicontroller and so. do you have a tip on how?

kotovaleksandr commented 6 years ago

Check it http://www.carlrippon.com/?p=757 like a example.