[Mono-devel-list] [PATCH] The value of SOAPAction http header field needs to be quoted.

Yaacov Akiba Slama ya at slamail.org
Wed Jan 21 12:05:37 EST 2004


As required in 
http://www.ws-i.org/Profiles/Basic/2003-08/BasicProfile-1.0a.html#refinement34343864

--- 
System.Web.Services/System.Web.Services.Protocols/SoapHttpClientProtocol.cs.orig
+++ 
System.Web.Services/System.Web.Services.Protocols/SoapHttpClientProtocol.cs
@@ -167,7 +167,7 @@
                        WebRequest request = GetWebRequest (uri);
                        request.Method = "POST";
                        WebHeaderCollection headers = request.Headers;
-                       headers.Add ("SOAPAction", message.Action);
+                       headers.Add ("SOAPAction", "\"" + message.Action 
+ "\"");
                        request.ContentType = message.ContentType + "; 
charset=utf-8";
                        return request;
                }



More information about the Mono-devel-list mailing list