JAVAÀà±ä³Éwebservice
»·¾³eclipse6.0 +tomcat6.0
1.´´½¨Ò»¸ö¶¯Ì¬web¹¤³Ì£ºDynamic Web Project
2.Ìîд¹¤³ÌÃû³Æºó £¬Ò»Â·next -->finish ÔÚÕâÀïÎÒ´´½¨µÄÃû³ÆΪmywebservice
3.ÔÚsrc´´½¨×Ô¼ºµÄ°ücom.zhangchaoºÍÀà Hello.java£¬ÎÒÃÇÕâÀﻹÊÇ×ö¸ö¼òµ¥µÄhelloworld¡£
ÕâÀïÖ»×ö¶ÔijÈ˽øÐÐÎʺò¡£
4.Ìí¼Óweb service Ñ¡ÖÐÐèÒª·¢²¼µÄ·þÎñÀà ½øÐÐÌí¼Ó new ->other
Ìí¼Ó²½Öè Ìí¼ÓÇ°ÇëÈ·ÈÏtomcat ÊǹرÕ״̬
finish Éú³É Èçͼ Èç¹ûserver-config.wsdd²»ÄÜÉú³É ¾Í·´¸´´´½¨¡£ ²»Éú³ÉËüºóÃæµÄµÚ6²½·ÃÎʵÄurl¾Í»á³öÎÊÌâ¡£
5ÔËÐй¤³Ì
6±¾»ú·ÃÎÊ
´ò¿ªÉú³ÉµÄwsdl/Hello.wsdl ÖеÄ
<wsdlsoap:address location="http://localhost:8080/mywebservice/services/Hello"/>
ͨ¹ýlocaltionÖеÄurl£ºhttp://localhost:8080/mywebservice/services/Hello?wsdl
ͨ¹ýurl ½«ÒÔxmlµÄÐÎʽ½øÐмòµ¥¶ÔÏóµÄ·ÃÎÊ¡£
µ¥»÷sayHello·½·¨
ÌîÈëzhangsan
ÎÒÃǾͿÉÒÔ¿´µ½·þÎñÆ÷µÄ¿ØÖÆ̨ÉÏÒѾ´ò³öÁËhello£¬zhangsan
µ½´ËÎÒÃÇ·þÎñÆ÷ÉϵķþÎñ ÒÔ¼°±¾»úÉϵķþÎñ²âÊÔÒѾÍê³É£¬ÏÂÒ»½Ú½²ÈçºÎ½øÐпͻ§¶ËÔ¶³Ìµ÷Óá£
Ïà¹ØÎĵµ£º
Java Òì³££¨ Exception£©·ÖΪÊÜ¿ØÒì³£ºÍ²»ÊÜ¿ØÒì³£Á½ÖÖ¡£ÆäÖÐÊÜ¿ØÒì³£±ØÐëÇ¿ÖÆÖ´Ðⶻñ»òÕßÉùÃ÷£¬·ñÔò½«³öÏÖ±àÒë´íÎó¡£ ¶ÔÓÚ·ÇÊÜ
¿ØÒì³£java±àÒëÆ÷²»»á¼ì²é´úÂëÒÔÈ·¶¨ÊDz¶»ñ»òÕßÉùÃ÷²»ÊÜ¿ØÒì³£¡£¾¡¹Ü±àÒëÆ÷¶Ô²»ÊÜ¿ØÒ쳣ûÓⶻñ»òÕßÉùÃ÷µÄÇ¿ÖÆÒªÇ󣬵«ÖªµÀ·¢ÉúÕâÖÖÒ쳣ʱӦÌṩºÏÊʵÄÒì³£´¦Àí´úÂë¡£
  ......
Ò»¡¢·´ÉäµÄ¸ÅÄî £º
·´ÉäµÄ¸ÅÄîÊÇÓÉSmithÔÚ1982ÄêÊ×´ÎÌá³öµÄ£¬Ö÷ÒªÊÇÖ¸³ÌÐò¿ÉÒÔ·ÃÎÊ¡¢¼ì²âºÍÐÞ¸ÄËü±¾Éí״̬»òÐÐΪµÄÒ»ÖÖÄÜÁ¦¡£ÕâÒ»¸ÅÄîµÄÌá³öºÜ¿ìÒý·¢Á˼ÆËã»ú¿ÆѧÁìÓò¹ØÓÚÓ¦Ó÷´ÉäÐÔµÄÑо¿¡£ËüÊ×Ïȱ»³ÌÐòÓïÑÔµÄÉè¼ÆÁìÓòËù²ÉÓÃ,²¢ÔÚLispºÍÃæÏò¶ÔÏó·½ÃæÈ¡µÃÁ˳ɼ¨¡£ÆäÖÐLEAD/LEAD++ ¡¢OpenC++ ¡¢MetaXaºÍOpenJavaµÈ¾ÍÊ ......
Ç°Ò»¶ÎÐèÒªÓöÌÐÅè·¢ËͶÌÐÅ£¬Ð´ÁËÒ»¶Î¶ÌÐÅè·¢ËͶÌÐŵĴúÂ룺
import javax.comm.*;
import java.util.*;
import java.io.*;
import org.smslib.*;
public class smsModem
{
private static LinkedList<COutgoingMessage> msgList = new LinkedList<COutgoingMessage>();
&n ......
×÷Õߣº³µ¶« ·¢±íÓÚ£º2002-07-09 15:07 ×îºó¸üÐÂÓÚ£º2007-04-12 11:04
°æȨÉùÃ÷£º¿ÉÒÔÈÎÒâתÔØ£¬×ªÔØʱÇëÎñ±ØÒÔ³¬Á´½ÓÐÎʽ±êÃ÷ÎÄÕÂÔʼ³ö´¦ºÍ×÷ÕßÐÅÏ¢¼°±¾ÉùÃ÷¡£
http://www.chedong.com/tech/hello_unicode.html
²»ÖªµÀÄãÓÐûÓÐÕâÑùµÄ¸ÐÊÜ£ºÎªÊ²Ã´PHPºÜÉÙÓÐÂÒÂëÎÊÌâ¶øÓÃJava×öWEBÓ¦ÓÃÈ´ÕâôÂé·³ÄØ£¿ÎªÊ²Ã´ÔÚGoogl ......