Webservice的服务端用JDK1.6+自带的Webservice做的,客户端用的是XFile的webservice调用的,但是传过来的参数为NULL.
XFile的调用方式是:
String wsdl = "http://192.168.1.112:8088/testService?wsdl";
try {
Client clien...
分类:
Web程序 时间:
2015-04-17 20:32:41
阅读次数:
158
逻辑:接收到socket之后需要将socket发送的图片数据保存下来并通知handler更新界面关键代码:public void readImage(Socket socket) { try { InputSt...
分类:
移动开发 时间:
2015-04-17 19:53:23
阅读次数:
177
本文介绍了Python操作mysql,执行SQL语句,获取结果集,遍历结果集,取得某个字段,获取表字段名,将图片插入数据库,执行事务等各种代码实例和详细介绍。实例1、获取MYSQL的版本#!/usr/bin/envpython
importMySQLdbasmdb
try:
con=mdb.connect(‘localhost‘,‘root‘,‘123‘,‘test..
分类:
数据库 时间:
2015-04-17 18:31:53
阅读次数:
160
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".For C programmers: Try to solv...
分类:
其他好文 时间:
2015-04-17 18:05:36
阅读次数:
108
//DataTable转String方法 public static String DataTable2String(DataTable dt) { string strXML = "\r\n"; try { ...
Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/space.Return 0 ...
分类:
其他好文 时间:
2015-04-17 15:17:10
阅读次数:
148
一、HttpClinet方式1、HTTP GET 示例: 1 public class TestHttpGetMethod{
2 public void get(){
3 BufferedReader in = null;
4 try{
5 HttpClient client = new DefaultHt...
分类:
移动开发 时间:
2015-04-17 11:43:22
阅读次数:
314
public static int haoping(string x)//类里边,函数名随便起,需要传入参数为string类型 { //判断电话号码的输入情况,首位为1且总长度为11 //返回1表示填入号码正确,返回2则表示填入号码不正确 try { if (Convert.ToInt32...
Get请求: public static Result GetDataFromWebs(string waybillNumbers) { var result = new Result(); try { ...
原文转自:http://forumsarchive.laravel.io/viewtopic.php?id=10653,有空的时候再翻译一下~This post will try to outline how to use the Redirect::intended and Redirect::g...
分类:
其他好文 时间:
2015-04-16 17:27:09
阅读次数:
8270