I have a SOAP Header that has different XML fields in the request and response.
I instantiate one Header class for the Request and Response SOAP Header and using XmlIgnoreAttribute and bool fields to activate/de-activate the XML tags that are included or absent in each Instance.
My problem is how to declare the SOAP Header in the Web Reference file to support unique classes for the inbound and outbound SOAP Headers. When the wsdl was consumed by Visual Studio, it just setup one Header that is declared:
[System.Web.Services.Protocols.SoapHeaderAttribute( "Header", Direction=System.Web.Services.Protocols.SoapHeader Direction.InOut)]
This does not seem to work with a Header that has unique Header for the Request and Response, the Response comes back with the Header unchanged.
Thanks
Ken Newman