Cannot cast SoapHttPClientProtocol.Invoke return value to anything worth while

E

eric

I'm using the below code to access a web service. The data comes back
just fine in an object. But I can't seem to do anything with the
object. In the regular .NET Framework, I can cast the object to an
XmlNode[]. But I get a System.InvalidCastException, if I do this in
the CF.

Any suggestions?

[System.Web.Services.Protocols.SoapRpcMethodAttribute
"urn:TMSWebServices:xtvdWebService#download",
RequestNamespace="urn:TMSWebServices", ResponseNamespace="")]

public object download(string startTime, string endTime)
{
object[] response = this.Invoke("download", new object[]
{startTime, endTime});
return (object)response[0];
}
 
R

Ronnie Yates [MS]

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top