How do i get them value of the web service namespace from inside a
SoapExtension?
For example my web service is defiend as:
[ WebService(Namespace="http://www.test.com/ws/")]
public class MyTest: WebService
{
[WebMethod]
public string HelloWorld(y)
{
. . .
From inside a SoapExtension I want to assign a string var the value of
"http://www.test.com/ws/"
alex bean - 19 May 2005 01:22 GMT
I found a way but it seems a little convoluted. Is there a more readable way
of doing it?
public override object GetInitializer(System.Type serviceType)
{
object[] wsa = serviceType.GetCustomAttributes(typeof(WebServiceAttribute),
true);
string x = ((WebServiceAttribute)wsa[0]).Namespace;
}