android项目遇见的问题

来源:互联网 发布:js post 同步请求 编辑:程序博客网 时间:2024/05/16 08:27
后台返回的是下面的xml
<InvokeReturn xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">  <Success>false</Success>  <Message>值不能为 null。参数名: InString</Message>  <Time>2014-02-12T14:18:37.3095703+08:00</Time></InvokeReturn>
说明传递过去的时候传递的名字跟后面接收的名字不一致!
String entity = "Information=" + URLEncoder.encode(xml.ByteToBase64(("MobileConfig="+URLEncoder.encode(xml.ByteToBase64(mobilConfig))).getBytes()));
string information = controller.Context.Cryptography.DefaultEncoding.GetString(Convert.FromBase64String(viewData["MobileConfigs"] as string));//获得传递过来的信息


我遇见的这个问题是android与c#后台接口出现的问题。可能跟你们的错误不一样!如有问题可以留言与我讨论!

0 0
原创粉丝点击