我正试图开春。 网上服务净额与以下图示类似:
rel=“nofollow” http://www.mersframework.net/doc-latest/vis/html/childrenair.html
我对成员在服务业务上的属性有一些问题。 3. 下列xml装置注入业务特性:
<property name="MemberAttributes">
<dictionary>
<entry key="SuggestFlights">
<object type="System.Web.Services.WebMethodAttribute, System.Web.Services">
<property name="Description" value="Gets those flight suggestions that are applicable for the supplied trip."/>
</object>
</entry>
<entry key="Book">
<object type="System.Web.Services.WebMethodAttribute, System.Web.Services">
<property name="Description" value="Goes ahead and actually books what up until this point has been a transient reservation."/>
</object>
</entry>
<entry key="GetAirportList">
<object type="System.Web.Services.WebMethodAttribute, System.Web.Services">
<property name="Description" value="Return a collection of all those airports that can be used for the purposes of booking."/>
</object>
</entry>
</dictionary>
</property>
我就此提出了2个问题。 首先,可以在阿普阿莱西岛从这些特性中获取价值。 拦截器? 例如,能否从拦截者手中获取网上货物描述财产的价值? 明显属于Invoke方法及其IMethodInue parametter。
Secondly, is it possible to add custom attributes, derived from System.Attribute, similar to web method attributes outlined above and again access the properties of the attribute within an interceptor.
Any help on the above would be great!