* WebService.cs : implemented SoapVersion as documented in MSDN.
* SoapProtocolImporter.cs : added trivial IsSoapEncodingPresent().
* AnyReturnReader.cs : not sure why, but the build must have been
broken, and now it is exposed.
* SoapHttpClientProtocol.cs : added missing members, left as MonoTODO.
svn path=/branches/atsushi/mcs/; revision=68936
+2006-12-04 Atsushi Enomoto <atsushi@ximian.com>
+
+ * SoapProtocolImporter.cs : added trivial IsSoapEncodingPresent().
+
2006-12-01 Atsushi Enomoto <atsushi@ximian.com>
* wsdl-1.1-soap.xsd : new file. WSDL 1.1 SOAP binding schema.
throw new NotImplementedException ();
}
- [MonoTODO]
+ static readonly char [] whitespaces = new char [] {' ', '\t', '\n', '\r'};
+
protected virtual bool IsSoapEncodingPresent (string uriList)
{
- throw new NotImplementedException ();
+ foreach (string s in uriList.Split (whitespaces))
+ if (s == "http://schemas.xmlsoap.org/soap/encoding/")
+ return true;
+ return false;
}
protected override CodeMemberMethod GenerateMethod ()
public override object GetInitializer (LogicalMethodInfo methodInfo)
{
- // do nothing
+ return null;
}
public override void Initialize (object o)
+2006-12-04 Atsushi Enomoto <atsushi@ximian.com>
+
+ * AnyReturnReader.cs : not sure why, but the build must have been
+ broken, and now it is exposed.
+ * SoapHttpClientProtocol.cs : added missing members, left as MonoTODO.
+
2006-12-01 Atsushi Enomoto <atsushi@ximian.com>
* AnyReturnReader.cs : implemented, it does almost nothing.
request.ContentType = message.ContentType + "; charset=utf-8";
return request;
}
-
+
+#if NET_2_0
+ [MonoTODO]
+ protected virtual
+#endif
+ XmlReader GetReaderForMessage (
+ SoapClientMessage message, int bufferSize)
+ {
+ throw new NotImplementedException ();
+ }
+
+#if NET_2_0
+ [MonoTODO]
+ protected virtual
+#endif
+ XmlWriter GetWriterForMessage (
+ SoapClientMessage message, int bufferSize)
+ {
+ throw new NotImplementedException ();
+ }
+
void SendRequest (Stream s, SoapClientMessage message, SoapExtension[] extensions)
{
using (s) {
+2006-12-04 Atsushi Enomoto <atsushi@ximian.com>
+
+ * WebService.cs : implemented SoapVersion as documented in MSDN.
+
2006-11-15 Atsushi Enomoto <atsushi@ximian.com>
* WebService.cs: minor API fixes (attributes).
using System.ComponentModel;
using System.Security.Principal;
using System.Web;
+using System.Web.Services.Protocols;
using System.Web.SessionState;
namespace System.Web.Services {
HttpContext _context;
+#if NET_2_0
+ SoapProtocolVersion _soapVersion;
+#endif
+
#endregion // Fields
#region Constructors
public WebService ()
{
_context = HttpContext.Current;
+#if NET_2_0
+ object o = _context.Items ["WebServiceSoapVersion"];
+ if (o is SoapProtocolVersion)
+ _soapVersion = (SoapProtocolVersion) o;
+#endif
}
#endregion // Constructors
}
#if NET_2_0
- [MonoTODO]
[Browsable (false)]
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
public System.Web.Services.Protocols.SoapProtocolVersion SoapVersion {
- get { throw new NotImplementedException (); }
+ get { return _soapVersion; }
}
#endif