Contents Index UltraLite samples Adaptive Server Anywhere samples

What's New in SQL Anywhere Studio
  Welcome to SQL Anywhere Studio Version 9
    New feature samples

MobiLink samples


The MobiLink samples are located at http://ianywhere.codexchange.sybase.com/servlets/ProjectDocumentList?folderID=319

.NET Remoting sample 

.NET remoting enables you to build widely distributed applications easily, whether application components are all on one computer or spread out across the world. You can build client applications that use objects in other processes on the same computer or on any other computer that is reachable over its network. You can also use .NET remoting to communicate with other application domains in the same process.

Reference: http://msdn.microsoft.com/library/default.asp?url=/library

The following Visual Basic.NET and C# samples use MobiLink to invoke a .NET remoting service. The server.cs/servclass.cs files produce a simple remoting service. This service opens a local port on 1095 and listens to requests. When methods of the remoting service are invoked the remoting server posts messages to the console

ASP.NET sample 

ASP.NET is a component of the .NET Framework for building, deploying, and running web applications and distributed applications. ASP.NET provides support for web services through the use of .ASMX files. A web service is a protocol that enables computers to work together by exchanging messages. Web services are based on the standard protocols of XML, SOAP, and WSDL, which allow them to interoperate across platforms and programming languages.

This sample provides integration between MobiLink and ASP.NET through the invocation of web services. In this sample, the file sample.asmx is a sample web service that is copied into IIS home/root directory (likely c:\inetpup\wwwroot). During synchronization, the MobiLink server attempts to invoke ASP.NET, which then attempts to write to a file name data.bin in the IIS home/root directory.

File Sync sample 

This sample demonstrates the capabilities of the MobiLink server to send a file that contains a list of changes to be applied to a remote database. The remote database takes this file, applies it, and lets you verify that the changes were applied.


Contents Index UltraLite samples Adaptive Server Anywhere samples