.NET Framework Bookmark and Share   
 index > ASMX Web Services and XML Serialization > How can I set variable in MyClass : SoapExtension
 

How can I set variable in MyClass : SoapExtension

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.
klerik123456
Where would this variable be coming from?
MShanahan

You can use google to search for other answers

Custom Search

More Threads

• How to set the database path to the current folder
• pls check the code and correct it?
• WSE 2.0 SKID or BinarySecurityToken in SecurityTokenReference
• Create sourcecode from a WSDL
• how do i disable web service discovery?
• redeploying vis studio 2005 framework 2.1 to framework 3.0
• Problem with soap:tcp protocol
• consuming webservice at runtime
• How to create a web service in C#?
• French Accent in XML becomes ?? during a web service call