As you can see in the attached file 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.

How to change this Web Service to be of type "REST"?

Someone could help me please?

Thanks in advance,


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

        Dim appm As AppMembers = New AppMembers(, , , , , , , , True, UsrNmb, Release)

        Return appm.DBProc.ManageMobileUsers(UsrNmb, UsrPwd) ' This function return a JSON text

    End Function

End Class

asked 12/12/2011 12:58

JonyTolengo's gravatar image

JonyTolengo ♦♦

4 Answers:
That looks like a standard ASP.NET web service, and not a WCF service.  

There are plenty of resources on how to get started with a RESTful WCF service.

REST in Windows Communication Foundation (WCF)
's gravatar image

Thanks for your response, but I can´t understand how to build a web service "REST"

Could you write it for me please?

It just one web service, with a few lines.

I am lost.

Thansk in advance,

's gravatar image

A perfect opportunity for a walk-through with steps and pictures.

Walkthrough creating REST Service in WCF 4.0
's gravatar image

Thanks so much
's gravatar image

Your answer
[hide preview]

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments



Asked: 12/12/2011 12:58

Seen: 294 times

Last updated: 12/14/2011 05:34