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

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

?? ????? ??

??????

?? ???? ????? ???? ?? ?? ??? ?????? ??? ????, MathService, ?? ??????, subtracting, ?????? ????, ?? ?? ???????? multiplying ?? ??? ??????? exposes ???? ????? ?? ??? ???? ?????

??????????

???????? ?????????, ??????????, ??????? ??????, ???? ?? ????? ?? ???? ??? ?????? ??? ?? ????? ?????? ?? ?????:
  • Microsoft Windows 2000 Professional, Windows 2000 ?????, Windows 2000 ????? ?????, Microsoft Windows Server 2003, ?? Windows NT 4.0 ?????
  • Microsoft ??????? ????? ????? 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. ??? ??? ?????? ????? ????? (ASP) .NET ??? ???? ????????? ?????? ??? ???? ?? ???MathService?? ???? ??????? ??? ????? ?? ?? asp.NET ??? ?? ??? ?????? ?? ?? ????? ?? ????? ?????
  3. ???? ?? ??? ?????? ????? ?? ??? ?????MathService?????? ?? ????
  4. ???? ?? ??? Service1.asmx ?? ???? ?? ??????? ??? ???? ?? ??? ?????MathService.asmx.
  5. ????? ????,??? ????? ?? ????? ???? ?? ??? ???? ????? ??????? ????? ?? ????? ???? ?? ??? ??????? ????????

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

    ???:: ???? ??? ???? ?? ??? ???? ???????? ???? ?? ???????? ??WebMethod??????? ??? ?? ??? ???? ?? ?????? ?????? ?? ??? ?? ????????? ??? ???? ??????? ??? ?? ??? ??????????? ????? ?? ?????? ?? ??? ?????? ??WebService???? ?? ??????? ????????? ??? ????? ???? ???? ??? ??? ??????? ????????? ???? ?? ????????? ????, ????? ???? ?? ????? ?? ???? ???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. ??????? ??????? ???????????? ?? ?????? Explorer ?? ??? ?? ????? ???? ??? ????? ??? ?????
  4. ???? ?? ???????? ???????? ?? ??????? ?????? ?? ??? ?? Module1 ??????? ?? ????? ????????? ??? ????:
    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 ?????? ?? ??????????)

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

DHTML Dude: ????? ??? ???? ?? DHTML (MSDN Voices ?????):
HTTP://msdn2.Microsoft.com/en-us/library/bb263974.aspx
???? ??????? ?? ???, ????? Microsoft ????????? ?? ??????? ????????? ?????:
Microsoft Corporation2524 ?? ??? ???? Microsoft Visual Studio .NET ?? ????? ????
???? ??????? ?? ???, ????? ???????? ?????:
Balena, Francesco.???????????? Microsoft Visual Basic .NET (??? ??????). Microsoft ?????, 2002?

???

???? ID: 301273 - ????? ???????: 04 ?????? 2010 - ??????: 2.0
???? ???? ???? ??:
  • Microsoft Visual Basic 2005
  • Microsoft Visual Basic .NET 2003 Standard Edition
  • Microsoft Visual Basic .NET 2002 Standard Edition
??????: 
kbvs2005applies kbvs2005swept kbhowtomaster kbmt KB301273 KbMthi
???? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??: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