.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Sandeep Singh
Post New Web Links

how to create a restful webservice in mvc ?

Posted By:      Posted Date: October 15, 2010    Points: 0   Category :ASP.Net

i am working in asp.net mvc & want to create a restful web service.
Can you please let me know how can i create a restful web service in MVC & how can i use it ?
My requirement is :
i have an application server which send some parameters to web service & the web service should connect to remote server & return image on path (whose path will be generated by the parameters from application server).

Thanks in advance

View Complete Post

More Related Resource Links

Create Dynamic WCF webservice



i need wizard that i can add service and it's methods dynamically (ie... i need interface that enable non-technical maneger to add service such as first step define protocol then add link to service next step get all methods and there classes and run sevice in dynamic interface so no re-build for soluation ) can some one help me when should i start ????

can use ProxyFactor?

best regard

How to create a wiki page by webservice??



Someone can tall me how to create a wiki page in sharepoint by webservice??

I need Detailed description of the steps!!!


Create Dummy WebService



I am new to WCF web service. I have only consumed the web services previously, so dont have much experience in developing webservices. My task here is to emulate a previously exsting web service but i dont have access to its source code. My basic requirement is that no changes should be made to the client application to incorporate the dummy web service.

I would like to have your suggessions regarding my approach. Some of the points (client application perspective) to note are:

1. From client application we add the reference through "Add Web Service" and  url i give is http://localhost/Dummy/DummyService.svc?wsdl. So my first question is can i go with WCF to acheive this?

2. The web service uses Request/Response model. We have to create request and response objects for each operations. How can I achieve this? Do I have to create Request and Response classes for each of the operations i expose through my webservice?

3. Operations are basically CRUD operations to a database. Can i achieve this in a similar way to what we usually implement using ADO.Net? Is there anything else that i should consider when it comes to web services?

It would be great if some body can help me.




how to create an image from webservice on desktop application


Hello Partners,

On desktop application I am uploading photos and storing physically on the webserver with the help of webservice and in DB I am storing physical path of that photo.

On the other hand, I want to download the images for later use at that time I am creating bytestream from the physical path and storing it in the dataset column whose datatype is VARBINARY(MAX)

I can return byte array which creates the images on the client side very easily.

The main problem I am facing here is, I am not able to convert the byte array into dataset's VARBINARY format.

I really will be thankful for ur help...

Create WebApplication using C# and also using Out of the box WebService?

How Create WebApplication using C# and also using Out of the box WebService? in SharePoin Foundation 2010

WCF Restful Webservice, COM+, roles and security



I have a webservice which uses the WCF Rest starter kit. This WS itself calls into COM+ and thus onward into COM dlls. The solution has been working fine except that COM+ was configured to use the interactive user. I need to change this so that no one needs to be logged.  I have created a specific user whom I want to use as the specified account to access the data via COM+. I have set up this user and have a little test harness which I can run locally which proves that data can only be access via COM+ by this user - using COM+ roles.

However, now I cannot get the webservice to communicate with COM+ and I am unsure what I need to do to make this happen. I have set permissions in IIS so that anonymous access is mapped to the user who can access data via COM+ but when I try and make a call on the webservice to prove the link between the webservice and COM+, it fails. So it looks like I need something additional top allow the webservice to retrieve data via COM+.

In my reading I noticed that there are some roles which could be added to aspx pages to give role-based access to certain components. But I'm not sure if this  a) is relevant b) would relate to the COM+ roles

Any suggestions would be very gratefully received.

Many thx in advance





How to create a Login Page.aspx via WebService


Does anyone know where I could look to find how to create a simple login page.aspx via WebService? 

Create 'WebService' layer automatically


Hi all.  is there a utility to automatically create the 'webservice layer' from an existing namespace?  I have several business objects, and I want to expose both the types and methods so that the consumer of the webservice can use the webmethods and also pass custom objects back and forth from the consumer to the webservice and back.  I believe there is something that will do this automatically, but I'm not sure what is available to do that.  Any help would be appreciated.



How to create 3 tier application using LINQ

As you know that in 3 tier architecture there are three layers

User interface layer. (Is our Form in Windows application and .aspx page in Web application)
Data Access layer. (Which provides interface between Business logic layer and Database)
Business Logic layer.(Which stores your application logic)

Create ToolTip for GridView Header

The following allows you to add a tooltip to the header links of your GridView, a feature that is lacking.

Create And Run Excel Macro At Runtime in C#

You've been tasked with writing a Windows Form application using the .NET Framework that interacts with Microsoft Excel. If you are new to working with Excel in .NET and are having trouble learning how to format certain cells or cell ranges, then this little tip will come in handy. Rather than scour the internet hoping to find the correct set of constants or method syntax for formatting your spreadsheet, use the built in tools in Excel to write the familiar VBA code for you. Then, you can paste the VBA code generated by Excel into the sample C# code below and run it dynamically at runtime.

Create and Use a Typed DataSet by Using Visual C# .NET

This article shows you how to create and use a typed DataSet in a small Web application. Typed DataSets, which inherit from the DataSet class, create first-class members of a DataSet's DataTables and DataColumns, yielding the many benefits that come with the use of strong typing.

Connestion string create any database server

This links important to how to create connection string to any data base sever.

Dynamically Create Controls in ASP.NET by Using Visual C# .NET

This article demonstrates how to dynamically create a control for an .aspx page. The sample project does the following:
Creates two TextBox controls.
Verifies that the contents (TextBox.text) and the attributes of the TextBox are saved across posts to the server.
Illustrates handling events that are posted by a dynamically-created control

Dynamically Create Controls in ASP.NET with Visual Basic .NET

This step-by-step article describes how to dynamically create controls for an ASPX Web page.

The sample project does the following:
It creates two TextBox controls.
It verifies that the TextBox contents (TextBox.text) and attributes are saved across posts to the server.
It describes how events that are posted by a dynamically created control are handled.

How to create a windows mobile (Smart Device) .Cab installer

A Cab file is the default setup format for Windows CE and Windows Mobile devices (similar to windows .msi files). You probably already have installed several application using .cab files, and are familiar with the concept. One point which is often unknown is that .cab files are processed by wceloader.exe, and it can only install one .cab file at a time. That means we cannot have nested .cab files. It doesn't mean we cannot have .cab files contained by another .cab, but the contained .cab files will not be installed during the installation of the container .cab. We should install it manually after the container .cab file installation has been completed.

There are two ways to create a cabinet (.Cab) file. The traditional one, and the friendly VS Smart Device Cab project which doesn't require additional coding, but which also relies on the traditional one at low-level.

Create Web Site vs Web Application


I follow the tutorial and creted a web site for my company sales system. One of my collegue mention we use the wrong templet, we should use Web application for company application.

Should i continue using web site or change to web application? We are creating application for company sales, inventory, hr ,etc where possible more than 1000++ user. And during month end, it will be high traffic and transaction. can Web Site Template with BLL and DAL handle it? or i just need a powerful server?

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend