Lm th? no ?: H?n ch? cc giao th?c d?ch v? Web m cho php m?t my ch?

D?ch tiu ? D?ch tiu ?
ID c?a bi: 815150 - Xem s?n ph?m m bi ny p d?ng vo.
Bung t?t c? | Thu g?n t?t c?

? Trang ny

TM T?T

Bi vi?t t?ng b?c ny m t? cch ? gi?i h?n cc cc giao th?c h? tr? m?t d?ch v? Web.

XMLbased Web d?ch v? trao ?i XML ti li?u ? giao ti?p. Trao ?i ny c th? x?y ra trn b?t k? lo?i giao th?c l?p ?ng d?ng. Theo m?c ?nh, ASP.D?ch v? NET Web ti?p xc thng qua b?n cc giao th?c khc nhau: HttpSoap, HttpPost, HttpGet, v ti li?u. Trong nhi?u tr?ng h?p, ch? l m?t t?p h?p con c?a cc giao th?c ny b?n l b?t bu?c. Cho V d?, d?ch v? Web th?ng s? d?ng ch? HttpSoap giao th?c truy?n thng. Trong nh?ng tr?ng h?p ny, n?u b?n lo?i b? cc khng s? d?ng giao th?c, b?n tng b?o m?t c?a ?ng d?ng b?ng cch gi?m cc cu?c t?n cng b? m?t. Bi vi?t ny m t? lm th? no ? v hi?u ha cc giao th?c d?ch v? Web ?c s? d?ng ? giao ti?p v?i m?t ASP.NET ?ng d?ng.

V hi?u ho cc giao th?c d?ch v? Web

? v hi?u ho m?t trang Web D?ch v? giao th?c cho m?t ASP.NET ?ng d?ng, h?y lm theo cc b?c sau:
  1. M? t?p tin Web.config trong tr?nh so?n th?o vn b?n (v d? nh Notepad). Web.config t?p tin n?m trong th m?c g?c c?a b?n d?ch v? Web ?ng d?ng.
  2. Thm cc y?u t? c?u h?nh <webservices>d?i cc <system.web>nguyn t?.</system.web> </webservices>
  3. Trong cc y?u t? <webservices>, thm cc <protocols>c?u h?nh ph?n t?.</protocols> </webservices>
  4. Trong cc y?u t? <protocols>, thm m?t <remove> ph?n t? cho m?i giao th?c m?c ?nh m b?n mu?n v hi?u ho.</remove> </protocols>
  5. Trong m?i c?a cc <remove>y?u t? m b?n ? t?o ? b?c 4, ?t cc<b00> </b00> </remove>Tn thu?c tnh cho tn c?a m?t giao th?c m b?n nn v hi?u ha.
  6. Theo m?c ?nh, HttpPost, HttpSoap, HttpGet, v Ti li?u h?ng d?n giao th?c ?c kch ho?t. V d? sau c?a cc <webservices>c?u h?nh ph?n t? v hi?u ho t?t c? cc giao th?c m?c ?nh ngo?i tr? HttpSoap:<b00> </b00> </webservices>
    <webServices>
        <protocols>
            <remove name="HttpPost"/> 
            <remove name="HttpGet"/> 
            <remove name="Documentation"/> 
        </protocols>
    </webServices>
  7. Lu t?p Web.config. D?ch v? Web s? kh?i ?ng l?i t? ?ng, v s? tr? v? thng bo l?i cho t?t c? cc yu c?u trong tn t?t giao th?c.

THAM KH?O

? bi?t thm chi ti?t, h?y truy c?p trang Web Microsoft sau y:
http://msdn2.Microsoft.com/en-US/Library/aa719558 (VS.71) .aspx
http://msdn2.Microsoft.com/en-US/Library/ackhksh7 (vs.71) .aspx
? bi?t thm chi ti?t, nh?p vo s? bi vi?t sau ? xem cc bi vi?t trong c s? ki?n th?c Microsoft:
815179Lm th? no ?: T?o t?p Web.config cho m?t ASP.NET Application
815178 Lm th? no ?: Ch?nh s?a c?u h?nh c?a m?t ASP.NET Application
818014 Lm th? no ?: An ton c?a cc ?ng d?ng ?c xy d?ng trn cc.NET Framework

Thu?c tnh

ID c?a bi: 815150 - L?n xem xt sau cng: 28 Thang Tam 2011 - Xem xt l?i: 2.0
p d?ng
  • Microsoft ASP.NET 1.0
  • Microsoft ASP.NET 1.1
  • Microsoft Web Services Enhancements for Microsoft .NET 1.1
T? kha:
kbwebforms kbwebservices kbconfig kbhowtomaster kbmt KB815150 KbMtvi
My d?ch
QUAN TRONG: Bi vi?t ny ?c d?ch b?ng ph?n m?m d?ch my c?a Microsoft ch? khng ph?i do con ng?i d?ch. Microsoft cung c?p cc bi vi?t do con ng?i d?ch v c? cc bi vi?t do my d?ch ? b?n c th? truy c?p vo t?t c? cc bi vi?t trong C s? Ki?n th?c c?a chng ti b?ng ngn ng? c?a b?n. Tuy nhin, bi vi?t do my d?ch khng ph?i lc no c?ng hon h?o. Lo?i bi vi?t ny c th? ch?a cc sai st v? t? v?ng, c php ho?c ng? php, gi?ng nh m?t ng?i n?c ngoi c th? m?c sai st khi ni ngn ng? c?a b?n. Microsoft khng ch?u trch nhi?m v? b?t k? s? thi?u chnh xc, sai st ho?c thi?t h?i no do vi?c d?ch sai n?i dung ho?c do ho?t ?ng s? d?ng c?a khch hng gy ra. Microsoft c?ng th?ng xuyn c?p nh?t ph?n m?m d?ch my ny.
Nh?p chu?t vo y ? xem b?n ti?ng Anh c?a bi vi?t ny:815150

Cung cp Phan hi

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com