收藏
回答

微信小程序快递助手服务端API接入韵达快递返回9300501错误

后端使用Tomcat服务器,JDK1.8版本,以下为发送的接口,参数和返回信息,提示“XML报文转换异常”,我将接口,参数用同样的方式发送请求,用本地java程序发送,却返回成功,不知道什么原因,能帮忙看看么?

=======================================================错误结果返回开始================================================

错误接口地址:https://api.weixin.qq.com/cgi-bin/express/business/order/add?access_token=37_4O6AXvoW5YP3ixka19H5dIiO_44RH_Jue_auQJlZzyRflWaA0g7UJgbDFtFMJfX5JifAcmUBxUgoLsIfjF9F35bg9O0tXVfxofgOk1NS02oC3HD8fYzdyX6-zU4UB91tM70unhOLQCWMaCn7ECZhABALJG

错误参数:{"add_source":0,"order_id":"159970039546379474","openid":"o3BP74lJlAfjjv4EZ282WPiRxupI","delivery_id":"YUNDA","biz_id":"6107561749","custom_remark":"请勿折叠","sender":{"name":"锦程","tel":"02861980686","mobile":"15928832823","company":"锦程","post_code":"621000","country":"中国","province":"四川省","city":"成都市","area":"青羊区","address":"光华中心C座"},"receiver":{"name":"阿斯顿","mobile":"17761240942","country":"中国","province":"北京市","city":"东城区","area":"","address":"阿斯顿"},"cargo":{"count":1,"weight":1,"space_x":30,"space_y":30,"space_z":30,"detail_list":[{"name":"幼儿园手指操(小班上)","count":1}]},"shop":{"wxa_path":"shop/order/express","img_url":"https://jc-content.jctong.net/mallupload/1590107856150.png","goods_name":"幼儿园手指操(小班上)","goods_count":1},"insured":{"use_insured":0,"insured_value":0},"service":{"service_type":0,"service_name":"标准快件"}}

错误返回:{"errcode":9300501,"errmsg":"delivery logic fail rid: 5f597e6f-40d0b6d4-04821a5b","delivery_resultcode":-1,"delivery_resultmsg":"xml报文转换异常","waybill_data":[]}

=======================================================错误结果返回结束================================================

=======================================================正确结果返回开始================================================

成功接口:https://api.weixin.qq.com/cgi-bin/express/business/order/add?access_token=37_4O6AXvoW5YP3ixka19H5dIiO_44RH_Jue_auQJlZzyRflWaA0g7UJgbDFtFMJfX5JifAcmUBxUgoLsIfjF9F35bg9O0tXVfxofgOk1NS02oC3HD8fYzdyX6-zU4UB91tM70unhOLQCWMaCn7ECZhABALJG

成功参数:{"add_source":0,"order_id":"159970039546379474","openid":"o3BP74lJlAfjjv4EZ282WPiRxupI","delivery_id":"YUNDA","biz_id":"6107561749","custom_remark":"请勿折叠","sender":{"name":"锦程","tel":"02861980686","mobile":"15928832823","company":"锦程","post_code":"621000","country":"中国","province":"四川省","city":"成都市","area":"青羊区","address":"光华中心C座"},"receiver":{"name":"阿斯顿","mobile":"17761240942","country":"中国","province":"北京市","city":"东城区","area":"","address":"阿斯顿"},"cargo":{"count":1,"weight":1,"space_x":30,"space_y":30,"space_z":30,"detail_list":[{"name":"幼儿园手指操(小班上)","count":1}]},"shop":{"wxa_path":"shop/order/express","img_url":"https://jc-content.jctong.net/mallupload/1590107856150.png","goods_name":"幼儿园手指操(小班上)","goods_count":1},"insured":{"use_insured":0,"insured_value":0},"service":{"service_type":0,"service_name":"标准快件"}}

成功返回:{"errcode":0,"errmsg":"ok","order_id":"159970039546379474","waybill_id":"3103949082011","waybill_data":[{"key":"YUNDA_PackageCenterCode","value":"京东市内包"},{"key":"YUNDA_ShortAddr_Part1","value":"100"},{"key":"YUNDA_ShortAddr_Part2","value":"000"}],"is_correct_sender":0,"is_correct_receiver":0}

=======================================================正确结果返回结束================================================

回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签