WebServiceWebserviceInternetWebWebWebweb.netCLRCommonLanguageRuntimeCLRWebVBInternetHTTP,XML,SOAP,SDLASP.NET.asmxWebServices.asmx.aspx.aspxASP.NET.asmxHelloWorld!--webservice\sisam.asmx--%@WebServiceLanguage=VBClass=HelloWorld%ImportsSystem.Web.ServicesPublicClassHelloWorld:InheritsWebServicePublicFunctionWebMethod()SayHelloWorld()AsStringReturn(HelloWorld)EndFunctionEndClass1WebServiceWebService2System.Web.Services3serviceHelloWorldWebServicepublic4serviceC#[WebMethod]VBservicepublic[WebMethod]SOAPservice.asmxASP.NETASP.NETWebWebserver1test1HelloWorld.asmx2WebFooBar3InternetExplorer5://Foo/Bar/HelloWorld.asmx?SDLServiceDescriptionLanguageSDLXMLSDLserviceWebServicesMicrosoft.NETWebServicesWebServicesSOAPSimpleObjectAccessProtocolHTTPASP.NETWebServicesASP.NETWebServicesSDKWebServiceUtil.exeWebServicesSDLServiceHelloWorld.csWebServiceUtil/c:proxy/pa:=newHelloWorld();StringsReturn=myHelloWorld.SayHelloWorld();VBDimmyHelloWorldAsNewHelloWorld()DimsReturnAsString=myHelloWorld.SayHelloWorld()JScriptvarmyHelloWorld:HelloWorld=newHelloWorld();varsReturn:String=myHelloWorld.SayHelloWorld();WebServicesWebServicesWebServices/WebServicesXMLSOAPWebServicesStringInt32ByteBooleanInt16Int64SingleDoubleDecimalDateTime(XMLtimeInstant)DateTime(XMLdate)DateTime(XMLtime)XmlQualifiedName(XMLQName).publicenumcolor{red=1,blue=2}string[]int[]DataSetADO.NETDataSetDataSetsDataSetXmlNodeXmlNodeXMLXMLXmlNodeXmlNodesSOAPWebServicesXMLXmlNodeXmlNodeSOAPHTTPGET/POSTWebServicesSOAP/HTTPGET/POSTWebServices()Int32StringInt16Int64BooleanSingleDoubleDecimalDateTimeTimeSpanUInt16UInt32UInt64Currencystringpublicenumcolor{red=1,blue=2}string[]int[]WebServiceUtil.exeSOAP.asmxWebServiceWebServiceClass%@WebServiceLanguage=C#Class=DataTypes%webservice\datatype.asmx%@WebServiceLanguage=VBClass=DataTypes%ImportsSystemImportsSystem.Web.ServicesPublicEnumModeEOn=1EOff=2EndEnumPublicClassOrderPublicOrderIDAsIntegerPublicPriceAsDoubleEndClassPublicClassDataTypesSayHelloservicePublicFunctionWebMethod()SayHello()AsStringReturnHelloWorld!EndFunctionSayHelloNamePublicFunctionWebMethod()SayHelloName(NameAsString)AsStringReturnHello&NameEndFunctionGetIntArrayPublicFunctionWebMethod()GetIntArray()AsInteger()DimIAsIntegerDimA(5)AsIntegerForI=0to4A(I)=I*10NextReturnAEndFunctionGetModePublicFunctionWebMethod()GetMode()AsModeReturnMode.EOffEndFunctionGetOrderPublicFunctionWebMethod()GetOrder()AsOrderDimMyOrderAsNewOrderMyOrder.Price=34.5MyOrder.OrderID=323232ReturnMyOrderEndFunctionGetOrdersPublicFunctionWebMethod()GetOrders()AsOrder()DimMyOrder(2)AsOrderMyOrder(0)=NewOrder()MyOrder(0).Price=34.5MyOrder(0).OrderID=323232MyOrder(1)=NewOrder()MyOrder(1).Price=99.4MyOrder(1).OrderID=645645ReturnMyOrderEndFunctionEndClassinvokeWebServiceUtilWebServiceclint.aspx%@ImportNamespace=DataTypesService%htmlstylediv{font:8ptverdana;background-color:cccccc;border-color:black;border-width:1;border-style:solid;padding:10,10,10,10;}/stylescriptlanguage=VBrunat=serverPublicSubPage_Load(SenderAsObject,EAsEventArgs)DimDAsDataTypes=NewDataTypes()Message1.InnerHtml=D.SayHello()Message1.InnerHtml=Message1.InnerHtml&D.SayHelloName(Bob)Message3.InnerHtml=Message3.InnerHtml&D.GetMode()DimMyIntArrayAsInteger()=D.GetIntArray()DimMyStringAsString=ContentsoftheArray:BRForI=0ToMyIntArray.Length-1MyString=MyString&MyIntArray(I)&BRNextMessage2.InnerHtml=Message2.InnerHtml&MyStringDimMyOrderAsOrder=D.GetOrder()Message4.InnerHtml=Message4.InnerHtml&BROrderID:&MyOrder.OrderIDMessage4.InnerHtml=Message4.InnerHtml&BRPrice:&MyOrder.PriceDimMyOrdersAsOrder()=D.GetOrders()Message5.InnerHtml=Message5.InnerHtml&BROrderID:&MyOrders(0).OrderIDMessage5.InnerHtml=Message5.InnerHtml&BRPrice:&MyOrders(0).PriceEndSub/scriptbodystyle=font:10ptverdanaH4UsingDataTypeswithWebServices/H4h5MethodsthatreturnaPrimitive(String):/h5divid=Message1runat=server/h5MethodsthatreturnanArrayofPrimitives(Integers):/h5divid=Message2runat=server/h5MethodthatreturnsanEnum:/h5divid=Message3runat=server/h5MethodthatreturnsaClass/Struct:/h5divid=Message4runat=server/h5MethodthatreturnsanarrayofClasses/Structs:/h5divid=Message5runat=server//body/html%@ImportNamespace=DataTypesService%DataTypesServiceDataTypesService1Datatype.vbImportsSystem.Xml.SerializationImportsSystem.Web.Services.ProtocolsImportsSystem.Web.ServicesNamespaceDataTypesServicePublicClassDataTypeInheritsSystem.Web.Services.Protocols.SoapClientProtocolPublicSubNew()MyBase.NewMe.Url=()SayHello()AsStringDimresults()AsObject=Me.Invoke(SayHello,NewObject(0){})ReturnCType(results(0),String)EndFunctionPublicFunctionBe