+2006-12-18 Atsushi Enomoto <atsushi@ximian.com>
+
+ * TypeStubManager.cs, Methods.cs, SoapServerMethod.cs :
+ added WsiClaims property to TypeStubInfo, to implement
+ SoapServerMethod.WsiClaims.
+
2006-12-15 Atsushi Enomoto <atsushi@ximian.com>
* ServerType.cs : added SOAP 1.2 protocol as a different one from
Hashtable[] header_serializers = new Hashtable [3];
Hashtable[] header_serializers_byname = new Hashtable [3];
Hashtable methods_byaction = new Hashtable ();
-
+#if NET_2_0
+ WsiProfiles wsi_claims = WsiProfiles.None;
+#endif
// Precomputed
internal SoapParameterStyle ParameterStyle;
internal SoapServiceRoutingStyle RoutingStyle;
// Remove the default binding, it is not needed since there is always
// a binding attribute.
Bindings.Clear ();
+#if NET_2_0
+ WebServiceBindingAttribute wsba = (WebServiceBindingAttribute) o [0];
+ if (wsba.EmitConformanceClaims)
+ wsi_claims = wsba.ConformsTo;
+#endif
}
foreach (WebServiceBindingAttribute at in o)
SoapExtensions = SoapExtension.GetTypeExtensions (Type);
}
+#if NET_2_0
+ public override WsiProfiles WsiClaims {
+ get { return wsi_claims; }
+ }
+#endif
+
public override XmlReflectionImporter XmlImporter
{
get { return xmlImporter; }
public sealed class SoapServerMethod
{
SoapMethodStubInfo info;
+ WsiProfiles wsi_claims;
[MonoTODO] // what to do here?
public SoapServerMethod ()
public SoapServerMethod (Type serverType, LogicalMethodInfo methodInfo)
{
TypeStubInfo type = TypeStubManager.GetTypeStub (serverType, "Soap");
+ wsi_claims = type.WsiClaims;
foreach (SoapMethodStubInfo m in type.Methods) {
bool match = false;
if (m.MethodInfo.MethodInfo == null)
get { return info.SoapBindingStyle == SoapBindingStyle.Rpc; }
}
- [MonoTODO]
public WsiProfiles WsiClaims {
- get { throw new NotImplementedException (); }
+ get { return wsi_claims; }
}
}
}
Bindings.Add (binfo);
}
+#if NET_2_0
+ public virtual WsiProfiles WsiClaims {
+ get { return WsiProfiles.None; }
+ }
+#endif
+
public ServerType LogicalType
{
get { return logicalType; }