Microsoft Visual Studio 2005 will automatically generate interfaces to web services.
To add Web Reference, right click on a project in the Solution Explorer, choose "Add Web Reference...",
and specify the URL http://turbulence.pha.jhu.edu/service/turbulence.asmx.
C#
Random random = new Random();
edu.jhu.pha.turbulence.TurbulenceService service = new edu.jhu.pha.turbulence.TurbulenceService();
edu.jhu.pha.turbulence.Point3[] points = new edu.jhu.pha.turbulence.Point3[10];
edu.jhu.pha.turbulence.Vector3[] output;
for (int i = 0; i < points.Length; i++) {
points[i] = new edu.jhu.pha.turbulence.Point3();
points[i].x = (float)(random.NextDouble() * 2.0 * 3.14);
points[i].y = (float)(random.NextDouble() * 2.0 * 3.14);
points[i].z = (float)(random.NextDouble() * 2.0 * 3.14);
}
output = service.GetVelocity("jhu.edu.pha.turbulence.testing-200711", "isotropic1024fine", 0.0024f,
turbulence.SpatialInterpolation.Lag6, turbulence.TemporalInterpolation.None, points);
for (int r = 0; r < results.Length; r++) {
Console.WriteLine("X={0} Y={0} Z={0}", output[r].x, output[r].y, output[r].z);
}