Click here to Skip to main content
15,883,606 members
Articles / Database Development / SQL Server

GPS Tracer Extension: storing the path on SQL2005 via Web Services

Rate me:
Please Sign up or sign in to vote.
4.53/5 (9 votes)
7 Sep 20075 min read 33.6K   427   33  
This article extends Leonardo Salvatore's project "A GPS tracer application for Windows Mobile CE 5" using the Web Service Software Factory. It shows how to create a robust solution for storing the path on a DB server, using Web Services and SQL
using System;
using System.Collections.Generic;
using System.Text;
using GpsTracerServer.ServiceImplementation.Translators;
using GpsTracerServer.BusinessLogic;

namespace GpsTracerServer.ServiceImplementation
{
    [System.Web.Services.WebService(Namespace = "http://GpsTracerServer.ServiceContracts/2007/08", Name = "GpsTracerServiceContract")]
    [System.Web.Services.WebServiceBindingAttribute(ConformsTo = System.Web.Services.WsiProfiles.BasicProfile1_1, EmitConformanceClaims = true)]
    public class GpsTracerServiceContract : GpsTracerServer.ServiceContracts.IGpsTracerServiceContract
    {
        #region IGpsTracerServiceContract Members

        public bool SendDeviceAndLocationInfos(GpsTracerServer.DataTypes.DevicePlusLocationType SendDeviceAndLocationInfosRequest)
        {


            BusinessEntities.Device dev = TranslateBetweenDevicePlusLocationTypeAndDevice.TranslateDevicePlusLocationTypeToDevice(SendDeviceAndLocationInfosRequest);
            BusinessEntities.LocationEntry loc = TranslateBetweenDevicePlusLocationTypeAndLocationEntry.TranslateDevicePlusLocationTypeToLocationEntry(SendDeviceAndLocationInfosRequest);

            return DeviceLocationBll.AcquireDevice(dev,loc);
            //throw new Exception("The method or operation is not implemented.");
        }

        #endregion
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Italy Italy
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions