我在使用xmlrpc的地方使用了C#代码,并得到以下错误
"Response contains struct value where string expected (as type string) [response: array mapped to type string[]: element 0]我是C#的新手,所以不知道如何解决这个问题。
这就是它进行xml调用的地方
XmlRpcMethod("test.login") string[] tfunc(字符串散列,字符串时间戳,字符串域,字符串随机数,字符串会话,字符串用户名,字符串密码);
这是我在我的类程序中调用它的地方
string[] d = iss.tfunc(hash, domain, timestamp, nonce, "user", "user", "pass");谢谢
发布于 2011-09-08 09:33:29
hash、domain、timestamp和nouce定义为什么类型?尝试向任何不是String类型的变量添加.ToString()。
string[] d = iss.tfunc(
hash.ToString(),
domain.ToString(),
timestamp.ToString(),
nonce.ToString(),
"user",
"user",
"pass");https://stackoverflow.com/questions/7342167
复制相似问题