Javaµ÷ÓÃC#µÄWebServiceʵÀýÈý(ʵ¼ÊÓ¦ÓÃ)
/*
±¾¶Î´úÂëÔÚ¹«Ë¾ÏîÄ¿ÖÐʵ¼ÊÔ¶³Ìµ÷ÓõÚÈý·½¹«Ë¾ÌṩµÄC#¿ª·¢WebServiceµÄʾÀý
*/
/**
* µÇ¼ÓÎÏ·
*
* @param paramPN
* @param paramTerraceID
* @param paramSvrID
*/
private String loginGame(String paramPN, HttpServletRequest req){
String wsURL = WebGameConfig.getString("wsURL");
String paramTerraceID = WebGameConfig.getString("paramTerraceID");
String paramSvrID = WebGameConfig.getString("paramSvrID");
String key = WebGameConfig.getString("blsdKEY");
String paramIP = HttpUtils.getRemoteAddr(req);
log.warn("wsURL=" + wsURL + "|paramTerraceID=" +paramTerraceID + "|paramSvrID=" + paramSvrID + "|key=" + key + "|paramIP=" + paramIP);
// ÍƹãÔ±±àºÅΪ¿Õ
String paramExpandID = null;
try {
Service service = new Service();
Call call = (Call)service.createCall();
call.setTargetEndpointAddress(new java.net.URL(wsURL));
call.setOperationName(new QName("http://tempuri.org/","Passport_LoginByGame"));
call.addParameter(new QName("http://tempuri.org/","paramPN"),XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter(new QName("http://tempuri.org/","paramTerraceID"),XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter(new QName("http://tempuri.org/","paramExpandID"),XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter(new QName("http://tempuri.org/","paramSvrID"),XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter(new QName("http://tempuri.org/","paramSign"),XMLType.XSD_STRING, ParameterMode.IN);
call.addParameter(new QName("http://tempuri.org/","paramIP"),XMLTyp
Ïà¹ØÎĵµ£º
·þÎñ¶ËµÄwebservicesµÄ·¢²¼ÊÇ»ùÓÚjax-ws¹æ·¶·¢²¼µÄ¡£ÏÂÃæÊÇ¿Í»§¶Ë¶¯Ì¬µ÷ÓõĴúÂ룬µ÷ÓõÄweb·þÎñÊÇ¿ÉÅäÖõġ£
1£ºÔÚxmlÎĵµÀïÅäÖÃwebservicesµÄwsdlµØÖ·£¬¶Ë¿ÚÃûºÍ²Ù×÷Ãû
2£ºÌṩһ¸ö·½·¨¶ÁÈ¡xmlÎĵµ£¬·µ»ØÒ»¸öList
List list= ReadAndWriteXML.getWebServiceWsdlList();
......
//µ÷Óô洢¹ý³Ì´ø²Î
CallableStatement ca = conn.prepareCall("{call Login (?,?)}");
ca.setString(1,username);
& ......
¡¶javaÓïÑÔ³ÌÐòÉè¼Æ£¨Ò»£©¡·2009Äê×Ôѧ¿¼ÊÔ´ó¸ÙµÚ6ÕÂ
www.wesiedu.com 2009-5-5 ÔÚÏßÄ£Ä⿼³¡
µÚ6Õ ͼÐνçÃæÉè¼Æ(¶þ)
(Ò»)¿Î³ÌÄÚÈÝ
6.1Ñ¡Ôñ¿òºÍµ¥Ñ¡°´Å¥
6.1.1Ñ¡Ôñ¿ò
6.1.2µ¥Ñ¡¿ò
6.1.3µ¥Ñ¡°´Å¥
6.1.4Ñ¡ÔñÏîĿʼþ´¦Àí
6.2ÁбíºÍ×éºÏ¿ò
6.2.1Áбí
6.2.2×éºÏ¿ò
6.3²Ëµ¥
6.3.1²Ëµ¥Ìõ¡ ......
µÚ8Õ ¶àÏß³Ì
(Ò»)¿Î³ÌÄÚÈÝ
8.1Ï̵߳Ļù±¾¸ÅÄî
8.1.1Ï̵߳ÄÉúÃüÖÜÆÚ
8.1.2Ï̵߳÷¶ÈÓëÓÅÏȼ¶
8.2 ThreadÀàºÍRunnable½Ó13
8.2.1 ThreadÀà
8.2.2 Runnable½Ó¿Ú
8.3Ï̻߳¥³âºÍͬ²½
8.3.1Ï̻߳¥³â
8.3.2Ïß³Ìͬ²½
(¶þ)ѧϰĿµÄÓëÒªÇó
±¾Õ½éÉܶàÏ̵߳ĸÅÄîºÍ±àд¶àÏ̳߳ÌÐòµÄ·½·¨£¬ÊµÏÖÏß³ÌÖ®¼äÏ໥ͨÐźÍͬ²½µÄ¼¼ ......