D
Doug Holland
I'm trying to write web service proxy class such as that autogenerated by
adding a Web Service (e.g. Reference.cs) which inherits from
SoapHttpClientProtocol.
Even when my class is a near duplicate of that found within Reference.cs
with the only differences being that I don't use fully qualified namespaces I
have a problem calling a HelloWorld WebMethod.
Using the autogenerated class the following code:
object[] results = this.Invoke("HelloWorld", new object[0]);
return ((string)(results[0]));
Successfully returns "Hello World" in the first element of the object array.
Using my class which also contains:
object[] results = this.Invoke("HelloWorld", new object[0]);
return ((string)(results[0]));
and successfully steps into the Web Method using the debugger ... returns
null in the first element of the object array.
In my proxy component I don't have the other files generated by a Web
Reference such as the .disco, .wsdl, and .map files, is this my problem?
Thanks in advance
Doug Holland
PS: The motivation for my own proxy object is that the web service to talk
to would be set in a database and it may well actually talk to more than one
web servcie. Because the webservice isn't known at compile time, just the
'interface', I can't do that with a standard Web Reference which fixes the
URL.
adding a Web Service (e.g. Reference.cs) which inherits from
SoapHttpClientProtocol.
Even when my class is a near duplicate of that found within Reference.cs
with the only differences being that I don't use fully qualified namespaces I
have a problem calling a HelloWorld WebMethod.
Using the autogenerated class the following code:
object[] results = this.Invoke("HelloWorld", new object[0]);
return ((string)(results[0]));
Successfully returns "Hello World" in the first element of the object array.
Using my class which also contains:
object[] results = this.Invoke("HelloWorld", new object[0]);
return ((string)(results[0]));
and successfully steps into the Web Method using the debugger ... returns
null in the first element of the object array.
In my proxy component I don't have the other files generated by a Web
Reference such as the .disco, .wsdl, and .map files, is this my problem?
Thanks in advance
Doug Holland
PS: The motivation for my own proxy object is that the web service to talk
to would be set in a database and it may well actually talk to more than one
web servcie. Because the webservice isn't known at compile time, just the
'interface', I can't do that with a standard Web Reference which fixes the
URL.