javaʹÓôúÀí·ÃÎÊÍøÖ· - Java / Java SE
´úÂëÈçÏ £¬ÎÒÏëͨ¹ý´úÀí·ÃÎÊһЩÍøÖ·£¬µ«ÊDz»ÖªµÀÈçºÎ²âÊÔ´úÀí³É¹¦£¬ÎÒÏëͨ¹ý·ÃÎÊ¡°http://www.blogger.com/¡±À´¿´¿´ÊÇ·ñ´úÀí³É¹¦£¬µ«ÊÇÒ²²»ÄÜ·ÃÎÊ£¬³öÏÖÒì³£¡°Unexpected end of file from server¡±£¬µ«ÊÇÈç¹û²»ÕâÑù²âÊÔ£¬ÈçºÎÄÜÈ·¶¨´úÀí·ÃÎʳɹ¦ÁËÄØ£¿
лл
Java code:
package wf.yjy.zhxxj;
import java.io.IOException;
import java.io.InputStream;
import java.net.Authenticator;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.PasswordAuthentication;
import java.net.URL;
import java.util.Properties;
public class HttpProxy {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Properties prop = System.getProperties();
prop.put("proxySet","true");
// ÉèÖÃhttp·ÃÎÊҪʹÓõĴúÀí·þÎñÆ÷µÄµØÖ·
prop.setProperty("http.proxyHost", "130.194.11.121");
// ÉèÖÃhttp·ÃÎÊҪʹÓõĴúÀí·þÎñÆ÷µÄ¶Ë¿Ú
prop.setProperty("http.proxyPort", "1080");
prop.list(System.out);
// ÉèÖò»ÐèҪͨ¹ý´úÀí·þÎñÆ÷·ÃÎʵÄÖ÷»ú£¬¿ÉÒÔʹÓÃ*ͨÅä·û£¬¶à¸öµØÖ·ÓÃ|·Ö¸ô
//prop.setProperty("http.nonProxyHosts", "localhost|192.168.0.*");
// ÉèÖð²È«·ÃÎÊʹÓõĴúÀí·þÎñÆ÷µØÖ·Óë¶Ë¿Ú
// ËüûÓÐh
Ïà¹ØÎÊ´ð£º
µ±ÖªµÀÒ»¸öÈÕÆÚ£¬ÈçºÎ°ÑÕâ¸öÈÕÆÚËùÔÚÑ®µÄÇ°ºóÁ½¸öÈÕÆÚÈ¡³ö
±ÈÈçÊäÈë20090905£¬¾ÍÊäÈë20090901 20090910
Êä³ö20090901 20090910
È¡µÃÌìÊýºó×÷Ò»ÏÂÅжÏÔÙ°ÑÕâ¸ö·½·¨ÓÃÏÂvoid set(int field, int value)
......
ÔÚaspÀïÔõôµ÷ÓÃjavaдµÄwebservice·½·¨£¬Óкܶ෽·¨
- <message name="RtPnrIn">
<part name="bstrPnrNO" type="s:string" />
<part name ......
ÎÒÒѾ°´Õս̳ÌÉÏÅäÖÃtomcatµÄserver.xml
<Context path = "/POS" docBase = "POS" debug = "5" reloadable = "true" crossContext = "true" workDir = &quo ......
¸÷·´óÏÀ¸ø¸ö˼·£¬²»ÊÇÔÚÏßµÄÄÇÖÖ£¬¾ÍÊÇÒ»¸ö×öÆÕͨµÄÓ¦ÓóÌÐò¡£
´Ê¿âÔõôÉú³ÉÄØ£¿
²»»á¡£
ÒýÓÃ
´Ê¿âÔõôÉú³ÉÄØ£¿
ÕÒ±¾×Öµä
ÒýÓÃ
´Ê¿âÔõôÉú³ÉÄØ£¿
Êý¾Ý¿â ºÇºÇ
ÓÃmap ¼üÖµ¶ÔÓ¦
Èç¹ûÓÃÊý¾Ý¿ ......