Academic Tutorials



English | French | Portugese | German | Italian
Google

Home Source Codes E-Books Downloads Contact Us About Us

XML Web Services
XML Web Services Introduction
Web Services Infrastructure
XML Web Services
XML Web Servce Deploy
Publishing and Security
What Is XML

HTML Tutorials
HTML Tutorial
XHTML Tutorial
CSS Tutorial
TCP/IP Tutorial
XML Tutorials
XML Tutorial
XSL Tutorial
XSLT Tutorial
DTD Tutorial
Schema Tutorial
XForms Tutorial
XSL-FO Tutorial
XML DOM Tutorial
XLink Tutorial
XQuery Tutorial
XPath Tutorial
XPointer Tutorial
RDF Tutorial
SOAP Tutorial
WSDL Tutorial
RSS Tutorial
WAP Tutorial
Web Services Tutorial
Browser Scripting
JavaScript Tutorial
VBScript Tutorial
AJAX Tutorial
DHTML Tutorial
HTML DOM Tutorial
WMLScript Tutorial
E4X Tutorial
Server Scripting
ASP Tutorial
PHP Tutorial
PERL Tutorial
SQL Tutorial
ADO Tutorial
.NET (dotnet)
Microsoft.Net
XML Web Services
ASP.Net
.Net Mobile
C# : C Sharp
ADO.NET
VB.NET
Multimedia
SVG Tutorial
Flash Tutorial
Media Tutorial
SMIL Tutorial
Web Building
Web Browsers
Web Hosting
W3C Tutorial
Web Building
Web Quality
Web Semantic
Web Careers
Java Tutorials
Java Tutorial
JSP Tutorial
Servlets Tutorial
Struts Tutorial
EJB Tutorial
JMS Tutorial
JMX Tutorial
Programming Langauges
C Tutorial
C++ Tutorial
Visual Basic Tutorial
Data Structures Using C
Soft Skills
Communication Skills
Time Management
Project Management
Team Work
Leadership Skills
Corporate Communication
Negotiation Skills


Publishing and Security

Previous Next



Publishing a Web service means enabling a Web service user (consumer) to locate the service description and instructing the consumer how they should interact with the Web service. The process of locating and interrogating Web service description is called the discovery process. There are two ways for the discovery of Web services, DISCO and UDDI.




DISCO

We use DISCO if the number of consumers using our service are relatively small. We can directly give them the path of our Web Server and deploy the DISCO file on the Web Server. When we build a Web service, Visual Studio automatically creates a DISCO file. This file has an extension of .vsdisco and is stored in the virtual directory of IIS along with the asmx file. This DISCO file contains links to resources that describe the Web service.

Creating a Proxy using wsdl.exe

If we want consumers to program against our Web Service, we have to create a proxy and an assembly. We can generate the proxy using the WebServiceUtil.exe command-line tool with Visual Studio .NET command prompt. The wsdl.exe command line tool generates a code file that represents the proxy to the remote Web service. We need to specify the name of the proxy file to be generated and the URL where the WSDL can be obtained. The command for that is:

wsdl.exe /l:VB /out:c:\convertproxy.vb http://localhost/ConvertUnits/service1.asmx?WSDL.

This line illustrates the use of wsdl tool to generate a proxy class for our ConvertUnits Web service. The wsdl.exe utility generates C# (C-Sharp) code by default. If we want our proxy written in VB .NET we can use the optional /l:(language) as we did in the command line.

Creating a Proxy Using Visual Studio

We can also use Visual Studio to create the proxy class. We did that in the Sample Service 2 section. Visual Studio automatically creates a Web service proxy classes using the Add Web Reference feature. All we have to do is provide the location of the WSDL document for the Web service and Visual Studio takes care of the rest.




UDDI

The Universal Discovery, Description, and Integration (UDDI) project provides a global directory of Web Services. UDDI enables consumers to search and locate Web services if the consumer is not aware of the exact location of the service or the owner of the service. UDDI is for Web services like Google is for Web pages. UDDI allows us to easily find Web services based on a centralized and globally available registry of businesses which are accessible over the Internet. If you have a Web service and if you wish to publish it with UDDI then you need to visit the UDDI web site and register your service there.

Finding Services

UDDI directory allows us to search for companies providing services. All we need to do is visit the UDDI web site and search for the service we are interested in. Web sites like Google, Amazon and EBay are also providing their services through their web sites. You can visit their sites and download the SDK. The SDK provides all the information you need to access their Web services along with the documentation that helps you in it's implementation.

Security Configuration

We can us the Config.web file for all security related configuration as all the information is in this file. We have the ability to configure three fundamental functions for security: authentication, authorization, and impersonation. The Config. web will have three additional sequences enclosed in the parent <security> tag.

Authentication, Authorization, Impersonation

