You are on page 1of 9

3/10/2014

Share

Web Services
0

More

Next Blog

Create Blog

Sign In

Web Services
Monday, August 1, 2011 Follow ers

Web Services
ref:http://www.w3schools.com/webservices/default.asp 1.What Web service do? Web Services can convert your application into a Web-application. 2.What else it can do? It can publish its function or message to the rest of the world.

Join this site


w ith Google Friend Connect

There are no members yet. Be the first!

Already a member? Sign in

Blog Archive

3.What is basic ws platform? The basic Web Services platform is XML + HTTP. 4.Explain XML here? XML provides a language which can be used between different platforms and programming languages and still express complex messages and functions. 5.Explain Http here? The HTTP protocol is the most used Internet protocol. 6.More about web service? Web Services are published, found, and used through the Web 7.What are Web Services? They are application components,communicates using open protocols,self-contained and self-describing,can be discovered using UDDI,can be used by other applications 8.What is the basis for webservices? XML 9.Explain ws platform elements here? * SOAP (Simple Object Access Protocol) * UDDI (Universal Description, Discovery and Integration) * WSDL (Web Services Description Language) 10.How are web services previuosly? A few years ago Web services were not fast enough to be interesting. 11.What is Interoperability? Ability to work with each other. In the loosely coupled environment of a service-oriented architecture, separate resources don't need to know the details of how they each work, but they need to have enough common ground to reliably exchange messages without error or misunderstanding.

2011 (1) August (1) Web Services

About Me

srinivas View my complete profile

http://ws2000plus.blogspot.in/

1/9

3/10/2014
12.Web Applications for different platforms?

Web Services

When all major platforms could access the Web using Web browsers, different platforms could interact. For these platforms to work together, Web-applications were developed. Web-applications are simple applications that run on the web. These are built around the Web browser standards and can be used by any browser on any platform. 13.Ws impact on web applications? Web Services take Web-applications to the Next Level. Your application can publish its function or message to the rest of the world. 14.WS uses what for coding? Web services use XML to code and to decode data 15.WS uses what to transport data? Web services use XML to code and to decode data, and SOAP to transport it (using open protocols). 16.Can you give an example of how web services are useful in real time scenario? With Web services, your accounting department's Win 2k server's billing system can connect with your IT supplier's UNIX server. 17.How many kinds of uses are there with web services and what are they? Web Services have Two Types of Uses 1.Reusable application-components. 2.Connect existing software. 18.Can you explain the above two uses clearly? 1.Reusable application-components. There are things applications need very often. So why make these over and over again? Web services can offer application-components like: currency conversion, weather reports, or even language translation as services. 2.Connect existing software. Web services can help to solve the interoperability problem by giving different applications a way to link their data. With Web services you can exchange data between different applications and different platforms. 19.What is SOAP? SOAP is an XML-based protocol to let applications exchange information over HTTP. Or more simple: SOAP is a protocol for accessing a Web Service. 20.What is SOAP stands for? SOAP stands for Simple Object Access Protocol 21.What are the uses or features of SOAP? It is a communication protocol,a format for sending messages,designed to communicate via Internet,platform independent,language independent,based on XML,simple and extensible,allows you to get around firewalls,a W3C standard

http://ws2000plus.blogspot.in/

2/9

3/10/2014
22.What is WSDL?

Web Services

WSDL is an XML-based language for locating and describing Web services. 23.What does WSDL stands for? WSDL stands for Web Services Description Language 24.Explain the uses or features of WSDL? It is based on XML,used to describe Web services,used to locate Web services,a W3C standard 25.What is UDDI? UDDI is a directory service where companies can register and search for Web services. 26.What does UDDI stands for? UDDI stands for Universal Description, Discovery and Integration. 27.Explain the uses or features of UDDI? It is a directory for storing information about web services,a directory of web service interfaces described by WSDL,communicates via SOAP,is built into the Microsoft .NET platform 28.Few things about web services? Any application can have a Web Service component. Web Services can be created regardless of programming language. 29.How the web service file is saved? This document is saved as an .asmx file. This is the ASP.NET file extension for XML Web Services. 30.What is the first line in the code explains? <%@ WebService Language="VBScript" Class="TempConvert" %> The first line in the example states that this is a Web Service, written in VBScript, and has the class name "TempConvert" 31.What is the second line in the code explains? Imports System Imports System.Web.Services The next lines import the namespace "System.Web.Services" from the .NET framework: 32.What is the third line in the code explains? Public Class TempConvert :Inherits WebService The next line defines that the "TempConvert" class is a WebService class type. 33.What is the difference between nor application function and web services function? The only difference from a normal application is that this function is defined as a "WebMethod()". Use "WebMethod()" to convert the functions in your application into web services

34.Example of the above?

http://ws2000plus.blogspot.in/

3/9

