Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ʹÓÃC#´´½¨webservice¼°ÈýÖÖµ÷Ó÷½Ê½


΢Èí.NETÕ½ÂÔµÄÒ»¸ö±È½ÏÖØÒªµÄ²¿·Ö¾ÍÊÇwebservice,ÀûÓÃwebserviceÎÒÃÇ¿ÉÒÔ´´½¨ÕæÕýÓÐЧµÄ·Ö²¼Ê½Ó¦ÓóÌÐò¡£
ÏÂÃ棬ÎÒÃǶÔwebservice×öһЩ˵Ã÷¡£
¼ÙÉèAÊÇ¿Í»§¶Ë£¬BÊÇwebservice·þÎñ¶Ë£¬Óû§Í¨¹ýhttpЭÒéÏò·þÎñÆ÷·¢ËÍsoapÇëÇó£¬webservice·µ»Ø¿Í»§¶ËXML¸ñʽµÄÊý¾Ý¡£
ÏÖÔÚÎÒÃÇ¿´Ò»¿´´´½¨Ò»¸öwebserviceµÄ´óÖ¹ý³Ì£º
·þ
Îñ¶ËµÄwebserviceÊDZØÐëÒª½¨µÄ¡£ÖмäµÄsoap,xmlÎÒÃDz»ÓÃÈ¥¹ØÐÄ£¬ÔÚ¿Í»§¶ËÕâ±ß£¬±È½ÏÖØÒªµÄÊÇÈçºÎ´ÓwebserviceÈ¡µÃ¶ÔÏ󣿴ð°¸
ÊÇÓõÄÊÇproxy¶ÔÏ󡣿ͻ§¶ËÓÉ´úÀí¶ÔÏó(proxy)¸ºÔðÓëwebserviceµÄͨÐÅ¡£ËùÒÔÔÚ¿Í»§¶ËʹÓÃwebservice£¬ÍêÈ«ºÍʹÓÃÒ»¸ö±¾µØ
¶ÔÏóÊÇÒ»ÑùµÄ¡£
ÎÒÃÇÏÖÔÚÒÔÒ»¸ö¼òµ¥µÄʵÀýÀ´ËµÃ÷¡£
´ò¿ªvs.net,н¨¹¤³Ì(asp.net  web·þÎñ)£¬ÔÚλÖÃÖмüÈëhttp://localhost/webserver,ÆäÖÐwebserver¾ÍÊǹ¤³ÌµÄÃû×Ö¡£È·¶¨ºó£¬³öÏÖÒ»¸öService1.asmx.cx,Ë«»÷£¬³öÏÖ´úÂë´°¿Ú£¬
using  System;
using  System.Collections;
using  System.ComponentModel;
using  System.Data;
using  System.Diagnostics;
using  System.Web;
using  System.Web.Services;
namespace  webserver
{
///  <summary>
///  Service1  µÄժҪ˵Ã÷¡£
///  </summary>
(1)
public  class  Service1  :  System.Web.Services.WebService
{
public  Service1()
{
//CODEGEN£º¸Ãµ÷ÓÃÊÇ  ASP.NET  Web  ·þÎñÉè¼ÆÆ÷Ëù±ØÐèµÄ
InitializeComponent();
}
#region  Component  Designer  generated  code
//Web  ·þÎñÉè¼ÆÆ÷Ëù±ØÐèµÄ
private  IContainer  components  =  null;
///  <summary>
///  Éè¼ÆÆ÷Ö§³ÖËùÐèµÄ·½·¨  -  ²»ÒªÊ¹ÓôúÂë±à¼­Æ÷ÐÞ¸Ä
///  ´Ë·½·¨µÄÄÚÈÝ¡£
///  </summary>
private  void  InitializeComponent()
{
}
///  <summary>
///  ÇåÀíËùÓÐÕýÔÚʹÓõÄ×ÊÔ´¡£
///  </summary>
prot


Ïà¹ØÎĵµ£º

c#ºÍjavascript½»»¥

ÔÚasp.net開發ÖУ¬經³£會Óõ½áą́ºÍǰ̨µÄ½»»¥£¬¾Í´Ë總結ÁËÒ»點c#ºÍjavascriptÏ໥²Ù×÷µÄ·½·¨
¡¡¡¡1.ÔÚáą́c#´ú碼ÖÐ調ÓÃjacascriptµÄ·½·¨
¡¡¡¡javascript´ú碼£º
¡¡¡¡<script type="text/javascript" language="javascript">
¡¡¡¡function test()
¡ ......

C#ÖвÙ×÷XML Node½Úµãϸ½Ú²Ù×÷

ÎÄÕÂÀ´Ô´£ºIT¹¤³Ì¼¼ÊõÍø http://www.systhinker.com/html/43/n-11643.html
ÓõÄÊÇÒ»Öֺܱ¿µÄ·½·¨£¬µ«¿ÉÒÔ°ïÖú³õѧÕßÁ˽â·ÃÎÊXML½ÚµãµÄ¹ý³Ì¡£
ÒÑÖªÓÐÒ»¸öXMLÎļþ£¨bookstore.xml£©ÈçÏÂ:
<?xml version="1.0" encoding="gb2312"?>
<bookstore>
  <book genre="fantasy" ISBN="2-3631-4">
  ......

ÔõÑùÔÚvisual studio.NET ÈÃC,C++,C#´úÂë×Ô¶¯ÅÅÆë

ÎÊÌâÃèÊö£º
C#³ÌÐò,ÀïÃæcopyÁËÐí¶àÔ­À´µÄ´úÂë,ËùÒԲβÆëµÄ,ºÜÄѶÁ,ÈçºÎ²ÅÄÜÈôúÂë×Ô¶¯ÅÅÆë,¾ÍÏóVS   6.0ÖпÉÒÔʹÓÿì½Ý¼ü,·Ç³£·½±ã.
½â´ð£º
ctrl+a,ÏÈÈ«Ñ¡   
ctrl+k,ctrl+f,×Ô¶¯ÅÅÁÐ
»òÕß
ctrl+a,ÏÈÈ«Ñ¡
alt+F8 ×Ô¶¯ÅÅÁÐ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