Reputation: 406
I am sending out a SOAP message from a windows service to an http endpoint (regular aspx page that will just accept the whole SOAP envelope). The overall operation is async, the actual response comes back at a later time. The nature of the setup (aspx page receiving message) means I cannot have a service reference in my project.
The SOAP header has to include WS-Addressing and WS-Security. What I need to do is basically construct the SOAP envelope, but more specifically the SOAP header from scratch and then compose the SOAP envelope before sending it.
Its Friday afternoon, I am frazzled and I am struggling to get to grips with getting this going. Using .net3.5/C#, how do I construct a SOAP header with the addressing and security from scratch?
Upvotes: 4
Views: 2751
Reputation: 5541
Have you tried these guides:
http://msdn.microsoft.com/en-us/library/ms824647.aspx
Regards, Chris.
Upvotes: 1