You are on page 1of 18

Web Services in Asp.

Net with C#
Anderson Meggiolaro
Jonatan Pommer
Wiliam Rambo
Roteiro
• ASP.Net
• C#
• Web Services in C# with ASP.Net

• Perguntas
ASP.Net
What is ASP.Net
• Web Application Framework, Microsoft
• Desenvolver aplicações web dinâmicas, web sites
e web services
• Liberado em 2002, .Net Framework 1.0
• Sucessor do ASP (Active Server Pages)
• Parte do .Net Framework
What is ASP.Net
• CLR (Common Laguage Runtime)
• Capaz de utilizar recursos de todas as linguagens
suportadas pelo CLR (C#, VB.Net, C++, etc.)
• É compilada
• Roda em Windows com IIS (Internet
Information Services) ou Apache
(mod_aspdotnet)
• O projeto Mono tenta colocar todo o .Net
Framework pra rodar em Linux
What is ASP.Net
• Código pode ser escrito no:
▫ NotePad
▫ Visual Studio
▫ Visual Web Developer
C#
What is C#
• Parte integrante do .Net Framework
• Também chamado de C Sharp
• Orientada à Objetos
• Alta performance
• Baseado em Java, Object Pascal e C++
• Type-safe
What is C#
• Garbage collector (Coletor de lixo)
• Não permite herança múltipla
• Suporta sobrecarga de métodos e operadores
Web Services in C# with ASP.Net
Web Services in C# with ASP.Net
• Usamos Visual Web Developer Express 2010
• Dois arquivos necessários
▫ Entry point – WebService.asmx
▫ Code Behind – WebService.cs
• 24 linhas de código
Web Services in C# with ASP.Net
• Entry point – WebService.asmx
Web Services in C# with ASP.Net
• Code Behind – WebService.cs
Prática

You might also like