miércoles, 10 de octubre de 2012

Invocación asíncrona de datos en WebServices sobre Windows 8


Que tal amigos, ante el cambio drástico en desarrollo de software de aplicaciones de escritorio que viene con el nuevo sistema operativo de Microsoft, cambiando muchos de los paradigmas del programador tradicional y del usuario final, empezamos ya a trabajar con él y con una mezcla de sentimientos encontrados con puntos a favor y menos en contra, en esta ocasión estaremos haciendo una aplicación para Windows 8 en XAML y C# que invoque un servicio Web que regrese una lista con datos provenientes de una tabla de SQL Server y previamente realizado. El servicio Web regresará una lista que contiene la información de una tabla con datos almacenados y está montado en un IIS 7.5 sobre Windows 7.



Para empezar la aplicación para Windows 8 tendrá un botón y un Listbox, mismo que modificaremos de la siguiente manera:


Una vez que el listbox está preparado para recibir la información de la lista mediante sus etiquetas, ahora procederemos a colocar el código de invocación asíncrona en el botón que recibirá los datos con las siguientes líneas.


Y listo, tenemos los datos de una tabla de SQL Server que son extraídas por un Servicio WEB tradicional mediante el IIS y enviadas a la aplicación de Windows 8 con invocación asíncrona y con recepción de información en el listbox.

Sin conocer el futuro sobre Windows 8, creo que siempre que tengamos oportunidad de aprender nuevas cosas, nos beneficia a todos.

Saludos y cualquier duda, por aquí seguimos en línea.
@enriqueaguilar


----------------------

Hi friends, before the drastic change in software development that comes with the new operating system from Microsoft, changing many of the paradigms of traditional developer and end-user, we begin to work with him and with mixed feelings with points in favor and against, this time we will be doing a Windows 8 XAML and C # that invokes a Web service that returns a list with data from a SQL Server table and previously performed. The Web service returns a list containing the information in a table with data stored and is mounted on a IIS 7.5 on Windows 7.

To begin the application to Windows 8 will have a button and a listbox, we will modify it as follows:



Once the listbox is ready to receive the information from the list by their labels, now proceed to place the code asynchronous invocation on the button to receive the data with the following lines.


And ready, we have data from a SQL Server table that are extracted by a traditional Web service (SOAP-WSDL) using IIS and sent to the application of Windows 8 with asynchronous invocation and receiving information in the listbox.

Without knowing the future of Windows 8, I think that whenever we have an opportunity to learn new things, benefits us all.

Greetings and any questions, we are here online.
@ enriqueaguilar....