Hello guys,
I've got some troubles with the webservice map point , while instancin' an object of : FindServiceSoap , it seems that FindServiceSoap become now an abstract class !
Look at this piece of code :
I've got this error :FindServiceSoad fss = new FindServiceSoap();
Even , if all the documentations that i've read before , were indicating that the instanciation has to be like that ! (with new)Error 1 Cannot create an instance of the abstract class or interface 'PickMeUp_BusinessLayer.ReferenceMapPoint.FindServ iceSoap' C:\Documents and Settings\COMPAQ\My Documents\Visual Studio 2008\Projects\PickMeUp_BusinessLayer\PickMeUp_Busi nessLayer\MapPoint.cs 15 35 PickMeUp_BusinessLayer
That's the first problem .
Second one , i've done this :
and got those errors :FindServiceSoap fss;
FindAddressSpecification addressSpecif = new FindAddressSpecification();
FindResults resultats;
Address address = new Address();
// On insère les données relatives à l'adresse
address.AddressLine =_address;
address.PostalCode = _postal_code;
address.PrimaryCity = _city;
address.CountryRegion = _country;
addressSpecif.InputAddress = address;
addressSpecif.DataSourceName ="MapPoint.EU";
resultats = fss.FindAddress(addressSpecif);
latlongobj = resultats.Results[0].FoundLocation.LatLong;
Strange , that this doesn't correspond to what i've read on documentation , i said strange because in the map point website, they said that in each new version of mappoint , we don't need at all to modify the code ..Error 1 The best overloaded method match for 'PickMeUp_BusinessLayer.ReferenceMapPoint.FindServ iceSoap.FindAddress(PickMeUp_BusinessLayer.Referen ceMapPoint.FindAddressRequest)' has some invalid arguments C:\Documents and Settings\COMPAQ\My Documents\Visual Studio 2008\Projects\PickMeUp_BusinessLayer\PickMeUp_Busi nessLayer\MapPoint.cs 34 25 PickMeUp_BusinessLayer
Error 2 Argument '1': cannot convert from 'PickMeUp_BusinessLayer.ReferenceMapPoint.FindAddr essSpecification' to 'PickMeUp_BusinessLayer.ReferenceMapPoint.FindAddr essRequest' C:\Documents and Settings\COMPAQ\My Documents\Visual Studio 2008\Projects\PickMeUp_BusinessLayer\PickMeUp_Busi nessLayer\MapPoint.cs 34 41 PickMeUp_BusinessLayer
Where is the problem then ?
Thank you very much![]()