- 浏览: 53801 次
- 性别:
- 来自: 深圳
文章分类
最新评论
RTC
https://github.com/loiane/curso-extjs4
http://blog.csdn.net/leimengyuanlian/article/details/18748599
https://github.com/loiane/extjs4-first-look
http://www.cnblogs.com/fsjohnhuang/archive/2013/03/06/2945311.html
https://github.com/kdnc/spring-exercises/blob/110558a972e36cc58bd45851a87ebe4b485f1c54/b-peadweas-task-time-tracker/src/main/webapp/app/Application.js
https://github.com/fharenheit/flamingo-hadoop-manager-oozie/tree/2cb42263a94787d366a65c12c11d6b2bcd89c91f/src/main/webapp/resources/js/ext4-highchart-ext/Chart/ux
http://www.qeefee.com/article/extjs-mvc-in-detail
http://extjs-doc-cn.github.io/ext4api/
http://www.cnblogs.com/fsjohnhuang/archive/2013/02/19/2917233.html
https://github.com/weishengshui/jxt_01/blob/f9ec7e4de481873b1063f564b5716bedadeba8f7/metro/src/main/webapp/WEB-INF/views/brand/list.jsp
https://github.com/gripson/EIMS/blob/cc79bb4135f209ecc6f3b36dc643ccd7b3f428ff/app/views/Application/employee.html
select t.user_def4,case when t.user_def5 = 2300 then 2700 when t.user_def5 = 2700 then 2900 end from push_tb_has_been_send_data d,push_tb_has_been_send_data_detail t where d.id = t.send_data_link_id and
d.company_code = '5715920351' and d.int_code = 'SALE_ORDER_STATUS_PUSH_SERVICE' and d.create_tm > '2017-01-07' and d.create_tm < '2017-01-07 14:08:57' ;
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns="http://www.w3.org/TR/REC-html40">
<!-- FileName: misc-evans -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Purpose: COPY of perf test;"A Practical Suggestion for XSLT Performance Improvement" by Clark Evans. -->
<xsl:variable name="day-list"
select="//dow[not(.=following::dow)]" />
<xsl:variable name="product-list"
select="//product[not(.=following::product)]" />
<xsl:template match="/">
<xsl:variable name="my-test"><a><b/></a></xsl:variable>
<html>
<xsl:copy-of select="$my-test"/>
<body>
<table>
<tr>
<td><xsl:text> </xsl:text></td>
<xsl:for-each select="$day-list">
<xsl:sort order="ascending" select="." />
<th><xsl:value-of select="."/></th>
</xsl:for-each>
</tr>
<xsl:for-each select="$product-list">
<xsl:sort order="ascending" select="." />
<xsl:variable name="product" select="." />
<tr>
<td>
<xsl:value-of select="$product" />
</td>
<xsl:for-each select="$day-list">
<xsl:sort order="ascending" select="." />
<xsl:variable name="day" select="." />
<td>
<xsl:value-of
select="sum(//price[../product=$product][../../../dow=$day])"
/> .
</td>
</xsl:for-each>
<td>
<xsl:value-of
select="sum(//price[../product=$product])" /> .
</td>
</tr>
</xsl:for-each>
<tr>
<td><xsl:text> </xsl:text></td>
<xsl:for-each select="$day-list">
<xsl:sort order="ascending" select="." />
<xsl:variable name="day" select="." />
<td>
<xsl:value-of
select="sum(//price[../../../dow=$day])" />
</td>
</xsl:for-each>
<td>
<xsl:value-of select="sum(//price)" />
</td>
</tr>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
<upload>
<day>
<dow>tue</dow>
<order>
<line>
<product>Belt</product>
<price>5.54</price>
</line>
</order>
</day>
<day>
<dow>wed</dow>
</day>
<day>
<dow>thu</dow>
<order>
<line>
<product>Boots</product>
<price>9.23</price>
</line>
</order>
</day>
<day>
<dow>fri</dow>
<order>
</order>
<order>
</order>
</day>
<day>
<dow>sat</dow>
<order>
<line>
<product>Jacket</product>
<price>9.84</price>
</line>
</order>
</day>
<day>
<dow>mon</dow>
<order>
</order>
<order>
<line>
<product>Tie</product>
<price>5.37</price>
</line>
</order>
</day>
<day>
<dow>tue</dow>
</day>
<day>
<dow>wed</dow>
<order>
</order>
</day>
<day>
<dow>thu</dow>
<order>
<line>
<product>Overalls</product>
<price>3.16</price>
</line>
</order>
</day>
</upload>
http://www.cnblogs.com/jeremyyang824/p/5856353.html
http://www.cnblogs.com/admol/articles/4248159.html
http://blog.csdn.net/happylife_haha/article/details/51993350
<!-- https://mvnrepository.com/artifact/org.jboss.resteasy/resteasy-jaxrs -->
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-jaxrs</artifactId>
<version>3.1.1.Final</version>
</dependency>
Thread 主
BlockingQueue a = new BlockingQueue(100);
Thread.start() --- 读线程
a.put(data);
a.poll
Thread.start() ---处理队列1 --
queue = a;
run(){
while(flag){
syscronized(queue){
if(!queue.isempty){
a.poll();
}
}
}
}
Thread.start() ---处理队列2
Thread.start() ---处理队列3
Thread.start() ---处理队列4
Thread.start() ---处理队列5
子: 取数处理,如果队列为空,休眠N秒,ActomicLong +1 ,如果有值, ActomicLong = 0. ActomicLong >10 Thread停止。
主: 如果excutorservice 空闲, 如果queue不为空, new 处理子线程 submit, 如果queue为空时 sleep ActomicLong +1 超过10次
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import org.apache.http.HttpEntity;
import org.apache.http.HttpException;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.conn.scheme.PlainSocketFactory;
import org.apache.http.conn.scheme.Scheme;
import org.apache.http.conn.scheme.SchemeRegistry;
import org.apache.http.conn.ssl.SSLSocketFactory;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager;
import org.apache.http.params.BasicHttpParams;
import org.apache.http.params.HttpConnectionParams;
import org.apache.http.params.HttpParams;
import org.apache.http.protocol.HTTP;
import org.apache.http.util.EntityUtils;
public class Test {
/**
* @param args
* @throws IOException
* @throws HttpException
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
HttpClient httpClient = new DefaultHttpClient();
String soapRequestData = "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
+ "<soap12:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\""
+ " xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\""
+ " xmlns:soap12=\"http://www.w3.org/2003/05/soap-envelope\">"
+ " <soap12:Body>"
+ " <GetAPACShippingPackage xmlns=\"http://shippingapi.ebay.cn/\">"
+ " <GetAPACShippingPackageRequest>"
+ " <TrackCode>123</TrackCode>"
+ " <Version>123</Version>"
+ " <APIDevUserID>123</APIDevUserID>"
+ " <APIPassword>123</APIPassword>"
+ " <APISellerUserID>123</APISellerUserID>"
+ " <MessageID>123</MessageID>"
+ " </GetAPACShippingPackageRequest>"
+ " </GetAPACShippingPackage>" + "</soap12:Body>"
+ " </soap12:Envelope>";
System.out.println(soapRequestData);
try {
HttpPost postMethod = new HttpPost(
"http://epacketws.pushauction.net/v3/orderservice.asmx?wsdl");
SchemeRegistry schemeRegistry = new SchemeRegistry();
schemeRegistry.register(new Scheme("http", PlainSocketFactory.getSocketFactory(), 80));
schemeRegistry.register(new Scheme("https", SSLSocketFactory.getSocketFactory(), 443));
HttpParams params = new BasicHttpParams();
HttpConnectionParams.setSoTimeout(params, 600 * 1000); // 10 min
HttpConnectionParams.setConnectionTimeout(params, 600 * 1000); // 10 min
ThreadSafeClientConnManager cm = new ThreadSafeClientConnManager(params, schemeRegistry);
// 然后把Soap请求数据添加到PostMethod中
HttpEntity re = new StringEntity(soapRequestData,HTTP.UTF_8);
postMethod.setHeader("Content-Type","application/soap+xml; charset=utf-8");
postMethod.setEntity(re);
// 最后生成一个HttpClient对象,并发出postMethod请求
HttpResponse response = httpClient.execute(postMethod);
System.out.println(EntityUtils.toString(postMethod.getEntity()));
System.out.println(response.getStatusLine());
// HttpEntity entity = response.getEntity();
InputStream inputStream = null;
// inputStream = entity.getContent();
System.out.println(EntityUtils.toString(response.getEntity()));
// BufferedReader reader = new BufferedReader(new InputStreamReader(
// response.getEntity().getContent(), "UTF-8"));
// String json = reader.readLine();
// // message = message.replace("#{user}", credentials.getUsername());
// inputStream.close();
// reader.close();
} catch (UnsupportedEncodingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (ClientProtocolException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}finally{
httpClient.getConnectionManager().shutdown();
}
//https://github.com/search?p=18&q=application%2Fsoap%2Bxml++++HttpClient++HttpPost&ref=searchresults&type=Code&utf8=%E2%9C%93
}
}
http://blog.csdn.net/leimengyuanlian/article/details/18748599
https://github.com/loiane/extjs4-first-look
http://www.cnblogs.com/fsjohnhuang/archive/2013/03/06/2945311.html
https://github.com/kdnc/spring-exercises/blob/110558a972e36cc58bd45851a87ebe4b485f1c54/b-peadweas-task-time-tracker/src/main/webapp/app/Application.js
https://github.com/fharenheit/flamingo-hadoop-manager-oozie/tree/2cb42263a94787d366a65c12c11d6b2bcd89c91f/src/main/webapp/resources/js/ext4-highchart-ext/Chart/ux
http://www.qeefee.com/article/extjs-mvc-in-detail
http://extjs-doc-cn.github.io/ext4api/
http://www.cnblogs.com/fsjohnhuang/archive/2013/02/19/2917233.html
https://github.com/weishengshui/jxt_01/blob/f9ec7e4de481873b1063f564b5716bedadeba8f7/metro/src/main/webapp/WEB-INF/views/brand/list.jsp
https://github.com/gripson/EIMS/blob/cc79bb4135f209ecc6f3b36dc643ccd7b3f428ff/app/views/Application/employee.html
select t.user_def4,case when t.user_def5 = 2300 then 2700 when t.user_def5 = 2700 then 2900 end from push_tb_has_been_send_data d,push_tb_has_been_send_data_detail t where d.id = t.send_data_link_id and
d.company_code = '5715920351' and d.int_code = 'SALE_ORDER_STATUS_PUSH_SERVICE' and d.create_tm > '2017-01-07' and d.create_tm < '2017-01-07 14:08:57' ;
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns="http://www.w3.org/TR/REC-html40">
<!-- FileName: misc-evans -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Purpose: COPY of perf test;"A Practical Suggestion for XSLT Performance Improvement" by Clark Evans. -->
<xsl:variable name="day-list"
select="//dow[not(.=following::dow)]" />
<xsl:variable name="product-list"
select="//product[not(.=following::product)]" />
<xsl:template match="/">
<xsl:variable name="my-test"><a><b/></a></xsl:variable>
<html>
<xsl:copy-of select="$my-test"/>
<body>
<table>
<tr>
<td><xsl:text> </xsl:text></td>
<xsl:for-each select="$day-list">
<xsl:sort order="ascending" select="." />
<th><xsl:value-of select="."/></th>
</xsl:for-each>
</tr>
<xsl:for-each select="$product-list">
<xsl:sort order="ascending" select="." />
<xsl:variable name="product" select="." />
<tr>
<td>
<xsl:value-of select="$product" />
</td>
<xsl:for-each select="$day-list">
<xsl:sort order="ascending" select="." />
<xsl:variable name="day" select="." />
<td>
<xsl:value-of
select="sum(//price[../product=$product][../../../dow=$day])"
/> .
</td>
</xsl:for-each>
<td>
<xsl:value-of
select="sum(//price[../product=$product])" /> .
</td>
</tr>
</xsl:for-each>
<tr>
<td><xsl:text> </xsl:text></td>
<xsl:for-each select="$day-list">
<xsl:sort order="ascending" select="." />
<xsl:variable name="day" select="." />
<td>
<xsl:value-of
select="sum(//price[../../../dow=$day])" />
</td>
</xsl:for-each>
<td>
<xsl:value-of select="sum(//price)" />
</td>
</tr>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
<upload>
<day>
<dow>tue</dow>
<order>
<line>
<product>Belt</product>
<price>5.54</price>
</line>
</order>
</day>
<day>
<dow>wed</dow>
</day>
<day>
<dow>thu</dow>
<order>
<line>
<product>Boots</product>
<price>9.23</price>
</line>
</order>
</day>
<day>
<dow>fri</dow>
<order>
</order>
<order>
</order>
</day>
<day>
<dow>sat</dow>
<order>
<line>
<product>Jacket</product>
<price>9.84</price>
</line>
</order>
</day>
<day>
<dow>mon</dow>
<order>
</order>
<order>
<line>
<product>Tie</product>
<price>5.37</price>
</line>
</order>
</day>
<day>
<dow>tue</dow>
</day>
<day>
<dow>wed</dow>
<order>
</order>
</day>
<day>
<dow>thu</dow>
<order>
<line>
<product>Overalls</product>
<price>3.16</price>
</line>
</order>
</day>
</upload>
http://www.cnblogs.com/jeremyyang824/p/5856353.html
http://www.cnblogs.com/admol/articles/4248159.html
http://blog.csdn.net/happylife_haha/article/details/51993350
<!-- https://mvnrepository.com/artifact/org.jboss.resteasy/resteasy-jaxrs -->
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-jaxrs</artifactId>
<version>3.1.1.Final</version>
</dependency>
- init.rar (1.9 KB)
- 下载次数: 1
- jadx-0.6.1-dev.zip (3.8 MB)
- 下载次数: 1
- settings.rar (4.1 KB)
- 下载次数: 1
- jquery-easyui-1.4.3.zip (876.7 KB)
- 下载次数: 1
- 1.zip (6.3 MB)
- 下载次数: 2
- aejoelaoggembcahagimdiliamlcdmfm.rar (5.1 MB)
- 下载次数: 3
- 2.zip (4.7 MB)
- 下载次数: 2
- lgllffgicojgllpmdbemgglaponefajn.zip (267 KB)
- 下载次数: 3
- 1.rar (1.5 MB)
- 下载次数: 4
- 新建文本文档__3_.rar (1.3 KB)
- 下载次数: 1
- 123.zip (19.9 KB)
- 下载次数: 1
- w.zip (1 MB)
- 下载次数: 2
- Desktop.rar (1.6 MB)
- 下载次数: 5
- swagger-ui-2.2.8.zip (1.4 MB)
- 下载次数: 0
- 44.zip (312.5 KB)
- 下载次数: 2
- 123.7z (1.7 MB)
- 下载次数: 3
- 1212.rar (13.2 KB)
- 下载次数: 3
评论
10 楼
rooi
2015-05-13
http://www.cnblogs.com/gywbg/archive/2012/05/11/2496706.html
http://blog.csdn.net/hzc543806053/article/details/7538723
http://blog.csdn.net/a1314517love/article/details/17042385
http://blog.csdn.net/hzc543806053/article/details/7538723
http://blog.csdn.net/a1314517love/article/details/17042385
9 楼
rooi
2015-04-30
http://blog.csdn.net/yanjunlu/article/details/8017167
8 楼
rooi
2015-04-29
http://www.cnblogs.com/sword-successful/p/3386861.html
7 楼
rooi
2015-04-21
select a.* from send_info a where 3 > (select count(*) from send_info where company_code = a.company_code and main_id = a.main_id and order_num < a.order_num ) order by a.company_code,a.main_id
6 楼
rooi
2015-04-20
http://blog.csdn.net/mysqldbd/article/details/6132268
5 楼
rooi
2015-04-19
SELECT * FROM (SELECT cid,author,COUNT(*) AS number FROM test GROUP BY cid,author) a
WHERE
N>(
SELECT COUNT(*)
FROM (SELECT cid,author,COUNT(*) AS number FROM test GROUP BY cid,author) b
WHERE a.cid=b.cid AND a.number<b.number
)ORDER BY cid,number DESC;
http://www.it165.net/database/html/201403/5728.html
WHERE
N>(
SELECT COUNT(*)
FROM (SELECT cid,author,COUNT(*) AS number FROM test GROUP BY cid,author) b
WHERE a.cid=b.cid AND a.number<b.number
)ORDER BY cid,number DESC;
http://www.it165.net/database/html/201403/5728.html
4 楼
rooi
2015-02-15
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Form - jQuery EasyUI Demo</title>
<style type="text/css">
.form span{float:left;width:100px;vertical-align: top;}
.form label{ display:block;padding:1px; }
.form textarea{vertical-align: top;}
</style>
<link rel="stylesheet" type="text/css" href="../js/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../js/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../js/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="../js/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript">
function loaddata1(){
$('#ff').form('load','form_data.json');
}
function loaddata2(){
$('#ff').form('load',{
name:'name2',
email:'mymail@gmail.com',
subject:'subject2',
message:'message2',
language:5
});
}
function cleardata(){
$('#ff').form('clear');
}
</script>
</head>
<body>
<h2>Form Demo</h2>
<div class="demo-info">
<div class="demo-tip icon-tip"></div>
<div>Click below button to load or clear the form data.</div>
</div>
<div style="margin:10px 0;">
<a href="#" class="easyui-linkbutton" onclick="loaddata1()">Load1</a>
<a href="#" class="easyui-linkbutton" onclick="loaddata2()">Load2</a>
<a href="#" class="easyui-linkbutton" onclick="cleardata()">Clear</a>
</div>
<div style="background:#fafafa;padding:10px;width:300px;height:300px;">
<form id="ff" class="form" method="post">
<label><span>Name:</span>
<input class="easyui-validatebox" type="text" name="name" data-options="required:true"></input></label>
<label ><span>配置:</span>
<input class="easyui-validatebox" type="text" name="email" data-options="validType:'email'"></input></label>
<label"><span>配置名称:</span>
<input class="easyui-validatebox" type="text" name="subject"></input></label>
<label><span>配置名称he:</span>
<textarea name="message" ></textarea></label>
<label><span>备注:</span>
<textarea name="message" style="height:60px;"></textarea></label>
<label for="language">Language:</label>
<input class="easyui-combobox" name="language"
data-options="
url:'combobox_data.json',
valueField:'id',
textField:'text',
panelHeight:'auto'
">
<input type="submit" value="Submit">
</form>
</div>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Form - jQuery EasyUI Demo</title>
<style type="text/css">
.form span{float:left;width:100px;vertical-align: top;}
.form label{ display:block;padding:1px; }
.form textarea{vertical-align: top;}
</style>
<link rel="stylesheet" type="text/css" href="../js/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../js/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="demo.css">
<script type="text/javascript" src="../js/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="../js/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript">
function loaddata1(){
$('#ff').form('load','form_data.json');
}
function loaddata2(){
$('#ff').form('load',{
name:'name2',
email:'mymail@gmail.com',
subject:'subject2',
message:'message2',
language:5
});
}
function cleardata(){
$('#ff').form('clear');
}
</script>
</head>
<body>
<h2>Form Demo</h2>
<div class="demo-info">
<div class="demo-tip icon-tip"></div>
<div>Click below button to load or clear the form data.</div>
</div>
<div style="margin:10px 0;">
<a href="#" class="easyui-linkbutton" onclick="loaddata1()">Load1</a>
<a href="#" class="easyui-linkbutton" onclick="loaddata2()">Load2</a>
<a href="#" class="easyui-linkbutton" onclick="cleardata()">Clear</a>
</div>
<div style="background:#fafafa;padding:10px;width:300px;height:300px;">
<form id="ff" class="form" method="post">
<label><span>Name:</span>
<input class="easyui-validatebox" type="text" name="name" data-options="required:true"></input></label>
<label ><span>配置:</span>
<input class="easyui-validatebox" type="text" name="email" data-options="validType:'email'"></input></label>
<label"><span>配置名称:</span>
<input class="easyui-validatebox" type="text" name="subject"></input></label>
<label><span>配置名称he:</span>
<textarea name="message" ></textarea></label>
<label><span>备注:</span>
<textarea name="message" style="height:60px;"></textarea></label>
<label for="language">Language:</label>
<input class="easyui-combobox" name="language"
data-options="
url:'combobox_data.json',
valueField:'id',
textField:'text',
panelHeight:'auto'
">
<input type="submit" value="Submit">
</form>
</div>
</body>
</html>
3 楼
rooi
2015-02-09
Thread 主
BlockingQueue a = new BlockingQueue(100);
Thread.start() --- 读线程
a.put(data);
a.poll
Thread.start() ---处理队列1 --
queue = a;
run(){
while(flag){
syscronized(queue){
if(!queue.isempty){
a.poll();
}
}
}
}
Thread.start() ---处理队列2
Thread.start() ---处理队列3
Thread.start() ---处理队列4
Thread.start() ---处理队列5
子: 取数处理,如果队列为空,休眠N秒,ActomicLong +1 ,如果有值, ActomicLong = 0. ActomicLong >10 Thread停止。
主: 如果excutorservice 空闲, 如果queue不为空, new 处理子线程 submit, 如果queue为空时 sleep ActomicLong +1 超过10次
2 楼
rooi
2015-01-26
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import org.apache.http.HttpEntity;
import org.apache.http.HttpException;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.conn.scheme.PlainSocketFactory;
import org.apache.http.conn.scheme.Scheme;
import org.apache.http.conn.scheme.SchemeRegistry;
import org.apache.http.conn.ssl.SSLSocketFactory;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager;
import org.apache.http.params.BasicHttpParams;
import org.apache.http.params.HttpConnectionParams;
import org.apache.http.params.HttpParams;
import org.apache.http.protocol.HTTP;
import org.apache.http.util.EntityUtils;
public class Test {
/**
* @param args
* @throws IOException
* @throws HttpException
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
HttpClient httpClient = new DefaultHttpClient();
String soapRequestData = "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
+ "<soap12:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\""
+ " xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\""
+ " xmlns:soap12=\"http://www.w3.org/2003/05/soap-envelope\">"
+ " <soap12:Body>"
+ " <GetAPACShippingPackage xmlns=\"http://shippingapi.ebay.cn/\">"
+ " <GetAPACShippingPackageRequest>"
+ " <TrackCode>123</TrackCode>"
+ " <Version>123</Version>"
+ " <APIDevUserID>123</APIDevUserID>"
+ " <APIPassword>123</APIPassword>"
+ " <APISellerUserID>123</APISellerUserID>"
+ " <MessageID>123</MessageID>"
+ " </GetAPACShippingPackageRequest>"
+ " </GetAPACShippingPackage>" + "</soap12:Body>"
+ " </soap12:Envelope>";
System.out.println(soapRequestData);
try {
HttpPost postMethod = new HttpPost(
"http://epacketws.pushauction.net/v3/orderservice.asmx?wsdl");
SchemeRegistry schemeRegistry = new SchemeRegistry();
schemeRegistry.register(new Scheme("http", PlainSocketFactory.getSocketFactory(), 80));
schemeRegistry.register(new Scheme("https", SSLSocketFactory.getSocketFactory(), 443));
HttpParams params = new BasicHttpParams();
HttpConnectionParams.setSoTimeout(params, 600 * 1000); // 10 min
HttpConnectionParams.setConnectionTimeout(params, 600 * 1000); // 10 min
ThreadSafeClientConnManager cm = new ThreadSafeClientConnManager(params, schemeRegistry);
// 然后把Soap请求数据添加到PostMethod中
HttpEntity re = new StringEntity(soapRequestData,HTTP.UTF_8);
postMethod.setHeader("Content-Type","application/soap+xml; charset=utf-8");
postMethod.setEntity(re);
// 最后生成一个HttpClient对象,并发出postMethod请求
HttpResponse response = httpClient.execute(postMethod);
System.out.println(EntityUtils.toString(postMethod.getEntity()));
System.out.println(response.getStatusLine());
// HttpEntity entity = response.getEntity();
InputStream inputStream = null;
// inputStream = entity.getContent();
System.out.println(EntityUtils.toString(response.getEntity()));
// BufferedReader reader = new BufferedReader(new InputStreamReader(
// response.getEntity().getContent(), "UTF-8"));
// String json = reader.readLine();
// // message = message.replace("#{user}", credentials.getUsername());
// inputStream.close();
// reader.close();
} catch (UnsupportedEncodingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (ClientProtocolException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}finally{
httpClient.getConnectionManager().shutdown();
}
//https://github.com/search?p=18&q=application%2Fsoap%2Bxml++++HttpClient++HttpPost&ref=searchresults&type=Code&utf8=%E2%9C%93
}
}
1 楼
rooi
2015-01-06
H1bJTd2SauPv5Garuaq0Ig43uqq5NJOEw94wxdZTpU-pFB9GmyPk677gJ
vC1Ro6sbAvKR4pVwtxdCfuoZDb6hJ5bVQKqlfihJfSYZt-xVrVU27+0Ja
hFbqTmYskatMTgPyjvv99CF2Te8ec+Ys2SPxyZAF0YwOCNOWmsyqN5y9t
q2Kw2pjoiDs5gIH-uw5U49JzOB6otS7kThBJE-H9A76u4uUvR8DKb+VcB
rWu5qSJGEnbsXNfJdq5L2D8QgRdV-sXHp2A-7j1X2n4WIISvU1V9koIyS
NisHFBTcWJS0sC5BTFwrtfLEE9lEwz2bxHQpWJiu12ZeKpi+7oUSqebX+
vC1Ro6sbAvKR4pVwtxdCfuoZDb6hJ5bVQKqlfihJfSYZt-xVrVU27+0Ja
hFbqTmYskatMTgPyjvv99CF2Te8ec+Ys2SPxyZAF0YwOCNOWmsyqN5y9t
q2Kw2pjoiDs5gIH-uw5U49JzOB6otS7kThBJE-H9A76u4uUvR8DKb+VcB
rWu5qSJGEnbsXNfJdq5L2D8QgRdV-sXHp2A-7j1X2n4WIISvU1V9koIyS
NisHFBTcWJS0sC5BTFwrtfLEE9lEwz2bxHQpWJiu12ZeKpi+7oUSqebX+
相关推荐
RTC5驱动程序是针对德国scanlab公司的激光扫描振镜系统所设计的一款专业驱动软件。这款驱动主要用于控制RTC4和RTC5系列的激光扫描头,确保它们在精密的激光加工任务中能够准确、高效地工作。在本文中,我们将深入...
RTC5Wrap_rtc5开发教程 RTC5控制卡_RTC_RTC5 RTC5是德国RTC公司推出的一款高级控制卡,主要用于工业自动化、过程控制等领域的实时数据处理和系统控制。本教程将详细阐述如何进行RTC5控制卡的开发工作,以及如何利用...
RTC6659E与RTC6705是两种在无线通信系统中常见的实时时钟(RTC)芯片,常用于物联网设备、智能家居、移动设备等需要精确时间保持的应用。这两款芯片的数据手册提供了详细的规格参数、功能描述以及应用电路图,帮助...
STM32F103系列微控制器是STMicroelectronics公司推出的基于ARM Cortex-M3内核的32位微控制器,其内部集成了实时时钟(RTC)模块,这对于需要进行时间管理和日历功能的应用非常有用。本文将详细介绍如何初始化STM32...
RTC4驱动是针对德国scanlab公司的激光扫描器设备所设计的一款关键软件组件。这款驱动程序主要功能在于确保RTC4控制器与计算机之间的通信畅通无阻,从而实现高效、精确的激光扫描操作。在本文中,我们将深入探讨RTC4...
RTC5校正软件是德国SCANLAB公司为他们的激光扫描振镜系统开发的一款专业工具,主要用于提升系统的精度和性能。在激光加工行业中,特别是在精密打标、切割和焊接应用中,激光扫描振镜的校正是至关重要的步骤。这篇...
在本文中,我们将深入探讨如何在STM32F103C8微控制器上实现RTC(Real-Time Clock)闹钟功能,使用HSE(High Speed External)时钟源作为RTC时钟,并通过LSE(Low Speed External)进行备份。STM32F103系列是意法...
标题“DW_apb_rtc.zip_Apb_DW_apb__apb verilog_dw_apb_rtc_rtc apb”中包含的关键信息有“DW_apb_rtc”和“APB”。这里的“DW_apb_rtc”可能指的是设计工作(Design Work)针对APB总线实现的RTC模块。而“APB”全称...
RTC(Real_Time Clock)为整个电子系统提供时间基准,MCU、MPU、CPU均离不开RTC电路设计,在设计、应用RTC单元时,常常会发现延时、超时或者功耗过大现象,如何解决RTC精度以及功耗问题呢?本文将为您介绍时钟芯片PCF...
STM32串口配置RTC是一种常见的嵌入式系统应用,它允许通过串行通信接口(USART)对STM32微控制器的实时时钟(RTC)进行编程和读取。在这个过程中,RTC作为系统的时间基准,而USART则作为与外部设备交互的通道。以下...
5. **写入RTC时间**: 当需要更新RTC的时间,例如同步到网络时间,可以使用`LL_RTC_DateWrite()`和`LL_RTC_TimeWrite()`函数。写入操作需要在RTC的保护模式下进行,以防止在操作过程中发生中断导致数据不一致。 6. *...
在本文中,我们将深入探讨如何在STM32F030R8Tx微控制器上使用HAL库实现基于LSI(内部低速振荡器)的RTC(实时时钟)功能,并进行频率校准。STM32系列是意法半导体公司(STMicroelectronics)推出的一系列高性能、低...
树莓派的一个重要特性是它能够使用外部实时时钟(Real-Time Clock,简称RTC)模块来保持准确的时间,即使在断电的情况下也是如此。在树莓派上配置RTC时钟是树莓派使用中的一个重要环节。 要配置树莓派的RTC模块,...
2. **设置时间**: 使用RTC_DateTypeDef和RTC_TimeTypeDef结构体设置日期和时间,如RTC_DateTypeDef结构体包含年、月、日、周等信息,RTC_TimeTypeDef结构体包含小时、分钟、秒等信息。 3. **设置闹钟**: 使用RTC_...
本实验主要探讨的是STM32在低功耗待机模式下如何利用RTC(实时时钟)进行唤醒,这是实现长时间电池运行应用中的关键功能。 首先,STM32的低功耗待机模式是其功耗最低的一种工作模式,此时CPU、外设以及电压调节器...
复旦微电子FM33G0系列是一款高性能的8位微控制器,其内置的RTC(Real-Time Clock)功能是该芯片的重要特性之一。RTC模块在单片机中扮演着时间管理的角色,它能够提供精确的时钟信号,用于系统的时间记录和定时任务的...
RTC4打标卡SDK是一个专为开发者设计的软件开发工具包,主要用于与RTC4打标卡进行交互,实现各种打标任务,如文本、条形码、二维码等的标记。RTC4是一种工业级的硬件设备,常用于制造业、电子行业等领域,能够精确地...
在单片机应用中,实时时钟(RTC)是至关重要的功能组件,尤其在需要长时间持续运行且对时间精度有严格要求的场合。STM32微控制器系列中集成了RTC模块,允许用户实现时间追踪功能。然而,内置RTC的准确性可能会受到各种...
在本项目中,我们将深入探讨如何利用STM32实现基于RTC(Real-Time Clock)的LED灯显示走时程序。RTC是微控制器中用于保持精确时间的硬件模块,即使主电源关闭,也能通过备用电源继续运行。 首先,我们要了解RTC的...