I have a project that requires connecting to a postcode lookup web service.
I have tried in vain to get it working in lightswitch and have seen some replies about wrapping it in a ria service,which just totally confuses me.
Can anyone point me in the right direction(idiots guide) to do this.
Thanks in advance
martinWednesday, April 13, 2011 5:45 PM
I recommend taking a look at the LightSwitch Training kit. There's a lab there called 'LightSwitch Data Source Extensions' which describes how to write a RIA service.
Wednesday, April 13, 2011 7:25 PM
- Proposed as answer by Yann DuranMicrosoft community contributor Thursday, April 14, 2011 12:14 AM
How about Dan Moyer's excellent article on connecting to a WCF service from LS: http://www.danlmoyer.com/?p=130
It sounds like your web service already exists and you just need to call it, so you can probably ignore the part in his article on how to create the service and just concentrate on the consuming part.
Hope this helps
Thursday, April 14, 2011 9:40 AM
- Proposed as answer by novascape Thursday, April 14, 2011 9:41 AM
thanks for that ,I am getting a little stumped at the part----
"Add another file called LSProxy.cs to your project. LSProxy will implement the calls to the WCF service and encapsulate the complexities of managing asynchronous method calls. "
Can anyone tell me if I should be using SLSvcUtil to generate this file or is it something I should be writing manually ?
Thanks in advance for any help.
martinFriday, April 15, 2011 8:11 AM
Are you still searching for an answer? I did a sample for you and it works with third party zipcode web service (http://www.webservicex.net/uszip.asmx).
But I didn't use Service Reference though, but it is Web Reference. If you are interested plz let me know.
-BalaSaturday, April 16, 2011 3:29 PM
Here it is. I'm a part time coder. So don't expect too much from me. :)
Saturday, April 16, 2011 10:03 PM
- Proposed as answer by PowerBala Saturday, April 16, 2011 10:03 PM