Click here to Skip to main content
12,350,735 members (24,389 online)
Click here to Skip to main content

Stats

33.3K views
529 downloads
16 bookmarked
Posted

How To Access SAP Business Data From Silverlight 4 Clients Using WCF RIA Services And LINQ to SAP

, 17 Nov 2010 CPOL
This article describes how to access and integrate SAP customer data in Silverlight using WCF RIA Services and LINQ to SAP.

Editorial Note

This article appears in the Third Party Products and Tools section. Articles in this section are for the members only and must not be used to promote or advertise products in any way, shape or form. Please report any spam or advertising.

SAP2Silverlight
SAP2Silverlight
SAP2Silverlight
Assets
Generated_Code
Properties
SAP2Silverlight.csproj.user
Views
SAP2Silverlight.Web
ClientBin
DataModel
LINQtoERP.erp
LINQtoERP.erp.diagram
Properties
SAP2Silverlight.Web.csproj.user
Scripts
Services
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace SAP2Silverlight
{
	public partial class App : Application
	{
		public App()
		{
			this.Startup += this.Application_Startup;
			this.UnhandledException += this.Application_UnhandledException;

			InitializeComponent();
		}

		 void Application_Startup(object sender, StartupEventArgs e)
		{
			this.RootVisual = new MainPage();

			//WebContext.Current.Authentication 
		}

		 void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
		{
			// If the app is running outside of the debugger then report the exception using
			// a ChildWindow control.
			if(!System.Diagnostics.Debugger.IsAttached)
			{
				// NOTE: This will allow the application to continue running after an exception has been thrown
				// but not handled. 
				// For production applications this error handling should be replaced with something that will 
				// report the error to the website and stop the application.
				e.Handled = true;
				ChildWindow errorWin = new ErrorWindow(e.ExceptionObject);
				errorWin.Show();
			}
		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Jürgen Bäurle
Software Developer (Senior)
Germany Germany
I’m a software developer based in Germany.

Homepage

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160621.1 | Last Updated 17 Nov 2010
Article Copyright 2012 by Jürgen Bäurle
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid