C# 3.0, AOP, Extensions methods
October 4th, 2005
Finally I see an example of how AOP will be so easy in C# 3.0…
Blog moved
September 10th, 2005
My Blog has been moved… This is the new url: http://blogs.southworks.net/blogs/matiaswoloski
Xsd Generator with GAT released to community!
September 4th, 2005
As I said in this post, I’ve created the GotDotNet workspace for this GAT package.
Features:
- Xsd to C# (Individual files or Projects containing xsd files)
- The classes will have the default namespace of the project
- Supports folders and the result class will have the namespace according to the folder where the xsd is + the project namespace
- Lazy initialization of collections (on property getters)
- unbounded nodes are converted to System.Collections.Generic.List
I’ve uploaded the msi package and whoever wants to contribute on this project is welcomed. Indeed GDN released the SCC plugin for VS 2005 Beta 2
MSDN HowTo Webservices - 1st Sept 9-13hs MSFT Argentina
August 25th, 2005
This will be the content of the presentation. We will deliver a companion CD with lots of resources and code regards webservices.
You can register for the event here
Esta presentación estará orientada a dar respuesta a los desafÃos de las aplicaciones complejas que usan Web Services, planteando soluciones con la tecnologÃa actual (VS2003) y mostrando el futuro de la plataforma (VS2005, Indigo).
Analizaremos los requerimientos mas comunes y los resolveremos utilizando el perfil básico y las extensiones de WS-*, ya sea usando la plataforma o con alternativas propietarias (hechas a mano) para los que no pueden esperar a que se liberen las especificaciones.
Requerimientos básicos
- Como controlar la comunicación con Headers. Internacionalización (I18N) utilizando Header de cultura y recursos (en-US, es-AR).
- Como proteger un WS
- Usando la plataforma (Basic, Digest, Integrated)
- Usando headers
- Usando la plataforma (Basic, Digest, Integrated)
- Como manejar conversaciones (manejar sessiones)
- Usando la plataforma (sesion de IIS)
- Usando headers (token de conversacion)
- Usando la plataforma (sesion de IIS)
- Como manejar transacciones
Requerimientos intermedios
- Como decidir entre implementar HttpModules o SoapExtensions
- Como encriptar con mecanismos propietarios (SoapExtension)
- Como comprimir con mecanismos propietarios (SoapExtension)
- Como manejar la serializacion de objetos a documentos XML y viceversa.
- XmlSerilization vs .NET serialization, XML namesapces, creación de XSD schemas, XSDObjectGenerator
- SoapDocumentService y SoapDocumentMethod, recomendación de WS-I
- XmlSerilization vs .NET serialization, XML namesapces, creación de XSD schemas, XSDObjectGenerator
Requerimientos avanzados
- Como consumir un WS dinámicamente, sin agregar una web reference de Visual Studio
- Como manejar enrutamiento (usando HttpHandler en vez de paginas asmx)
- Intercepción de mensajes con Sniffer Soap. Ruteo directo a MS-SQL usando Sql XML. Ruteo basado en contenido (Atención preferencial de usuarios)
- Interoperar entre JAVA y NET
- Como hacer un WS en Indigo
- Como hacer WS que migren fácilmente a Indigo
Xsd Generator with GAT (generate a class from an xml schema)
July 15th, 2005
UPDATE: I’ve updated the GAT package and created the GotDotNet workspace. See this post.
I’ve started working on GAT recipes because of a project called blueprint that we are doing here at Southworks.
So here is my first attempt. After 1 day I’ve built something that would have been very useful in the old days.
The
recipe is a simple xsd to class generator by just right-click on *.xsd
files (no wizards, no input). I thought that Whidbey was going to
improve xsd.exe but it didn’t. It is just the same as before but with property generation instead of fields.
Today there are some of these tools already, but I always wanted to have my own “xsd.exe†to customize it a piacere.
So I picked this idea from this article in msdn (written by kzu) and created my guidance package.
This
is a very first version that generates a c# entity by right clicking
the xsd on a project. It still needs some refactoring, some fixes and
some missing features, but it works. My assignment was to make a proof
of concept on the GAT technology and provide feedback about it to the blueprint architect. We believe that GAT recipes are great because they are more user friendly than using VS external tools.
The current features are:
-
Generates c# class/es by right click on the xsd on a project
-
Uses System.Collections.Generic.List instead of arrays
-
Lazy initialization of generic collections (on property getters)
-
Class takes the default namespace of the project
Coming features:
-
Right click the project and generates all classes for every xsd on the project
-
Another command bar to generate in vb.net
Known bugs:
-
Generate for a second time if the target file already exist will throw an exception
Requirements:
- Visual Studion 2005 (Whidbey)
- Guidance Automation Extensions (GAX): http://www.microsoft.com/downloads/details.aspx?FamilyId=C0A394C0-5EEB-47C4-9F7B-71E51866A7ED&displaylang=en
Download the MSI and install the GAT package XsdToEntityPackageSetup.zip (202.49 KB)
Remember to enable
the package in vs 2005: Tools -> Guidance Package Manager ->
Enable/Disable Packages. Choose the one that says “Generates a class
from xsdâ€.
ILOG - a relally cool business rule engine
March 21st, 2005
XPath Tutorial
November 3rd, 2004
Great tutorial on Xpath! basic stuff, but useful when you want to remind some syntax.
All you want to know about ASP.Net security in 3 pages
September 13th, 2004
This week on the EDRA message board, there was a question about EDRA runtime user context. This made me research on asp.net and IIS security and after some research I posted the IdentityImpersonate handler. Johnatan Wanagel, one of the MS guys that works tight with EDRA, posted these very interesting links…
IIS & ASP.Net Pipeline processing
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetAP04.asp
IIS authentication settings, the resultant identity that is obtained from each of the variables that maintain an IPrincipal and/or IIdentity object.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetAP05.asp
The chapter that explains everything about impersonation, WindowsIdentity and ASP.NET Security Architecture in general
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetch08.asp
ObjectXPathNavigator - use xpath to navigate through object graph
September 2nd, 2004
Today while was reading a post from edjez found this CoolStuff: an xpath navigator to navigate through an object graph
ObjectXPathNavigator: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnexxml/html/xml03172003.asp