question

Martin-0110 avatar image
0 Votes"
Martin-0110 asked RobCaplan edited

Xamarin ASMX web service - generalise implementation for maintanance

I have a mobile Xamarin app which utilises an ASMX Web Services. I know that ASMX is a fairly outdated technology, but it allows for a specific functionality we need, which does not seem to be possible in RESTful ones.

My problem is that currently, I have in the Android and iOS projects, the web references and implementation logic to the development and live web services are separate, creating 4 nearly identical implementation. If there's any change in one of them, I need to repeat the process 3 more times in each implementation class. The generated web service classes don't implement an interface (of course), making abstraction that more difficult.

It's pretty much the case that the live service implementation should be the same within Droid and iOS, and likewise the dev implementation. But although they contain the same logic, the namespace difference disables me from generalising it.

Is there any way I can generalise the ASMX service implementation on Xamarin?

dotnet-xamarin
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

>live web services are separate, creating 4 nearly identical implementation. If there's any change in one of them, I need to repeat the process 3 more times in each implementation class.

Yes, it achieve it by interface, If you change one of them, and keep other should be same, you need to change others implementation class, Forms do not have this kind of nuget packages to achieve all of them at once.

0 Votes 0 ·

0 Answers