3/10/2014
Public Function FahrenheitToCelsius (ByVal Fahrenheit As String) As String dim fahr fahr=trim(replace(Fahrenheit,",",".")) if fahr="" or IsNumeric(fahr)=false then return "Error" return ((((fahr) - 32) / 9) * 5) end function Public Function CelsiusToFahrenheit (ByVal Celsius As String) As String dim cel cel=trim(replace(Celsius,",",".")) if cel="" or IsNumeric(cel)=false then return "Error" return ((((cel) * 9) / 5) + 32) end function 35.Do we need to write WSDL and SOAP for ASP.NET?

Web Services

With ASP.NET, you do not have to write your own WSDL and SOAP documents. 36.How the function sent XML response will be in web services? >?xml version="1.0" encoding="utf-8" ?< >string xmlns="http://tempuri.org/"<38>/string< 37.How we can put a web service on our site? Using a form and the HTTP POST method, you can put the web service on your site 38.How the form looks? >form action='tempconvert.asmx/FahrenheitToCelsius' method="post" target="_blank"> >table> >tr> >td>Fahrenheit to Celsius:>/td> >td> >input class="frmInput" type="text" size="30" name="Fahrenheit"> >/td> >/tr> >tr> >td>>/td> >td align="right"> >input type="submit" value="Submit" class="button"> >/td> >/tr> >/table> >/form> >form action='tempconvert.asmx/CelsiusToFahrenheit' method="post" target="_blank"> >table> >tr> >td>Celsius to Fahrenheit:>/td> >td> >input class="frmInput" type="text" size="30" name="Celsius"> >/td> >/tr> >tr> >td>>/td> >td align="right"> >input type="submit" value="Submit" class="button"> >/td> >/tr> >/table> >/form> 39.How to Substitute the "tempconvert.asmx" with the address of your web

http://ws2000plus.blogspot.in/

4/9

3/10/2014
service? http://www.example.com/webservices/tempconvert.asmx 39.Now what is next? The next step is to learn about WSDL and SOAP. 40.Remember once agian about WSDL?

Web Services

WSDL is an XML-based language for describing Web services and how to access them. WSDL describes a web service, along with the message format and protocol details for the web service. 41.Remember once again SOAP? SOAP is a simple XML-based protocol that allows applications to exchange information over HTTP. Or more simply: SOAP is a protocol for accessing a web service. 42.Define WSDL? WSDL (Web Services Description Language) is an XML-based language for describing Web services and how to access them. 43.More about WSDL? WSDL is an XML-based language for describing Web services and how to access them. 44.Things should know before WSDL? * XML * XML Namespaces * XML Schema 45.Explain clearly about WSDL? WSDL stands for Web Services Description Language,written in XML,an XML document,used to describe Web services,used to locate Web services,W3C recommendation It specifies the location of the service and the operations (or methods) the service exposes. 46.When WSDL became W3C Recommendation? WSDL became a W3C Recommendation 26. June 2007. 47.Explain the WSDL Document Structure? A WSDL document describes a web service using these major elements. Element Defines >types> The data types used by the web service >message> The messages used by the web service >portType> The operations performed by the web service >binding> The communication protocols used by the web service 48.The main structure of a WSDL document looks How? The main structure of a WSDL document looks like this: >definitions> >types> definition of types........ >/types>

http://ws2000plus.blogspot.in/

5/9

3/10/2014
>message> definition of a message.... >/message> >portType> definition of a port....... >/portType> >binding> definition of a binding.... >/binding> >/definitions> 49.Explain each of them individually?

Web Services

The element can be compared to a function library (or a module, or a class) in a traditional programming language. Each message can consist of one or more parts. The parts can be compared to the parameters of a function call in a traditional programming language. For maximum platform neutrality, WSDL uses XML Schema syntax to define data types. The element defines the message format and protocol details for each port. 50.Simplified fraction of an WSDL Document? >message name="getTermRequest"> >part name="term" type="xs:string"/> >/message> >message name="getTermResponse"> >part name="value" type="xs:string"/> >/message> >portType name="glossaryTerms"> >operation name="getTerm"> >input message="getTermRequest"/> >output message="getTermResponse"/> >/operation> >/portType> In this example the element defines "glossaryTerms" as the name of a port, and "getTerm" as the name of an operation. The "getTerm" operation has an input message called "getTermRequest" and an output message called "getTermResponse". The elements define the parts of each message and the associated data types. Compared to traditional programming, glossaryTerms is a function library, "getTerm" is a function with "getTermRequest" as the input parameter, and getTermResponse as the return parameter. 51.What is an WSDL Port? A WSDL port describes the interfaces (legal operations) exposed by a web service. 52.Explain more about WSDL Port? The element is the most important WSDL element. It defines a web service, the operations that can be performed, and the messages that are involved. The port defines the connection point to a web service. It can be compared to a function library (or a module, or a class) in a traditional programming language. Each operation can

http://ws2000plus.blogspot.in/

6/9

