1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
using System;
using System.ComponentModel;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
using Microsoft.Web.Services;
/// <summary>
/// Summary description for DirectionService
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class DirectionService : Microsoft.Web.Services.DataService {
[DataObjectMethod(DataObjectMethodType.Select)]
public Direction[] GetDirections() {
return new Direction[] {
new Direction(47, -121.99, 47.1, -122.10, "Go here"),
new Direction(47.1, -122.10, 47.3, -122.13, "Then there"),
new Direction(47.3, -122.13, 47.42, -122.2, "And here"),
new Direction(47.42, -122.2, 47.55, -122.75, "Keep going"),
new Direction(47.55, -122.75, 47.49, -122.90, "The end")
};
}
}
|