Sei sulla pagina 1di 6

Deploying the Web Service on the Client Machine

1. Use WSDL.EXE utility to create the Proxy Class source file in any language you have chosen and here I
use C# and command as follos!
C!"#sdl $language!C# $out!%y&ro'yClass.cs htt(!$$localhost$)S&.*E+$%yWe,Service.asm'
MyProxyClass.cs is generated
-. +hen e need to create the .NET Assembly (optional for used ,y clients!
C!"# csc $t!li,rary %y&ro'yClass.cs
.. +he a,ove command ill com(ile the source and create MyProxyClass.dll li,rary file.
!e"erences#
htt(!$$.dotnetheaven.com$U(loadfile$ra/adurai($Sim(lestaytoCreate*De(loyWe,Services0-1--001-
.--..&%$Sim(lestaytoCreate*De(loyWe,Services.as('
htt(!$$.code(ro/ect.com$23$e,services$as(e,svr.as('

http://www.15seconds.com/Issue/010430.htm
$%estions#
14hat do you mean ,y a We, service5 hat is the advantage of using a We, service5
-4hat is an WSDL5S(ecifications 56o are they generated5 6o do you generate (ro'ies from a WSDL5
.4hat is an UDDI5 Who ta7es care of registering services 8modifying and deleting them5
&s overloa'ing possible in (eb services)
9es8 We can overload e,methods in a e,service.
+here is the %essage*ame (ro(erty of a WebMetho' attri,ute: +he %essage*ame (ro(erty ena,les the X%L We,
Service to uni;uely identify overloaded methods using an alias. +he default value of this (ro(erty is the method
name8 ,ut you can change it to distinguish this overloaded method
im(lementation from others. When s(ecifying the method name8 the resulting S<)& messages ill reflect this
name instead of an actual method name.

Which attrib%te is %se' in or'er that the metho' can be %se' as WebService )
We,%ethod attri,ute has to ,e s(ecified in order that the method and (ro(erty can ,e treated as We,Service.
Can t(o 'i""erent programming lang%ages be mixe' in a single ASM* "ile)
*<.
What is S+AP)
S<)& =Sim(le <,/ect )ccess &rotocol4 is the union of X%L and 6++&. S<)& is W.C su,mitted note that uses X%L
and 6++& to encode > transmit a((lication data.

What,s a proxy o" the server ob-ect in .NET !emoting)
It?s a fa7e co(y of the server o,/ect that resides on the client side and ,ehaves as if it as the server. It handles
the communication ,eteen real server o,/ect and the client o,/ect. +his (rocess is also 7non as marshaling.
What is .DD&)
UDDI is a (latform@inde(endent frameor7 for descri,ing services8 discovering ,usinesses8 and integrating
,usiness services ,y using the Internet.
1. UDDI stands for Universal Descri(tion8 Discovery and Integration
-. UDDI is a directory for storing in"ormation abo%t (eb services
.. UDDI is a directory of e, service interfaces descri,ed ,y WSDL
A. UDDI communicates via S<)&
B. UDDI is ,uilt into the %icrosoft .*E+ (latform

What are the consi'eration in 'eci'ing to %se .NET !emoting or ASP.NET Web Services)
!emoting is a more efficient comm%nication exchange hen you can control both en's of the a((lication
involved in the communication (rocess. We, Services (rovide an o(en@(rotocol@,ased e'change of informaion.
Web Services are ,est hen you nee' to comm%nicate (ith an external organi/ation or another
(non0.NET technology.
Seriali/ation#
SerialiCation in .*E+ allos the (rogrammer to ta7e an instance of an ob-ect and convert it into a "ormat that is
easily transmittable over the net(or18 or even store' in a 'atabase or "ile system.
2ig%re A
Serialization Formats
+here are three "ormats (rovided ,y the %icrosoft .*E+ frameor7 to hich o,/ects can ,e serialiCed. +he
formats are binary3 S+AP3 an' *M4.
+he *M4 "ormat is (roduced ,y using the System.*ml.Seriali/ation.*mlSeriali/er class. +he S<)& and ,inary
formats are (roduced ,y using classes under the System.!%ntime.Seriali/ation.2ormatters namespace.
Comparison# Which techni5%e to %se)
+he XmlSerializer can ,e used hen you need the data in the o,/ect to ,e stored in an X%L Dormat. 6oever8 this
serialiCe has the limitation that it can serialiCe only the (u,lic fields of an o,/ect.
+he SoapFormatter is ideal in scenarios here you need intero(era,ility. +his is ideal in a((lications s(anning
heterogeneous environments.
+he BinaryFormatter generates a very com(act stream hen an o,/ect is serialiCed as com(ared to the other to
techni;ues and hence is useful hen data needs to travel electronically across the ire. +his is a((ro(riate hen
the a((lications do not involve heterogeneous environments.
AJAX:
The XMLHttpRequest Object
New Features in ASP.NET 3.5
http://www.asp.net/downloads/vs2008/
ASP.NET AJAX
Wth ASP.NET AJAX! de"e#ope$s c%n &uc'#( c$e%te p%)es wth sophstc%ted! $espons"e use$ nte$*%ces %nd mo$e
e**cent c#ent+se$"e$ communc%ton ,( smp#( %ddn) % *ew se$"e$ cont$o#s to the$ p%)es. P$e"ous#( %n e-tenson
to the ASP.NET $untme! ASP.NET AJAX is now built into the platform and makes the ompliated t%s' o*
,u#dn) c$oss+p#%t*o$m! st%nd%$ds ,%sed AJAX %pp#c%tons e%s(.
New .st/ew %nd 0%t%P%)e$ 1ont$o#s
The new .st/ew cont$o# )"es (ou unpreedented fle!ibilit" n how (ou displa" "our data! ,( %##own) (ou to
ha#e omplete ontrol o#er the $T%& m%$'up )ene$%ted. .st/ew2s temp#%te %pp$o%ch to $ep$esentn) d%t% s
des)ned to e%s#( work with 'SS st"les! whch comes n h%nd( wth the new /su%# Studo 3004 des)ne$ "ew. In
%ddton! (ou c%n use the (ataPa)er ontrol to h%nd#e %## the wo$' o* %##own) (ou$ use$s to p%)e th$ou)h #%$)e
num,e$s o* $eco$ds.
.IN5 %nd othe$ .NET 6$%mewo$' 3.5 Imp$o"ements
Wth the %ddton o* &an)ua)e *nte)rated +uer" ,&*N+- n .NET 6$%mewo$' 3.5! the p$ocess o* ,u#dn) S5.
&ue$es usn) e$$o$+p$one st$n) m%npu#%ton s % thn) o* the p%st. .IN5 m%'es (ou$ $e#%ton%# d%t% &ue$es % *$st+
c#%ss #%n)u%)e const$uct n 17 %nd /su%# 8%sc! comp#ete wth comp#e$ %nd Inte##sense suppo$t. 6o$ We,
%pp#c%tons! the ASP.NET &in.(ataSoure ontrol %##ows (ou to e%s#( use &*N+ to filter/ order and )roup
data th%t c%n then ,e bound to %n( o* the d%t% "su%#9%ton cont$o#s #'e the &ist0iew and 1rid0iew ontrols. In
%ddton! %## the othe$ mp$o"ements to .NET 6$%mewo$' 3.5! nc#udn) the new :%shSet co##ecton! 0%teTme o**set
suppo$t! d%)nostcs! )%$,%)e co##ecton! ,ette$ th$e%d #oc' suppo$t! %nd mo$e! %$e %## %"%#%,#e to (ou n (ou$
ASP.NET %pp#c%tons.
W16 Suppo$t *o$ ;SS! JS<N! P<X %nd P%$t%# T$ust
Wth .NET 6$%mewo$' 3.5! Wndows 1ommunc%ton 6ound%ton =W16> now suppo$ts ,u#dn) We, se$"ces th%t
c%n ,e e-posed usn) %n( num,e$ o* the Inte$net st%nd%$d p$otoco#s! such %s S<AP! ;SS! JS<N! P<X %nd mo$e.
Whethe$ (ou %$e ,u#dn) %n AJAX %pp#c%ton th%t uses JS<N! p$o"dn) s(ndc%ton o* (ou$ d%t% "% ;SS! o$
,u#dn) % st%nd%$d S<AP We, se$"ce! W16 m%'es t e%s( to c$e%te (ou$ endponts! %nd now! wth .NET
6$%mewo$' 3.5! suppo$ts ,u#dn) We, se$"ces n p%$t%#+t$ust stu%tons #'e % t(pc%# sh%$ed+hostn) en"$onment.
New 2eb Features in 0isual Studio 3445
New We, 0es)n Inte$*%ce
/su%# Studo 3004 h%s nco$po$%ted % new We, des)ne$ th%t uses the des)n en)ne *$om E-p$esson We,. ?o"n)
,etween desi)n and soure #iew s faster th%n e"e$ %nd the new split #iew apabilit" me%ns (ou c%n edit the
$T%& soure and simultaneousl" see the results on the pa)e. Suppo$t *o$ st(#e sheets n sep%$%te *#es h%s ,een
%dded %s we## %s % 1SS p$ope$tes p%ne whch c#%$*es the sometmes+comp#e- he$%$ch( o* c%sc%dn) st(#es! so th%t
t s e%s( to unde$st%nd wh( %n e#ement #oo's the w%( t does. In %ddton /su%# Studo 3004 h%s *u## W@SIW@A
suppo$t *o$ ,u#dn) %nd usn) ASP.NET Nested ?%ste$ P%)es whch )$e%t#( mp$o"es the %,#t( to ,u#d % We, ste
wth % consstent #oo' %nd *ee#.
J%"%Sc$pt 0e,u))n) %nd Inte##sense
In /su%# Studo 3004! c#ent+sde Ja#aSript h%s now ,ecome % *$st+c#%ss ct9en n $e)%$ds to ts debu))in) %nd
*ntellisense suppo$t. Not on#( does the Inte##sense )"e st%nd%$d J%"%Sc$pt 'e(wo$d suppo$t! ,ut t w##
automatiall" n*e$ #ariable t"pes and pro#ide method/ propert" and e#ent support from an" number of
inluded sript files. Sm#%$#(! the J%"%Sc$pt de,u))n) suppo$t now %##ows *o$ the deep W%tch %nd .oc%#s
suppo$t n J%"%Sc$pt th%t (ou %$e %ccustomed to h%"n) n othe$ #%n)u%)es n /su%# Studo. And despte the
d(n%mc n%tu$e o* % #ot o* J%"%Sc$pt! (ou w## %#w%(s ,e %,#e to "su%#9e %nd step nto the J%"%Sc$pt code! no
m%tte$ whe$e t s )ene$%ted *$om. Ths s espec%##( con"enent when ,u#dn) ASP.NET AJAX %pp#c%tons.
?u#t+t%$)etn) Suppo$t
In p$e"ous "e$sons o* /su%# Studo! (ou cou#d on#( ,u#d p$oBects th%t t%$)eted % sn)#e "e$son o* the .NET
6$%mewo$'. Wth /su%# Studo 3004! we h%"e nt$oduced the concept o* ?u#t+t%$)etn). Th$ou)h % smp#e d$op+
down! (ou c%n decde * (ou w%nt % p$oBect to t%$)et .NET Framework 3.4/ 3.4 or 3.5. The builds/ the *ntellisense/
the toolbo!/ et. will all ad6ust to the feature set of the speifi #ersion of the .NET Framework whih "ou
hoose. Ths %##ows (ou to t%'e %d"%nt%)e o* the new *e%tu$es n /su%# Studo 3004! #'e the We, des)n nte$*%ce!
%nd the mp$o"ed J%"%Sc$pt suppo$t! %nd st## ,u#d (ou$ p$oBects *o$ the$ cu$$ent $untme "e$son.
Wh%t %$e Ad%pte$s n A0<.NETC
S(stem.0%t%.S&#1#ent
0%t% %d%pte$s %$e %n nte)$%# p%$t o* A0<.NET m%n%)ed p$o"de$s! whch %$e the set o* o,Bects used to
communc%te ,etween % d%t% sou$ce %nd % d%t%set. Ad%pte$s %$e used to e-ch%n)e d%t% ,etween % d%t% sou$ce %nd %
d%t%set.
/su%# Studo m%'es these d%t% %d%pte$s %"%#%,#e *o$ use wth d%t%,%ses:
The <#e0,0%t%Ad%pte$ o,Bect s sut%,#e *o$ use wth %n( d%t% sou$ce e-posed ,( %n <.E 08 p$o"de$.
The S&#0%t%Ad%pte$ o,Bect s spec*c to S5. Se$"e$. 8ec%use t does not h%"e to )o th$ou)h %n <.E 08
#%(e$! t s *%ste$ th%n the <#e0,0%t%Ad%pte$. :owe"e$! t c%n on#( ,e used wth S5. Se$"e$ D.0 o$ #%te$.
The <d,c0%t%Ad%pte$ o,Bect s optm9ed *o$ %ccessn) <081 d%t% sou$ces.
The <$%c#e0%t%Ad%pte$ o,Bect s optm9ed *o$ %ccessn) <$%c#e d%t%,%ses.
0%t% Ad%pte$s! 0%t% 1onnectons! 0%t% 1omm%nds! %nd 0%t% ;e%de$s %$e the components th%t m%'e up % .NET
6$%mewo$' d%t% p$o"de$.
Esn) %n %d%pte$! (ou c%n $e%d! %dd! upd%te! %nd de#ete $eco$ds n % d%t% sou$ce. To %##ow (ou to spec*( how e%ch o*
these ope$%tons shou#d occu$! %n %d%pte$ suppo$ts the *o##own) *ou$ p$ope$tes:
Se#ect1omm%nd F $e*e$ence to % comm%nd =S5. st%tement o$ sto$ed p$ocedu$e n%me> th%t $et$e"es $ows
*$om the d%t% sto$e.
Inse$t1omm%nd F $e*e$ence to % comm%nd *o$ nse$tn) $ows nto the d%t% sto$e.
Epd%te1omm%nd F $e*e$ence to % comm%nd *o$ mod*(n) $ows n the d%t% sto$e.
0e#ete1omm%nd F $e*e$ence to % comm%nd *o$ de#etn) $ows *$om the d%t% sto$e.
The p$ope$tes %$e themse#"es o,Bects G the( %$e nst%nces o* the S&#1omm%nd! <#e0,1omm%nd! <d,c1omm%nd!
o$ <$%c#e1omm%nd c#%ss. The o,Bects suppo$t % 'ommandTe!t p$ope$t( cont%nn) % $e*e$ence to %n S5.
st%tement o$ sto$ed p$ocedu$e.

Potrebbero piacerti anche