Web serivce
consumers are able to invoke method calls on remote objects by using SOAP
and HTTP
over the Web. WebService
is language independent and Web Services communicate by using standard web protocols and data formats, such as - HTTP - XML - SOAP
SOAP/WSDL
[Syntax: http://1111:22/HelloWorld]
[Response: WDSL]
Parameters | Descriptions |
---|---|
PathParam | Binds the parameter passed to method to a value in path. |
QueryParam | Binds the parameter passed to method to a query parameter in path. |
MatrixParam | Binds the parameter passed to method to a HTTP matrix parameter in path. |
HeaderParam | Binds the parameter passed to method to a HTTP header. |
CookieParam | Binds the parameter passed to method to a Cookie. |
FormParam | Binds the parameter passed to method to a form value. |
DefaultValue | Assigns a default value to a parameter passed to method. |
Context | Context of the resource for example HTTPRequest as a context. |
Now run the application that look like as follows.
Now in the above we see our method that we are created in the webservice.cs file, so click on that method and provide input values and click on the "invoke" link as in.