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 XmlIgnoreAttrib ute 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.Serv ices.Protocols. SoapHeaderAttri bute("Header", Direction=Syste m.Web.Services. Protocols.SoapH eaderDirection. 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
I instantiate one Header class for the Request and Response SOAP Header and using XmlIgnoreAttrib ute 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.Serv ices.Protocols. SoapHeaderAttri bute("Header", Direction=Syste m.Web.Services. Protocols.SoapH eaderDirection. 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
Comment