public class GetWxOrderno extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.apache.http.impl.client.DefaultHttpClient |
httpclient |
static String |
result |
| Constructor and Description |
|---|
GetWxOrderno() |
| Modifier and Type | Method and Description |
|---|---|
static Map |
doXMLParse(String strxml)
解析xml,返回第一级元素键值对。如果第一级元素有子节点,则此节点的值是子节点的xml数据。
|
static String |
getChildrenText(List children)
获取子结点的xml
|
String |
getCodeUrl(String serverUrl,
String xml) |
static String |
getPayNo(String url,
String xmlParam)
description:获取预支付id
|
static InputStream |
String2Inputstream(String str) |
public static org.apache.http.impl.client.DefaultHttpClient httpclient
public static String result
public String getCodeUrl(String serverUrl, String xml) throws org.apache.http.client.ClientProtocolException, IOException
org.apache.http.client.ClientProtocolExceptionIOExceptionpublic static String getPayNo(String url, String xmlParam)
url - xmlParam - public static Map doXMLParse(String strxml) throws Exception
strxml - IOExceptionExceptionpublic static InputStream String2Inputstream(String str)
Copyright © 2018. All rights reserved.