B
Brian Tyler
I have defined a soap header via the .NET framework
public sealed class MySoapHeader : SoapHeader
{
}
I can successfully send this header either from the client proxy or from the
web service itself. However, it seems that the "type" of the header is
always put into the namespace of the proxy or server. For example, under a
simple proxy, I get
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://tempuri.org"
xmlns:types="http://tempuri.org/encodedTypes"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<types:MySoapHeader id="h_id1"> ...
Note that it is put into the "types" ns, which is based on the ns of the
proxy.
How do I have the SOAP header have its own namespace? Something I can define
as part of the Soap header so it stays the same regardless of the proxy or
web service it is used with?
Thanks in advance
Brian
public sealed class MySoapHeader : SoapHeader
{
}
I can successfully send this header either from the client proxy or from the
web service itself. However, it seems that the "type" of the header is
always put into the namespace of the proxy or server. For example, under a
simple proxy, I get
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://tempuri.org"
xmlns:types="http://tempuri.org/encodedTypes"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<types:MySoapHeader id="h_id1"> ...
Note that it is put into the "types" ns, which is based on the ns of the
proxy.
How do I have the SOAP header have its own namespace? Something I can define
as part of the Soap header so it stays the same regardless of the proxy or
web service it is used with?
Thanks in advance
Brian