Unit 6 Web Services

learningsnortSecurity

Nov 3, 2013 (3 years and 10 months ago)

76 views

1

Unit 6

Web Services

Creating & Consuming

2

Agenda


What are web services


Associated terms


Creating web services


Consuming web services


Naming conventions


Information Hiding


3

What are Web Services




Web services are methods on the web that
serve a specific purpose.

4

Web services


Suggestions for creating web services


Inputs and sometimes outputs


No GUI, no HTML


Disparate systems

5

Associated terms


C
ommunicate over HTTP


D
escribe themselves using WSDL


C
an be discovered using UDDI


XML is the basis for Web services


SOAP is the protocol that defines how web
services function.

6

Creating web services


Use application root


Add a web service file & set name


ASMX


Note web address


namespace


Modify sample code


Data type (returning variable)


= Data type (output variable in header)?


Run and review

7

Consuming a web service


Identify your needs


Verify what the web service can provide


Add a web reference to point to it


Name the web reference


In the file, import a namespace using the same
name


Instantiate a web service and supply the inputs
the method requires


8

Consuming, for example


1. Find the web service



2. Add a web reference



3. Insert a namespace



4. Create a web service object



5. Use it!


9

Information Hiding … or

What can you tell from a web service?



What it does


Inputs


Outputs



What it is called


Web service name


Web method name