In a project I’m working with we’re using external services exposed by SOAP. In the proxy classes to access these services generated by Visual Studio 2005, the member InnerChannel was exposed, but this is not the case with the proxy classes generated by Visual Studio 2008.
I’m trying to do this, but of course get an error because the member doesn’t exist:
using (new OperationContextScope(proxy.InnerChannel)) {
OperationContext.Current.OutgoingMessageHeaders.Add(GetHeader());
//...
}
SOAP seems to have been completely redone in VS2008.
To do the same in VS2008 you need to create a class that implements SoapExtension:
And register that class in your config file: