Troubles with map point in C#

Amokrane
01-18-2008, 06:16 AM
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 :

FindServiceSoad fss = new FindServiceSoap();I've got this error :


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
Even , if all the documentations that i've read before , were indicating that the instanciation has to be like that ! (with new)

That's the first problem .

Second one , i've done this :

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;


and got those errors :

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
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 ..

Where is the problem then ?

Thank you very much :)

Amokrane
01-20-2008, 09:04 AM
Hello again ,

No body works on mappoint with C# ?
Please i need a help that's very easy i think :)
Thank you

 
Web mp2kmag.com
mapforums.com