momo
2008-03-15 01:29:24 UTC
Code snippet (we already have a valid route returned=E2=80=A6also if we use the Coff=
eeSample example we get results)
FindNearRouteSpecification findnearroutespec =3D =
new FindNearRouteSpecification();
findnearroutespec.setDataSourceName("NavTech.NA");
findnearroutespec.setFilter(new FindFilter());
findnearroutespec.getFilter().setEntityTypeName("SICInd554");
findnearroutespec.setDistance(20);
findnearroutespec.setRoute(route);
findResults =3D findService.findNearRoute(findnearroutespec);
The start of the request:
sd=3D"http://www.w3.org/2001/XMLSchema" xmlnssi=3D"http://www.w3.org/200=
1/XMLSchema-instance">NavTech.NA
Error message:
{http://s.mappoint.net/mappoint-30/}Type:MapPointArgumentException
{http://s.mappoint.net/mappoint-30/}Message:The requested data source does n=
ot support the Find Near Route method. Argument: specification.DataSourceName
{http://s.mappoint.net/mappoint-30/}Argument:specification.DataSourceNa=
me
On Microsft's web site it says this about FindNearRoute:
DataSourceCapability Enumeration displays this information regarding whether o=
r not FindNearRoute is usable with the NavTech.NA data source:
CanFindNearby Indicates whether whether you can use the FindServiceSoap.FindByI=
D, FindServiceSoap.FindByProperty, FindServiceSoap.FindNearby, and FindServ=
iceSoap.FindNearRoute methods with the specified DataSource object. You can use t=
he FindByID, FindByProperty, and FindNearRoute methods only with your private poi=
nt-of-interest data sources and the MapPoint.FourthCoffeeSample data source.
I managed to get information back from the FourthCoffeeSample just fine so I have a co=
uple of questions:
1) Do I need to subscribe to NavTech.NA data source to be able to use it? =
2) if not do you see any flaws in the way I am accessing the service
url:http://www.ureader.com/gp/1621-1.aspx
eeSample example we get results)
FindNearRouteSpecification findnearroutespec =3D =
new FindNearRouteSpecification();
findnearroutespec.setDataSourceName("NavTech.NA");
findnearroutespec.setFilter(new FindFilter());
findnearroutespec.getFilter().setEntityTypeName("SICInd554");
findnearroutespec.setDistance(20);
findnearroutespec.setRoute(route);
findResults =3D findService.findNearRoute(findnearroutespec);
The start of the request:
sd=3D"http://www.w3.org/2001/XMLSchema" xmlnssi=3D"http://www.w3.org/200=
1/XMLSchema-instance">NavTech.NA
Error message:
{http://s.mappoint.net/mappoint-30/}Type:MapPointArgumentException
{http://s.mappoint.net/mappoint-30/}Message:The requested data source does n=
ot support the Find Near Route method. Argument: specification.DataSourceName
{http://s.mappoint.net/mappoint-30/}Argument:specification.DataSourceNa=
me
On Microsft's web site it says this about FindNearRoute:
DataSourceCapability Enumeration displays this information regarding whether o=
r not FindNearRoute is usable with the NavTech.NA data source:
CanFindNearby Indicates whether whether you can use the FindServiceSoap.FindByI=
D, FindServiceSoap.FindByProperty, FindServiceSoap.FindNearby, and FindServ=
iceSoap.FindNearRoute methods with the specified DataSource object. You can use t=
he FindByID, FindByProperty, and FindNearRoute methods only with your private poi=
nt-of-interest data sources and the MapPoint.FourthCoffeeSample data source.
I managed to get information back from the FourthCoffeeSample just fine so I have a co=
uple of questions:
1) Do I need to subscribe to NavTech.NA data source to be able to use it? =
2) if not do you see any flaws in the way I am accessing the service
url:http://www.ureader.com/gp/1621-1.aspx