M
Massimo Gentilini
I have a problem with namespace:
I've a class in a namespace
namespace.Foo
that's used in a web method
when I reference the web method from a web service the namespace changes
because of the wsdl compiler, so now my class, in the code using the web
service reference.cs becomes
webservicenamespace.Foo
Problem is that in my web method Foo I need to call the same web method Foo
on a different machine to create a sort of NLB scheme, but the web reference
I add need a webservicenamespace.Foo parameter while I have a namespace.Foo
instance.
Code is more or less like this
public void Do(Foo parameter) { // This is namespace.Foo
if(useNLB) {
WebService ws = new WebService()
ws.url = GetNLBUrl();
Do(Foo); // This instead needs webservicenamespace.Foo
}
else { ... perform operation }
}
Is there a way to accomplish this? Obviously casting the two classes do not
work...
Regards
Massimo
I've a class in a namespace
namespace.Foo
that's used in a web method
when I reference the web method from a web service the namespace changes
because of the wsdl compiler, so now my class, in the code using the web
service reference.cs becomes
webservicenamespace.Foo
Problem is that in my web method Foo I need to call the same web method Foo
on a different machine to create a sort of NLB scheme, but the web reference
I add need a webservicenamespace.Foo parameter while I have a namespace.Foo
instance.
Code is more or less like this
public void Do(Foo parameter) { // This is namespace.Foo
if(useNLB) {
WebService ws = new WebService()
ws.url = GetNLBUrl();
Do(Foo); // This instead needs webservicenamespace.Foo
}
else { ... perform operation }
}
Is there a way to accomplish this? Obviously casting the two classes do not
work...
Regards
Massimo