I have class:
public class MyClass:SoapExtension
{
....
string path;
}
I use SoapExtension on WebMethod:
public class Service1 : System.Web.Services.WebService
{
[WebMethod]
[MyClass(SoapElement = "//soap:Envelope/*/*")]
public int add(int a, int b)
{
return a + b;
}
}
I want set variable string path in class MyClass : SoapExtension from class Service1 : System.Web.Services.WebService it is possible ?? If yes, how can I set variable sting path. I can't use SoapAtrributes, because Soap attributes must be const. Any advice, please.