All your Web clients communicate with your Web application through IIS. So you can use IIS authentication (Basic, Digest, and NTLM/Kerberos) in addition to the ASP.NET built-in authentication solutions. Some ASP .NET authentication providers are:

-Passport authentication, which is a centralized authentication service provided by Microsoft.

-Cookie authentication, which issues a cookie to the request/response that contains the credentials for reacquiring the identity.

-Windows authentication, which is used in conjunction with IIS authentication.
IIS authentication methods assume that the user is already known to the server, while ASP .NET methods don't. With Passport authentication your site has to support Microsoft Passport credentials, and Cookie authentication assigns an identity to an “unknown stranger” who complies with some rules. Once a client request is authenticated and an identity is given, we have to determine whether this identity is allowed to have access to the requested resource.

ASP .NET distinguishes two modes of authorization: file and URL. File authorization is active when using Windows authentication. To determine if access should be granted or not, a check against an Access Control List (ACL) is done. In URL authorization, identities are mapped to pieces of the Uniform Resource Identifier (URI) namespace to selectively allow access to parts of the namespace.

When using impersonation, IIS and Windows file access security play a role. IIS authenticates the user using Basic, Digest, or Windows NTLM/Kerberos authentication. IIS then passes a token to ASP .NET, the token is either authenticated or unauthenticated.

Code Access Security

Apart from the ASP .NET built-in security features, we can make use of code access security feature of the .NET Framework. With code access security we can admit code originating from one computer system to be executed safely on another system. Therefore the code’s identity and origin has to be verified. To determine whether the code should be authorized or not, the runtime’s security system walks the call stack, checking for each caller whether access to a resource or performing an operation should be allowed. In the .NET Framework you must specify the operations the code is allowed to perform. This can be done, in the assembly of your Web application.




Extensible Markup Language (XML)

The markup language most widely used today is undoubtedly Hyper Text Markup Language (HTML), which is used to create Webpages. A Markup language describes the structure of the document. HTML is based on Standard Generalized Markup Language (SGML), which is an application of SGML. Webpages designed using HTML are designed using HTML predefined tags. These days, as Internet is used widely as general form of communication and as transferring data over the Internet is becoming more intensive and handling that data more complex many Web Developers are turning to XML as their alternative to HTML. It's worth having a brief overview of this wonderful new Markup Language which is changing the way data is handled on the Internet.




Share And Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • blinkbits
  • BlinkList
  • blogmarks
  • co.mments
  • connotea
  • del.icio.us
  • De.lirio.us
  • digg
  • Fark
  • feedmelinks
  • Furl
  • LinkaGoGo
  • Ma.gnolia
  • NewsVine
  • Netvouz
  • RawSugar
  • Reddit
  • scuttle
  • Shadows
  • Simpy
  • Smarking
  • Spurl
  • TailRank
  • Wists
  • YahooMyWeb

Previous Next

Keywords:ws-security, soap messages, web services security specification, web services security saml


HTML Quizes
HTML Quiz
XHTML Quiz
CSS Quiz
TCP/IP Quiz
XML Quizes
XML Quiz
XSL Quiz
XSLT Quiz
DTD Quiz
Schema Quiz
XForms Quiz
XSL-FO Quiz
XML DOM Quiz
XLink Quiz
XQuery Quiz
XPath Quiz
XPointer Quiz
RDF Quiz
SOAP Quiz
WSDL Quiz
RSS Quiz
WAP Quiz
Web Services Quiz
Browser Scripting Quizes
JavaScript Quiz
VBScript Quiz
AJAX Quiz
DHTML Quiz
HTML DOM Quiz
WMLScript Quiz
E4X Quiz
Server Scripting Quizes
ASP Quiz
PHP Quiz
PERL Quiz
SQL Quiz
ADO Quiz
.NET (dotnet) Quizes
Microsoft.Net Quiz
XML Web Services Quiz
ASP.Net Quiz
.Net Mobile Quiz
C# : C Sharp Quiz
ADO.NET Quiz
VB.NET Quiz
Multimedia Quizes
SVG Quiz
Flash Quiz
Media Quiz
SMIL Quiz
Web Building  Quizes
Web Browsers Quiz
Web Hosting Quiz
W3C Quiz
Web Building Quiz
Web Quality Quiz
Web Semantic Quiz
Web Careers Quiz
Java Quizes
Java Quiz
JSP Quiz
Servlets Quiz
Struts Quiz
EJB Quiz
JMS Quiz
JMX Quiz
Programming Langauges Quizes
C Quiz
C++ Quiz
Visual Basic Quiz
Data Structures Using C Quiz
Soft Skills Quizes
Communication Skills Quiz
Time Management Quiz
Project Management Quiz
Team Work Quiz
Leadership Skills Quiz
Corporate Communication Quiz
Negotiation Skills Quiz

Privacy Policy
Copyright © 2003-2008 Vyom Technosoft Pvt. Ltd., All Rights Reserved.