How to write a Web Service (REST Web Service) ?


As you can see in the attached code this is a WSDL SOAP service.

In "IOS 5", and others mobile environments, the best option is to use a "REST" style service, where the queries are made directly to a URL, and not by a WSDL descriptor.

In this case, the Web Service is returning the contents in JSON format but are wrapped in an XML structure, which IOS and other mobile devices is more difficult to interpret.

What changes I must to do in this web service in order to become a  "REST" web service?

Someone could made the changes for me, please?

I have not idea about how is a REST web service.

Thanks in advance,


This is my WSDL SOAP web service.

Imports My
Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.Web.Script.Services
Imports System.Xml
Imports System.Data
Imports System.IO
Imports System.Windows.Forms
Imports Microsoft.AnalysisServices
Imports Utilities.Utilities
Imports System.Diagnostics

<WebService(Namespace:="")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<System.Web.Script.Services.ScriptService()> _
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Public Class DPNetServices
Inherits System.Web.Services.WebService

' Web Services para mobiles

 <WebMethod(EnableSession:=True)> _
<ScriptMethod(ResponseFormat:=ResponseFormat.Json)> _
Public Function ManageMobileUsers(ByVal UsrNmb As String, ByVal UsrPwd As String, ByVal Release As String) As String

' This function return a JSON text

Return appm.DBProc.ManageMobileUsers(UsrNmb, UsrPwd)

End Function

End Class
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JonyTolengoAuthor Commented:
Thanks so much
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.