微信V3支付接口生成Xml报错,求高手解答,谢谢

dictionary与XmlDocument相互转换 生成的Xml如下

<xml>
<appid><![CDATA[wxfe95d53c1f5b9616]]></appid>
<mch_id><![CDATA[10063875]]></mch_id>
<nonce_str><![CDATA[uGMVvOoddCNLR0CU]]></ nonce_str>
<body><![CDATA[105]]></body>
<out_trade_no><![CDATA[b15012014490370]]></out_trade_no>
<total_fee><![CDATA[20]]></total_fee>
<spbill_create_ip><![CDATA[113.74.48.57]]></spbill_create_ip>
<notify_url><![CDATA[http://wgw.zoicn.com/api/payment/wxpay/notify_url.aspx]]></notify_url>
<trade_type><![CDATA[JSAPI]]></trade_type>
<openid><![CDATA[oZG-ns8VV62u-O_7LBD2dP6so0mE]]></openid>
<sign><![CDATA[150DAF33D7CA27809A917B60751FA892]]></sign>
</xml>

V3接口全部为Xml形式,结果就报错

<xml>

<return_code><![CDATA[FAIL]]></return_code>

<return_msg><![CDATA[鍟嗘埛鍙穖ch_id鎴杝ub_mch_id涓嶅瓨鍦╙]></return_msg>
</xml>

并指出位置,经过查看确实不知道哪里出现问题,求大神解答

异常信息:There is an error in XML document (3, 7)

时间: 2024-07-28 23:46:14

微信V3支付接口生成Xml报错,求高手解答,谢谢的相关文章

Hibernate使用MyExclipse10自动生成配置文件报错

使用MyExclipse10自动生成hibernate映射文件如下: 结果发现启动服务时报以下错误: 原因:因为hibernate换过项目地址,所以dtd文件的地址也换掉了.在hbm.xml文件里面把 http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd 换成 http://www.jboss.org/dtd/hibernate/hibernate-mapping-3.0.dtd 问题就解决了. Hibernate使用MyExc

web.xml报错Cannot resolve class &#39;StrutsPrepareAndExecuteFilter&#39; (idea创建SSH项目)

原因: xwork-core.jar包已经合并到struts2-core.jar下,并且点开jar包,发现没有 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter查阅相关资料后得知:struts2 2.5之后,这个filter移动到了org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter 这就是典型的过度依赖工具!写下此文告诫自己,

【Unity3D】生成工程报错解决—UnityEditor.HostView:OnGUI() Error building Player: Couldn&#39;t build player because of unsupported data on target platform.

错误 错误1:An asset is marked as dont save, but is included in the build: unityEditor.HostView:OnGUI() 错误2:Building - Failed to write file: sharedassets0.assetsUnityEditor.HostView:OnGUI() 错误3:Error building Player: Couldn't build player because of unsup

新建maven工程时pom.xml报错

新建maven工程时,pom.xml报错:第一行报如下错误:multiple annotations found at this line后添加org.eclipse.m2e相关的plugin配置后,错误消失,完整pom.xml如下: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schem

(转)解决dubbox-demo-provider.xml报错的问题:提示Failed to read schema document

背景:在eclipse项目中,经常会遇到xml文件提示找不到.xsd文件的情况.很有必要弄清xsd文件的加载过程! 1 解决过程 dubbo-demo-provider导入eclipse后dubbox-demo-provider.xml报错详情: Multiple annotations found at this line: - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be

xml报错 Parse Fatal Error :在实体引用中,实体名称必须紧跟在&#39;&amp;&#39;后面

修改jndi配置文件中的密码后,重启tomcat报错如下  实际问题是xml中默认’&’是非法字符,用     &   替代 xml报错 Parse Fatal Error :在实体引用中,实体名称必须紧跟在'&'后面

android 程序中res/values-v14/styles.xml报错的解决办法

从旧的ADT迁移的新的ADT时, android 程序中res/values-v14/styles.xml报错: error: Error retrieving parent for item: No resource found that matches the given name :Theme.AppCompat.Light.DarkActionBar 解决办法:修改项目下的project-properties文件, 把下面这一行加入,指向新导入的support库(需要先导入这个库) an

保存xml报错 &#39;UTF_8&#39; is not a supported encoding name

ArgumentException: 'UTF_8' is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method. var doc=new XmlDocument(); XmlDeclaration declaration = doc.CreateXmlDeclarati

.net 微信APP支付接口的开发流程以及坑(转)

流程 申请APP的微信支付 申请成功之后得到APPID 商户号 以及自己设置商户号的支付密码 这时就可以开发接口了 微信APP支付API:https://pay.weixin.qq.com/wiki/doc/api/app/app.php?chapter=9_1 微信APP开发SDK:https://pay.weixin.qq.com/wiki/doc/api/app/app.php?chapter=11_1 接口开发 1.就说三个接口吧主要这三个接口是必须用的(如图),使用的方法SDK里面应该