我有一个Web服务方法,它接受一个复杂的对象和一个字符串(ActionID
)。对于以下示例,如何将ActionID
传递给我的方法属性构造函数之一?
[TraceExtensions.TraceExtension(ActionID), System.Web.Services.Protocols.SoapDocumentMethodAttribute(" ", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Bare)]
[return: System.Xml.Serialization.XmlElementAttribute("RCreateResponse", Namespace = "test")]
public WSRCResponse create([System.Xml.Serialization.XmlElementAttribute(Namespace = "test")] WSRCRequest RCreateRequest, string ActionID)
{
object[] results = this.Invoke("create", new object[] { RCreateRequest });
return ((WSRCResponse)(results[0]));
}