internal static string GetAddressingNamespace(AddressingVersion addressing)
 {
     string ns;
     if (addressing == AddressingVersion.WSAddressingAugust2004)
     {
         ns = "http://schemas.xmlsoap.org/ws/2004/08/addressing";
     }
     else if (addressing == AddressingVersion.WSAddressing10)
     {
         ns = "http://www.w3.org/2005/08/addressing";
     }
     else if (addressing == AddressingVersion.None)
     {
         ns = "http://schemas.microsoft.com/ws/2005/05/addressing/none";
     }
     else
     {
         throw FxTrace.Exception.Argument("addressing", SR2.AddressingVersionInvalid(addressing.ToString()));
     }
     return ns;
 }
Beispiel #2
0
 public override string ToString()
 {
     return(string.Format(MessageVersionToStringFormat, _envelope.ToString(), _addressing.ToString()));
 }
Beispiel #3
0
 public override string ToString()
 {
     return(envelope.ToString() + " " + addressing.ToString());
 }
 public override string ToString()
 {
     return(SR.GetString(SR.MessageVersionToStringFormat, envelope.ToString(), addressing.ToString()));
 }