Quantcast
Channel: WCF, ASMX and other Web Services
Viewing all articles
Browse latest Browse all 555

Accessing SOAP webservice

$
0
0

Hi

I have an asmx web service StaffService.asmx, whose GetUpcomingJobs method returns below data;

<string xmlns="http://tempuri.org/">
<NewDataSet>
<UpcomingJobs>
<ID>100643</ID>
<DateFrom>24/11/2020</DateFrom>
<DateTo>24/11/2020</DateTo>
<Client>Test Client</Client>
</UpcomingJobs>
</NewDataSet>
</string>

In my client app under connected services I have added a reference to the asmx web service called StaffService under which I get StaffWebServiceSoap, StaffWebServiceSoapClient and StaffWebServiceSoapChannel. I also have an UpcomingJobs model;

    class UpcomingJobs
    {
		public int ID { get; set; }
		public string DateFrom { get; set; }
		public string DateTo { get; set; }
		public string Client { get; set; }
	}

How can I get all this together and get the incoming data into the UpcomingJobs model?

Thanks

Regards


Viewing all articles
Browse latest Browse all 555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>