| Author: Naganathan 25 Oct 2009 | Member Level: Bronze | Rating:  Points: 2 |
OK it is not the webservice that is causing the problem as the same thing happens to a normal class too.
I was under the impression that casting from a base class to a higher class is implicit and requires no special casting. But neither implicit or explicit casting is working in this case.
Eg I have created 2 test classes.
public class test1
{
public test1()
{
}
}
public class test2:test1
{
public test2()
{
}
}
Now if i cast from 2 to 1 it works ie
test2 t2=new test2();
test1 t1=(test1)t2;
Yet casting from base to the higher class does not work ie
test1 t1=new test1();
test2 t2=t1; OR test2 t2=(test2)t1;
|
| Author: Hari 05 Nov 2009 | Member Level: Gold | Rating:  Points: 2 |
Why do we need to create proxy? >>We need a proxy because it would abstarct the communiation and invocation of the the web service. Else we would have to write code that invokes and sends messages to the service
|