接口中去获取流水号

来源:互联网 发布:金进网络 编辑:程序博客网 时间:2024/06/06 20:07
public static void sendupdatestate_remark1(String orderid,String billmsg,String outprovid,String state,String remark1){
try{
//util.writeLog("SENDUPDATE",orderid+" | "+billmsg+" | "+state+" | "+outprovid);
HttpClient hc2=new HttpClient();
PostMethod pm2=new PostMethod("http://xxxxxx/allorder/rechbackstate.do");//难的是这里这个.do的里面的东西
pm2.addRequestHeader("Content-type",
"application/x-www-form-urlencoded; charset=GBK");
pm2.addRequestHeader("Connection","close");
   //System.out.println("向rechbackstate发送请求之前....,state:"+state);
      NameValuePair[] nvp2 = {
            new NameValuePair("billid", orderid),
new NameValuePair("billmsg", billmsg),
new NameValuePair("provid",outprovid),
            new NameValuePair("billstate", state),
            new NameValuePair("remark1", remark1)
            };
        pm2.setRequestBody(nvp2);
      hc2.executeMethod(pm2);
pm2.getResponseBodyAsString();
pm2.releaseConnection();
pm2=null;
hc2=null;
}catch (Exception e){
util.writeLog("Up_orderstate_exc",orderid+" : "+e.getMessage());
e.printStackTrace();
}

}


只是比平时的获取我们的订单号又多了一个字段而已

原创粉丝点击