????? ????? ???? ??? ????? ???????? Visual Basic .NET ?? Visual Basic 2005

?????? ????????? ?????? ?????????
???? ???????: 301273 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

??????

???? ??? ??????? ????? ????? ???? ??? ????? ? ???? MathService ??? ?????? ????? ??? ???? ?? ??? ?????.

???????

??????? ??????? ??? ??????? ?????? ??? ? ?????? ? ?????? ???????? ?????? ? ???????? ? ????? ? ??? ??????? ????????:
  • ????? Microsoft Windows 2000 Professional ?? Windows 2000 Server ?? Windows 2000 Server ?? Microsoft Windows Server 2003 ?? Windows NT 4.0 Server
  • Microsoft Internet Information Server 4.0 ?? ?????? ????? ??????? 5.0 ?? ????
  • Microsoft Visual Studio .NET ?? Microsoft Visual Studio 2005
????? ??? ??????? ??? ??????? ??? ???????? ???????:
  • ????? ??????? ???? ??????? ????????? Visual Studio .NET ?? Visual Studio 2005

????? .asmx ????? ???? ???

  1. ??? ????? Visual Studio .NET ?? Visual Studio 2005.
  2. ????? ????? ???? ???? "??? .NET ????? ?????? ??????" (ASP). ??? ???? ??? MathService ????? ?????? ??? ???? ??? ????? ?????? ASP.NET ??? ??? ?????.
  3. ????? ??? ??? ???? ??? MathService ???????.
  4. ????? ??? ???? ??? ????????? ???? ??? ?????? ?? Service1.asmx MathService.asmx.
  5. ???? ??? ???? ??? ??????? ??? ????? ??? ????????? ???????? ?? ???? ?????? ??????? ??? ????? ??? ????????? ????????.

    ????? ??? ????? ?? Service1 ?????? ?????? ??? MathService ??? ???????.
  6. ???? ?????? ???? ???? ????? ?????? ?????? ??. ??? ?? ??? ??? ????? ??? ?? ????? ??? ???? ????? ?? ?????? ?????? WebMethod ?????. ???? ??? ????? ??? ?? ???? ????? ??????? ?? ??????.

    ??????: ??? ?? ????? ??? ?? ????? ????? WebMethod. ?? ?????? ????? ?????? ??????? ??? ???? ?????? ???????? ???? ??? ?????? ?? ????? ??? ??? ???? ??? ??????? ????? ?? ??????? ?????. ???? ??????? ????? ???? ??? ??? ???? ??? ???? ?????? WebMethod ??? ?????? ?? ??? ??? ????? ???.

    ??? ??????? ?????? ??? ??? MathServices ???? ??? ????????:
    <WebMethod()> Public Function Add(a As Integer, b As Integer) As Integer
       Return(a + b)
    End Function
    
    <WebMethod()> Public Function Subtract(A As System.Single, B As System.Single) As System.Single
           Return A - B
    End Function
    
    <WebMethod()> Public Function Multiply(A As System.Single, B As System.Single) As System.Single
           Return A * B
    End Function
    
    <WebMethod()> Public Function Divide(A As System.Single, B As System.Single) As System.Single
    If B = 0
    Return -1
    End If
    Return Convert.ToSingle(A / B)
    End Function
    					
  7. ???? ??? ????? ??????? ???? ?????? ???? ???.
  8. ?????? ?????? ??? ???? ???? ??? MathService.asmx ??????? ???? ???. ??? ??? ?????? ????????? ?????? ???????? ?????? ?? URL http://localhost/MathService/MathService.asmx.

    ????? ??? ??????? ASP.NET "???? ??????? ???? ???" ???? ??? ???? ???. ??? ?????? ????? ?? ?????? ?????? ???? ??? ??????.

?????? ???? ???

  1. ??? ????? Visual Studio .NET ?? Visual Studio 2005.
  2. ????? ????? "????? ???? ??????" ?????.
  3. ????? ???? ????? ??? MathService ??? ????? ???? ?????? ???????.

    ??? ?????? ?????? ??? ???? ??? ???? ????????? ??????. ??? ??? ?????? ???????? ????? ????? ?????? ???????? ??? ?????. ?? ??????? ??????? ???? ?? ?? ?????? ?? ????? ??? ???? ???? ????? (URI) ???? ??? (????? SOAP ?????).
    1. ?? ??????? ??????? ???? ??? ????? ???? ???.
    2. ?? ???? ?????? ????? ?????? ??? ???? URL ????? ??? ?? ???? ???? ????? ????? ENTER. ??? ??? ?????? ????????? ?????? ???????? ???? ??? ?? URL http://localhost/MathService/MathService.asmx.
    3. ???? ??? ????? ????.
    4. ?? ?????? ??? ??????? ??? ?? "?????? ??????" ????? ????? ????? ???? ?? ?????????.
  4. ????? ???? ????? ?????? ???? ?? ??????. ?? ??? ???????? ???????? ?? ??????? ??????? ?????? ??????? ?????? ??????? 1:
    Dim myMathService As localhost.MathService = New localhost.MathService()
    					
  5. ??????? ????? ??? ?????? ?????? ???? ??? ?????? ?? ?????? ???????:
    Console.Write("2 + 4 = {0}", myMathService.Add(2,4))
    					
  6. ???? ?? ??? ???????.

?????

????? ????? ?? ????? ????? (Visual Studio .NET ???????)

????? ??? ASP.NET ? ????? ???? ??? ASP.NET (???? Microsoft .NET Framework ??????)

UDDI XML ????:: "???" ?????? (???? ??????? MSDN):
http://msdn2.microsoft.com/en-us/library/ms950813.aspx
??? ???? ??? ??? ????? (Wsdl.exe) (Microsoft .NET Framework ?????)

Dude DHTML: ?????? ??? ????? ??? ?? DHTML (MSDN ?????? ???????):
http://msdn2.microsoft.com/en-us/library/bb263974.aspx
????? ?? ?????????? ???? ?????? ????????? ??????? & ??????? Microsoft ???????:
???? Microsoft 2524 Developing Web Services using Microsoft Visual Studio .NET
????? ?? ?????????? ???? ?????? ??????:
Balena Francesco. Programming Microsoft Visual Basic .NET (Core Reference) . Microsoft Press 2002.

???????

???? ???????: 301273 - ????? ??? ??????: 10/???? ?????/1428 - ??????: 9.4
????? ???
  • Microsoft Visual Basic 2005
  • Microsoft Visual Basic .NET 2003 Standard Edition
  • Microsoft Visual Basic .NET 2002 Standard Edition
????? ??????: 
kbmt kbvs2005applies kbvs2005swept kbhowtomaster KB301273 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????301273

????? ???????

 

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