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

asp.net¹¹½¨Web·þÎñ»ù´¡£¨º¬SOAPÏà¹Ø֪ʶ£©

WSDL£ºÊÇÒ»¸öÓÃÀ´ÃèÊöWeb·þÎñºÍ˵Ã÷ÈçºÎÓëWeb·þÎñͨÐŵÄXMLÓïÑÔ¡£ ÔõÑùÏò±ðÈ˽éÉÜÄãµÄWeb serviceÓÐʲô¹¦ÄÜ£¬ÒÔ¼°Ã¿¸öº¯Êýµ÷ÓÃʱµÄ²ÎÊýµÈµÈ¡£
 
web·þÎñ£º½øÐÐwebÉÏÊý¾Ý½»»»µÄ·½·¨¡£Äܹ»ÒÔ´¿xml·½Ê½Í¨ÐÅ¡£
 
SOAP£º¼òµ¥¶ÔÏó´æȡЭÒé¡£¿É¿´×öxml·½ÑÔ£» ÒÔSOAPÐÅ·âÀ´´«µÝºÍÏìÓ¦Îı¾£¨°üº¬£ºÊײ¿¡¢Ö÷Ì壩HTTP POST
 
VSÖн¨Á¢web·þÎñÏîÄ¿ £¨vs×Ô¶¯Éú³ÉsoapÐŷ⣩
 
Ö÷ÎļþService.cs ÈçÏ£º
using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
{
public Service () {
//Èç¹ûʹÓÃÉè¼ÆµÄ×é¼þ£¬ÇëÈ¡Ïû×¢ÊÍÒÔÏÂÐÐ
//InitializeComponent();
}
[WebMethod]
public string HelloWorld(string name) {
return "Hello World!"+name;
}

}

ÔËÐÐÏîÄ¿·µ»ØxmlÊý¾Ý£º
<?xml version="1.0" encoding="utf-8" ?>
<string xmlns="http://tempuri.org/">Hello World!homsky</string>


Ïà¹ØÎĵµ£º

asp.netÒ³Ãæ¼ä´«ÖµµÄ9ÖÖ·½Ê½

1. Get(¼´Ê¹ÓÃQueryStringÏÔʽ´«µÝ)
     ·½Ê½£ºÔÚurlºóÃæ¸ú²ÎÊý¡£
     Ìص㣺¼òµ¥¡¢·½±ã¡£
     ȱµã£º×Ö·û´®³¤¶È×Ϊ255¸ö×Ö·û£»Êý¾Ýй©ÔÚurlÖС£
     ÊÊÓÃÊý¾Ý£º¼òµ¥¡¢ÉÙÁ¿¡¢¹Ø¼üµÄÊý¾Ý¡£
     ÊÊÓ÷¶Î ......

ASP.NET 2.0ÖÐPageʼþµÄÖ´ÐÐ˳Ðò

Page Ö´ÐÐÖн«°´ÕÕÈçÏÂ˳Ðò¼¤»îʼþ£º
Page.PreInit
Page.Init
Page.InitComplite
Page.PreLoad
Page.Load
Page.LoadComplete
Page.PreRender
Page.PreRenderComplete
Èç¹ûÒ³Ãæ´ÓÁîÒ»¸öÒ³Ãæ¼Ì³Ð£¬ÈçBasePage:System.Web.UI.Page£¬ÔÚBasePageÖÐ×öÁËһЩÀ©Õ¹£¬ÈçȨÏÞ¼ì²é£¬¶øÆäËûÒ³Ãæ´ÓBasePage¼Ì³Ð£¬ÔòBasePageºÍ×î ......

asp.net¡°·þÎñÆ÷Ó¦ÓóÌÐò²»¿ÉÓá± ½â¾ö·½·¨

ÒýÆðÕâ¸öµÄÔ­Òò´ó¸ÅÊÇÏÖ°²×°ÁË.Net Frameworkºó×°µÄIISµ¼ÖÂ.NetûÓÐÔÚIISÀï×¢²á¡£
ÔÚÍøÉÏÕÒÁ˺ܾö¼ÊÇ˵´Ó.netÃüÁîÐй¤¾ßÀïÔËÐÐaspnet_regIIS /i¾Í¿ÉÒÔÁË(»òÕßÔÚÀàËÆÏÂÃæµÄĿ¼£ºC:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i)£¬µ«ÊÇ×Ô¼ºÊÔÁ˺ܶà´Î¶¼²»ÐУ¬ºóÀ´·¢ÏÖ»¹ÊÇÒªÏÈжÔØÔÙ°²×°£¬ÖØд´½¨Îª ......

asp.net·µ»Ø¼òµ¥Êý×é

Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols
'ÈôÒªÔÊÐíʹÓà ASP.NET AJAX ´Ó½Å±¾Öе÷ÓÃ´Ë Web ·þÎñ£¬ÇëÈ¡Ïû¶ÔÏÂÐеÄ×¢ÊÍ¡£
<System.Web.Script.Services.ScriptService()> _
<WebService(Namespace:="http://tempuri.org/")> _
<WebServiceBinding(Confor ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