¼òµ¥µÄwebservices£¨java£©
ת×Ôhttp://www.cnblogs.com/liwp_stephen/archive/2008/08/03/1259385.html£¬·Ç³£¸Ðл×÷ÕߵķÖÏí
ʹÓÃAxis±àдWebService±È½Ï¼òµ¥£¬¾ÍÎÒµÄÀí½â£¬WebServiceµÄʵÏÖ´úÂëºÍ±àдJava´úÂëÆäʵûÓÐʲôÇø±ð£¬Ö÷ÒªÊǽ«ÄÄЩJavaÀà·¢²¼ÎªWebService¡£ÏÂÃæÊÇÒ»¸ö´Ó±àд²âÊÔÀý×Óµ½·¢²¼WebService£¬ÒÔ¼°±àд²âÊÔ´úÂëµÄ¹ý³Ì½éÉÜ¡£
±¾Àý×ÓµÄWebServiceÌṩÁËÁ½¸ö·½·¨£¬·Ö±ðÊÇsayHelloºÍsayHelloToPerson£¬µÚÒ»¸öÖ»ÊÇ·µ»ØÒ»¸ö"Hello"×Ö·û´®£¬Ã»ÓвÎÊý£¬µÚ¶þ¸öº¯Êý½ÓÊÜÒ»¸ö×Ö·û´®×÷Ϊ²ÎÊý£¬·µ»Ø"Hello ²ÎÊýÖµ"£¬¸ÃÀý×ӱȽϼòµ¥£¬µ«ÊÇÇå³þµÄ˵Ã÷ÁË´Ó±àд´úÂëµ½·¢²¼ÎªWebServiceÒÔ¼°²âÊÔ±àдºÃµÄWebServiceÈ«¹ý³Ì¡£
±àд·þÎñ´úÂë
·þÎñ´úÂëÌṩÁËÁ½¸öº¯Êý£¬·Ö±ðΪsayHelloºÍsayHelloToPerson£¬Ô´´úÂëÈçÏ£º
Code
/*
* File name: HelloService.java
*
* Version: v1.0
*
* Created on Aug 2, 2008 9:40:20 AM
*
* Designed by Stephen
*
* (c)Copyright 2008
*/
package com.sinosoft.webservice;
/**
* @author Stephen
*
* Test web service
*/
public class HelloService {
/**
* ²»´ø²ÎÊýµÄº¯Êý
*
* @return ·µ»ØHello×Ö·û´®
*/
public String sayHello() {
return "Hello";
}
/**
* ´ø²ÎÊýµÄº¯Êý
*
* @param name
* Ãû³Æ
* @return ·µ»Ø¼ÓÉÏÃû³ÆµÄ
Ïà¹ØÎĵµ£º
1995Äê5ÔÂ23ÈÕ£¬JavaÓïÑÔµ®Éú
1996Äê1Ô£¬µÚÒ»¸öJDK-JDK1.0µ®Éú
1996Äê4Ô£¬10¸ö×îÖ÷ÒªµÄ²Ù×÷ϵͳ¹©Ó¦ÉÌÉêÃ÷½«ÔÚÆä²úÆ·ÖÐǶÈëJAVA¼¼Êõ
1996Äê9Ô£¬Ô¼8.3Íò¸öÍøÒ³Ó¦ÓÃÁËJAVA¼¼ÊõÀ´ÖÆ×÷
1997Äê2ÔÂ18ÈÕ£¬JDK1.1·¢²¼
1997Äê4ÔÂ2ÈÕ£¬JavaOne»áÒéÕÙ¿ª£¬²ÎÓëÕßÓâÒ»ÍòÈË£¬´´µ±Ê±È«ÇòͬÀà»áÒé¹æÄ£Ö®¼Í¼
1997Äê9 ......
1¡¢ÀàÐÍÄ£°å Class£º
ÎïÒÔÀà¾Û£º
ÎÒÃÇ¿ÉÒÔÓÃclass Person{ } class Animal{ }À´ÃèÊöÒ»ÀàÈË»òÒ»ÀදÎ
ÄÇôÔÙÏëһϣ¬ÎÒÃÇÊDz»ÊÇ¿ÉÒÔÓÃclass Class{ } À´³éÏóÃèÊöÀàÄØ£¿
´ð°¸Ê±¿ÉÒԵģ¬Õâ¾ÍÊÇjdkÖÐµÄ Class ÀࣨÀàÐ ......
1¡¢½ø³ÌÓëỊ̈߳º
¡¶1¡·Ê²Ã´Êǽø³Ì£ºÊÇÖ¸ÔËÐÐÖеÄÓ¦ÓóÌÐò£¬Ã¿Ò»¸ö½ø³Ì¶¼ÓÐ×Ô¼º¶ÀÁ¢µÄÄÚ´æ¿Õ¼ä£¬
Ò»¸öÓ¦ÓóÌÐò¿ÉÒÔͬʱÆô¶¯¶à¸ö½ø³Ì£¬(¾²Ì¬)±ÈÈ磨IE£¬JVM£©
¡¶2¡·Ê²Ã´ÊÇỊ̈߳ºÊÇÖ¸½ø³ÌÖеÄÒ»¸öÖ´ÐÐÁ÷³Ì£¬ ......
WindowsMobileϵͳÎÞ·¨Ö±½Ó¹ÜÀíJAVA²å¼þ£¬ÐèÒª½èÖúJAVAÐéÄâ»úÀ´¹ÜÀíJAVA²å¼þ£¬WMƽ̨³£¼ûµÄJAVAÐéÄâ»úÓÐJbedºÍJblend¡£ÏÂÃæ¾ÍWMƽ̨¹ÜÀíJAVA²å¼þ×ö¼òÒª½éÉÜ¡£
1¡¢Jbed
Esmertec¹«Ë¾µÄ²úÆ·£¬ÍⲿÃüÁî¹ÜÀí·½Ê½Îª£º
°²×°£º\Windows\jbed.exe -DFile.maxStorageSize=64M -ginstall \" ......
¡¡JSON ¼´ Java
Script Object Natation£¬ËüÊÇÒ»ÖÖÇáÁ¿¼¶µÄÊý¾Ý½»»»
¸ñʽ£¬·Ç³£ÊʺÏÓÚ·þÎñÆ÷
Óë Java
Script µÄ½»»¥¡£±¾ÎĽ«¿ìËÙ½²½â JSON ¸ñʽ£¬²¢Í¨¹ý´úÂëʾÀýÑÝʾÈçºÎ·Ö±ðÔÚ¿Í»§¶ËºÍ·þÎñÆ÷
¶Ë½øÐÐ JSON ¸ñʽÊý¾ÝµÄ´¦Àí¡£
¡¡¡¡Json±ØÐèµÄ°ü
¡¡¡¡commons-httpclient-3.1.jar
¡¡¡¡commons-lang-2.4.jar
¡¡¡¡ ......