question

MohammadAliEchreshavi-1966 avatar image
0 Votes"
MohammadAliEchreshavi-1966 asked JarvanZhang-MSFT commented

How use Wsdl with out add as web refrence

Hi,
i want use soap in xamarin form project, i want know what diffrent between add or not add refrence ?
and if i dont want add wsdl as web refrence , how should i act?
thnak you in advance

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

1 Answer

JarvanZhang-MSFT avatar image
0 Votes"
JarvanZhang-MSFT answered JarvanZhang-MSFT commented

Hello,​

Welcome to our Microsoft Q&A platform!

How use Wsdl with out add as web refrence

We cannot do this in Xamarin.Forms. Because the Soap service is coded on ASP.NET framework, but xamarin runs on .Net standard which cannot compile the Asp.net libraries. Using soap service requires to call the code in xamarin project and the namespaces cannot be added directly if the project reference is not added.

Best Regards,

Jarvan Zhang


If the response is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


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

Thanks alot for your answer

0 Votes 0 ·

can i added web refrence in only in sheare code layer and use it for three project,android and ios and uwp project?

0 Votes 0 ·
JarvanZhang-MSFT avatar image JarvanZhang-MSFT MohammadAliEchreshavi-1966 ·

Hi, MohammadAliEchreshavi-1966. It depends on where the web service is used. If the function code is written in the shared project, just add a reference to the shared project. If in each platform project, you need to add a reference to the native platform project.



1 Vote 1 ·