3/10/2014
be compared to a function in a traditional programming language. 53.Explain the Operation Types of WSDL?

Web Services

The request-response type is the most common operation type, but WSDL defines four types: Type Definition One-way The operation can receive a message but will not return a response Request-response The operation can receive a request and will return a response Solicit-response The operation can send a request and will wait for a response Notification The operation can send a message but will not wait for a response 54.Explain the one-way operation example? >message name="newTermValues"> >part name="term" type="xs:string"/> >part name="value" type="xs:string"/> >/message> >portType name="glossaryTerms"> >operation name="setTerm"> >input name="newTerm" message="newTermValues"/> >/operation> >/portType > In the example above, the port "glossaryTerms" defines a one-way operation called "setTerm". The "setTerm" operation allows input of new glossary terms messages using a "newTermValues" message with the input parameters "term" and "value". However, no output is defined for the operation. 55.Explain the request-response operation example? >message name="getTermRequest"> >part name="term" type="xs:string"/> >/message> >message name="getTermResponse"> >part name="value" type="xs:string"/> >/message> >portType name="glossaryTerms"> >operation name="getTerm"> >input message="getTermRequest"/> >output message="getTermResponse"/> >/operation> >/portType> In the example above, the port "glossaryTerms" defines a request-response operation called "getTerm". The "getTerm" operation requires an input message called "getTermRequest" with a parameter called "term", and will return an output message called "getTermResponse" with a parameter called "value". 55.Explain the Binding to SOAP? A request-response operation example: >message name="getTermRequest"> >part name="term" type="xs:string"/> >/message> >message name="getTermResponse"> >part name="value" type="xs:string"/> >/message> >portType name="glossaryTerms"> >operation name="getTerm">

http://ws2000plus.blogspot.in/

7/9

3/10/2014
>input message="getTermRequest"/> >output message="getTermResponse"/> >/operation> >/portType> >binding type="glossaryTerms" name="b1"> >soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> >operation> >soap:operation soapAction="http://example.com/getTerm"/> >input> >output> >/operation> >/binding> The binding element has two attributes - name and type.

Web Services

The name attribute (you can use any name you want) defines the name of the binding, and the type attribute points to the port for the binding, in this case the "glossaryTerms" port. The soap:binding element has two attributes - style and transport. The style attribute can be "rpc" or "document". In this case we use document. The transport attribute defines the SOAP protocol to use. In this case we use HTTP. The operation element defines each operation that the port exposes. For each operation the corresponding SOAP action has to be defined. You must also specify how the input and output are encoded. In this case we use "literal". 56.Define UDDI? Universal Description, Discovery and Integration (UDDI) is a directory service where businesses can register and search for Web services. 57.Explain UDDI? UDDI is a platform-independent framework for describing services, discovering businesses, and integrating business services by using the Internet. 58.More about UDDI? UDDI stands for Universal Description, Discovery and Integration,is a directory for storing information about web services,is a directory of web service interfaces described by WSDL,communicates via SOAP,is built into the Microsoft .NET platform 59.What is UDDI Based On? UDDI uses World Wide Web Consortium (W3C) and Internet Engineering Task Force (IETF) Internet standards such as XML, HTTP, and DNS protocols. UDDI uses WSDL to describe interfaces to web services Additionally, cross platform programming features are addressed by adopting SOAP, known as XML Protocol messaging specifications found at the W3C Web site.

60.UDDI Benefits? Any industry or businesses of all sizes can benefit from UDDI. Before UDDI, there was no Internet standard for businesses to reach their customers and partners with information about their products and services. Nor was there a method of how to integrate into each other's systems and processes. Problems the UDDI specification can help to solve: * Making it possible to discover the right business from the millions currently online

http://ws2000plus.blogspot.in/

8/9

3/10/2014

Web Services
* Defining how to enable commerce once the preferred business is discovered * Reaching new customers and increasing access to current customers * Expanding offerings and extending market reach * Solving customer-driven need to remove barriers to allow for rapid participation in the global Internet economy * Describing services and business processes programmatically in a single, open, and secure environment 61.How can UDDI be Used? If the industry published an UDDI standard for flight rate checking and reservation, airlines could register their services into an UDDI directory. Travel agencies could then search the UDDI directory to find the airline's reservation interface. When the interface is found, the travel agency can communicate with the service immediately because it uses a welldefined reservation interface. 62.Who is Supporting UDDI? UDDI is a cross-industry effort driven by all major platform and software providers like Dell, Fujitsu, HP, Hitachi, IBM, Intel, Microsoft, Oracle, SAP, and Sun, as well as a large community of marketplace operators, and e-business leaders. Over 220 companies are members of the UDDI community.
Posted by srinivas at 11:29 AM No comments:

Recommend this on Google

Home Subscribe to: Posts (Atom)

Simple template. Powered by Blogger.

http://ws2000plus.blogspot.in/

9/9

You might also like