Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

Step to call a soap webservice

$
0
0

Hi

I have been struggling to call a asmx web service using xamarin form. I added my web service in the PLC project by right click => Add => service reference. Below is the way I call it. I am using android phone for this.

`public void Register(string mobile)
{
var test = new ServiceReference.RSDSoapClient();
test.SyncFormScoreCompleted += (object sender, SyncFormScoreCompletedEventArgs e) => {
var tttt = e.Result.ToString(); //The results alwasy null.
};

       test.SyncFormScoreAsync();

}`

at EngenIBDApplication.ServiceReference.RSDSoapClient.EndSyncFormScore (IAsyncResult result) [0x00009] in c:\Projects\EngenIBDApplication\EngenIBDApplication\EngenIBDApplication\Service References\ServiceReference\Reference.cs:3387
at EngenIBDApplication.ServiceReference.RSDSoapClient.OnEndSyncFormScore (IAsyncResult result) [0x00001] in c:\Projects\EngenIBDApplication\EngenIBDApplication\EngenIBDApplication\Service References\ServiceReference\Reference.cs:3395
at System.ServiceModel.ClientBase`1+c__AnonStorey0[TChannel].<>m__0 (IAsyncResult ar) [0x00006] in /Users/builder/data/lanes/2512/d3008455/source/mono/mcs/class/System.ServiceModel/System.ServiceModel/ClientBase.cs:242


Viewing all articles
Browse latest Browse all 89864

Trending Articles