admin 管理员组

文章数量: 1086019


2024年3月29日发(作者:openssl是美国的吗)

public String orderQueryRequest(String transactionID, String outTradeNo

)

{

// 构造HTTP请求

HttpClient httpclient = new HttpClient();

PostMethod postMethod = new PostMethod(_QUERY_API);

PayQueryReqData wxdata = new PayQueryReqData(transactionID,outTradeNo);

String requestStr="";

requestStr=tObj2Xml(wxdata);

// 发送请求

String strResponse = null;

try {

RequestEntity entity = new StringRequestEntity(

ng(), "text/xml", "UTF-8");

uestEntity(entity);

eMethod(postMethod);

strResponse = new String(ponseBody(), "utf-8");

} catch (HttpException e) {

ger(getClass()).error("orderQueryRequest", e);

} catch (IOException e) {

ger(getClass()).error("orderQueryRequest", e);

} finally {

eConnection();

}

return strResponse;

}

}


本文标签: 请求 美国 作者 构造 发送