void ApplyWebAttribute () { MethodInfo mi = operation.SyncMethod ?? operation.BeginMethod; object [] atts = mi.GetCustomAttributes (typeof (WebGetAttribute), false); if (atts.Length > 0) info = ((WebGetAttribute) atts [0]).Info; atts = mi.GetCustomAttributes (typeof (WebInvokeAttribute), false); if (atts.Length > 0) info = ((WebInvokeAttribute) atts [0]).Info; if (info == null) info = new WebAttributeInfo (); template = info.BuildUriTemplate (Operation, GetMessageDescription (MessageDirection.Input)); }
WebMessageBodyStyle GetBodyStyle (WebAttributeInfo wai) { return wai != null && wai.IsBodyStyleSetExplicitly ? wai.BodyStyle : DefaultBodyStyle; }