NetProgrammingHelp.com
Asp.Net,C#,Ajax,Sql server,silverlight,Javascript codes exambles articles,Programming exambles

'WEB SERVICES' Category

How to authenticate a particular user machine in web services without using Userid&Password Authentication

Posted by James Categorized Under: WEB SERVICES 10 Comments

Introduction: In this article,i am going to explain about how to authenticate web service into a particular client machine without using userid/password (stored in database). Main: Normally we know in windows/password based authentications we are using ip addess for validating windows account. so here also i tried the same ip address approach for authenticating particular [...]

Creating Managing Transactions in Web services

Posted by James Categorized Under: WEB SERVICES one Commented

Introduction: In this article,i am going to explain about how to do transactions in web services using Webmethod.Transactionoption property. Main: we can easily manage tranctions using webmethod.transaction property, [WebMethod(TransactionOption= TransactionOption.RequiresNew)] It Indicates that the XML Web service method requires a new transaction. When a request is processed, the XML Web service is created within a [...]

How to cache webmethods in webservices using asp.net

Posted by James Categorized Under: WEB SERVICES 2 Comments

Introduction: In this article,i am going to explain about how to caching web methods using webservices and asp.net. Main: We can easily caching webmethods using WebmethodAttribute.CacheDuration Property, for ex, [WebMethod(CacheDuration = 30)] When When cache duration is enabled requests and responses are held in memory on the server for at least the cache duration so [...]

Difference between WCF and Web Services

Posted by James Categorized Under: WEB SERVICES Add Comments

Introduction: In this article,we are going to discuss about the difference between WCF and Asp.Net Asmx Web Services. Main: Sometimes we may think,why we are using WSE(Web Service Enhancements),the answer is simply the basic web service have scalaibility,reliability,security issues. In asmx webservices we are simply using webmothods,and we don’t have any contract between client and [...]

How to upload a file using WebService

Posted by James Categorized Under: ASP.NET, WEB SERVICES 3 Comments

Introduction: In remote environment,sometimes web services are the better option for uploading files.In this article explains,how to upload a files to remote environment using webservices. Main: I developed one web method and deployed in removete env, uploadedFile = String.Format("File1_{0}_{1}_{2}",DateTime.now.day.ToString(),DateTime.now.Minutes.ToString(),DateTime.now.Seconds.ToString());   [WebMethod] public void UploadFile(byte[] local_File) { MemoryStream ms = new MemoryStream(local_File) { Stream streamwriter= new [...]

How to Invoke a Web Method Without Adding Web Reference

Posted by James Categorized Under: WEB SERVICES 9 Comments

Introduction: In this we are discussing about how to invoke a particular ws web method without adding the Web Reference. Main: We configured the webservice url and web method name in app.config,and created one Webserviceclient for invoking the webmethod.Is this something same like httppost method,but in http post we will send request in xml format. [...]

How to create and use session’s in Asp.Net Web Services

Posted by James Categorized Under: WEB SERVICES Add Comments

Introduction: In this article,we are going to discuss about how to create sessions in web services. Main: Normally asp.net web services provided the following two types of state management, 1.Client state, in which data about a particular client request is stored and used to affect the processing of future requests from that client. 2.Application state, [...]

How to Create Overloaded Web Methods in Web Services

Posted by chandru Categorized Under: WEB SERVICES one Commented

Method Overloading in Web Services is a very useful for SOA applications. We need some additional configuration for achieving this, Important:Just set WebServiceBinding(ConformsTo = WsiProfiles.None) See this Sample Class with Overloaded Methods. using System; using System.Web; using System.Web.Services.Protocols; [WebService(NameSpace="http://tempuri.org")] [WebServiceBinding(ConformsTo = WsiProfiles.None)] Public class Service:System.Web.Services.WebService {   public Service()    {    } [WebMethod (MessageName="Adding [...]

How to Deploy and Publish a Web service:

Posted by James Categorized Under: WEB SERVICES 3 Comments

In this article you will learn how to deploy and publish a Web service. Before you deploy a Web service, you must make sure that the Web service specifies a unique XML namespace. This name-space is used within the Web service WSDL document to uniquely identify the callable entry points of the service.Initially we set [...]

How to Create Web Service Remote Calls Using Ajax:

Posted by chandru Categorized Under: WEB SERVICES one Commented

In this article we are going to discuss about creating Web Service remote calls using AJAX. Initialize the below steps, Step1:Create standard ASP.NET Web service project and then add a reference to the system.web.extensions assembly. step2:Import System.Web.Script.Services namespace. (using System.Web.Script.Services;) The key difference between standard ASP.NET webservice and AJAX Web service is [ScriptService] attribute. namespace [...]