dylanmei / linqpad-soap-driver

A SOAP service driver for LINQPad

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not able to access Header information to extract Security Token after Authenticate method

kachalkov opened this issue · comments

commented

Hi, good job, driver works very well!

We have wcf service which adds security token to the response headers and I just wonder if you have an idea how we can extract it to add to outgoing headers for security puroposes?

Thanks.

I'm afraid this relies on some old .NET code to generate the proxy, and back in those days you were expected to use SOAP extensions like WS-Security for such things.

Generating the proxy ourselves using ServiceContratGenerator would give us the flexibility to do something like accessing headers. There's a branch where I started going down this path, but it's a lot of work and I moved on.

commented

Thank you for a quick answer. Interesting how easy to expose any internal
object. I looked into source code, but can't see which part is actually
producing proxy client?

Best regards,
Alex
On 22/11/2014 1:04 am, "Dylan Meissner" notifications@github.com wrote:

I'm afraid this relies on some old .NET code to generate the proxy, and
back in those days you were expected to use SOAP extensions like
WS-Security http://en.wikipedia.org/wiki/WS-Security for such things.

Generating the proxy ourselves using ServiceContratGenerator
http://msdn.microsoft.com/en-us/library/system.servicemodel.description.servicecontractgenerator(v=vs.110).aspx
would give us the flexibility to do something like accessing headers.
There's a branch where I started going down this path, but it's a lot of
work and I moved on.


Reply to this email directly or view it on GitHub
#4 (comment)
.

ProxyBuilder.BuildAssembly is where you'd want to begin looking. Underneath it all, inside DiscoveryCompiler its using a technique similar to the MSDN code example here: http://msdn.microsoft.com/en-us/library/system.web.services.description.webreference(VS.80).aspx