<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Probando Código &#187; Aprendiendo Programación</title>
	<atom:link href="http://www.probandocodigo.com/category/aprendiendo-programacion/feed" rel="self" type="application/rss+xml" />
	<link>http://www.probandocodigo.com</link>
	<description></description>
	<lastBuildDate>Wed, 28 Jul 2010 17:40:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Optimizar las concatenaciones del texto en Java</title>
		<link>http://www.probandocodigo.com/2010/07/optimizar-las-concatenaciones-del-texto-en-java.html</link>
		<comments>http://www.probandocodigo.com/2010/07/optimizar-las-concatenaciones-del-texto-en-java.html#comments</comments>
		<pubDate>Wed, 28 Jul 2010 16:23:00 +0000</pubDate>
		<dc:creator>Benjamín Zepeda</dc:creator>
				<category><![CDATA[Aprendiendo Programación]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Optimizar]]></category>
		<category><![CDATA[String]]></category>
		<category><![CDATA[StringBuffer]]></category>

		<guid isPermaLink="false">http://www.probandocodigo.com/2010/07/optimizar-las-concatenaciones-del-objeto-string-en-java.html</guid>
		<description><![CDATA[&#160;&#160;
Los problemas de perfomance al concatenar con += en vez de ocupar un objeto StringBuffer y utilizar el método append lo podemos observar en la siguiente imagen:

Podemos observar que si son 20 líneas, en este caso el uso del += se tarda 745.2 veces más, y entre mas líneas este número crece.
Esto se debe a [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;<a href="http://www.probandocodigo.com/wp-content/uploads/2010/07/procesoscompu.png"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="procesos compu" border="0" alt="procesos compu" src="http://www.probandocodigo.com/wp-content/uploads/2010/07/procesoscompu_thumb.png" width="322" height="204" /></a>&#160;</p>
<p align="justify">Los problemas de perfomance al concatenar con += en vez de ocupar un objeto StringBuffer y utilizar el método append lo podemos observar en la siguiente imagen:</p>
<p align="justify"><a href="http://www.probandocodigo.com/wp-content/uploads/2010/07/clip_image004.jpg"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="clip_image004" border="0" alt="clip_image004" src="http://www.probandocodigo.com/wp-content/uploads/2010/07/clip_image004_thumb.jpg" width="370" height="25" /></a></p>
<p align="justify">Podemos observar que si son 20 líneas, en este caso el uso del += se tarda 745.2 veces más, y entre mas líneas este número crece.</p>
<p align="justify">Esto se debe a que el objeto String es inmutable, por lo que cada vez que se utilizar la concatenación por medio del += se está añadiendo al Heap.</p>
<p align="justify">Si adicional al usar el StringBuffer, inicializamos con el numero de caracteres que tendrá la cadena (en algunos casos se pueda) podemos mejorar todavía más el perfomance de la aplicación.</p>
<p align="justify">Por Ejemplo -&gt; cadenaDeTexto.setLength(300);</p>
<p>El código para que puedan comprobarlos por ustedes mismos es el siguiente:</p>
<div style="border-bottom: black 1px solid; border-left: black 1px solid; width: 100%; overflow: scroll; border-top: black 1px solid; border-right: black 1px solid">
<div style="background-color: #e2ecf6"></div>
<div style="background-color: #ffccff"><span style="color: blue">public</span>&#160;<span style="color: blue">class</span> Main {       </div>
<div style="background-color: #e2ecf6"><span style="color: blue">public</span>&#160;<span style="color: blue">static</span>&#160;<span style="color: blue">void</span> main(String[] args) {       </div>
<div style="background-color: #ffccff">&#160; //Test the String Concatenation <span style="color: blue">using</span> + <span style="color: blue">operator</span>       </div>
<div style="background-color: #e2ecf6"></div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: blue">long</span> startTime = System.currentTimeMillis();       </div>
<div style="background-color: #e2ecf6"></div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; String result = <span style="color: red">&quot;hello&quot;</span>;       </div>
<div style="background-color: #e2ecf6"></div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: blue">for</span>(<span style="color: blue">int</span> i=0;i&lt;1500;i++){       </div>
<div style="background-color: #e2ecf6"></div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result += <span style="color: red">&quot;hello3&quot;</span>;       </div>
<div style="background-color: #e2ecf6">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result += <span style="color: red">&quot;hello4&quot;</span>;       </div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result += <span style="color: red">&quot;hello&quot;</span>;       </div>
<div style="background-color: #e2ecf6">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result += <span style="color: red">&quot;hello2&quot;</span>;       </div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result += <span style="color: red">&quot;hello3&quot;</span>;       </div>
<div style="background-color: #e2ecf6">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result += <span style="color: red">&quot;hello4&quot;</span>;       </div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result += <span style="color: red">&quot;hello&quot;</span>;       </div>
<div style="background-color: #e2ecf6">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result += <span style="color: red">&quot;hello2&quot;</span>;       </div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result += <span style="color: red">&quot;hello3&quot;</span>;       </div>
<div style="background-color: #e2ecf6">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result += <span style="color: red">&quot;hello4&quot;</span>;       </div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result += <span style="color: red">&quot;hello3&quot;</span>;       </div>
<div style="background-color: #e2ecf6">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result += <span style="color: red">&quot;hello4&quot;</span>;       </div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result += <span style="color: red">&quot;hello&quot;</span>;       </div>
<div style="background-color: #e2ecf6">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result += <span style="color: red">&quot;hello2&quot;</span>;       </div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result += <span style="color: red">&quot;hello3&quot;</span>;       </div>
<div style="background-color: #e2ecf6">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result += <span style="color: red">&quot;hello4&quot;</span>;       </div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result += <span style="color: red">&quot;hello&quot;</span>;       </div>
<div style="background-color: #e2ecf6">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result += <span style="color: red">&quot;hello2&quot;</span>;       </div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result += <span style="color: red">&quot;hello3&quot;</span>;       </div>
<div style="background-color: #e2ecf6">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result += <span style="color: red">&quot;hello4&quot;</span>;&#160;&#160; </div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </div>
<div style="background-color: #e2ecf6">&#160;&#160;&#160;&#160;&#160;&#160;&#160; }      </div>
<div style="background-color: #ffccff"></div>
<div style="background-color: #e2ecf6">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: blue">long</span> endTime = System.currentTimeMillis();       </div>
<div style="background-color: #ffccff"></div>
<div style="background-color: #e2ecf6">&#160;&#160;&#160;&#160;&#160;&#160;&#160; System.<span style="color: blue">out</span>.println(<span style="color: red">&quot;Time taken <span style="color: blue">for</span>&#160;<span style="color: blue">string</span> concatenation <span style="color: blue">using</span> += <span style="color: blue">operator</span> : &quot;</span>       </div>
<div style="background-color: #ffccff"></div>
<div style="background-color: #e2ecf6">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; + (endTime &#8211; startTime)+ <span style="color: red">&quot; milli seconds&quot;</span>);       </div>
<div style="background-color: #ffccff"></div>
<div style="background-color: #e2ecf6"></div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; //Test the String Concatenation <span style="color: blue">using</span> StringBuffer       </div>
<div style="background-color: #e2ecf6"></div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: blue">long</span> startTime1 = System.currentTimeMillis();       </div>
<div style="background-color: #e2ecf6"></div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; StringBuffer result1 = <span style="color: blue">new</span> StringBuffer(<span style="color: red">&quot;hello&quot;</span>);       </div>
<div style="background-color: #e2ecf6">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result1.setLength(300);      </div>
<div style="background-color: #ffccff"></div>
<div style="background-color: #e2ecf6">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: blue">for</span>(<span style="color: blue">int</span> i=0;i&lt;1500;i++){       </div>
<div style="background-color: #ffccff"></div>
<div style="background-color: #e2ecf6">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result1.append(<span style="color: red">&quot;hello3&quot;</span>);       </div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result1.append(<span style="color: red">&quot;hello4&quot;</span>);       </div>
<div style="background-color: #e2ecf6">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result1.append(<span style="color: red">&quot;hello&quot;</span>);       </div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result1.append(<span style="color: red">&quot;hello2&quot;</span>);       </div>
<div style="background-color: #e2ecf6">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result1.append(<span style="color: red">&quot;hello3&quot;</span>);       </div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result1.append(<span style="color: red">&quot;hello4&quot;</span>);       </div>
<div style="background-color: #e2ecf6">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result1.append(<span style="color: red">&quot;hello&quot;</span>);       </div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result1.append(<span style="color: red">&quot;hello2&quot;</span>);       </div>
<div style="background-color: #e2ecf6">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result1.append(<span style="color: red">&quot;hello3&quot;</span>);       </div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result1.append(<span style="color: red">&quot;hello4&quot;</span>);       </div>
<div style="background-color: #e2ecf6">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result1.append(<span style="color: red">&quot;hello3&quot;</span>);       </div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result1.append(<span style="color: red">&quot;hello4&quot;</span>);       </div>
<div style="background-color: #e2ecf6">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result1.append(<span style="color: red">&quot;hello&quot;</span>);       </div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result1.append(<span style="color: red">&quot;hello2&quot;</span>);       </div>
<div style="background-color: #e2ecf6">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result1.append(<span style="color: red">&quot;hello3&quot;</span>);       </div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result1.append(<span style="color: red">&quot;hello4&quot;</span>);       </div>
<div style="background-color: #e2ecf6">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result1.append(<span style="color: red">&quot;hello&quot;</span>);       </div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result1.append(<span style="color: red">&quot;hello2&quot;</span>);       </div>
<div style="background-color: #e2ecf6">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result1.append(<span style="color: red">&quot;hello3&quot;</span>);       </div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; result1.append(<span style="color: red">&quot;hello4&quot;</span>);       </div>
<div style="background-color: #e2ecf6">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; }      </div>
<div style="background-color: #e2ecf6"></div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: blue">long</span> endTime1 = System.currentTimeMillis();       </div>
<div style="background-color: #e2ecf6"></div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; System.<span style="color: blue">out</span>.println(<span style="color: red">&quot;Time taken <span style="color: blue">for</span>&#160;<span style="color: blue">string</span> concatenation <span style="color: blue">using</span> StringBuffer.append :&#160; &quot;</span>&#160; </div>
<div style="background-color: #e2ecf6"></div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; + (endTime1 &#8211; startTime1)+ <span style="color: red">&quot; milli seconds&quot;</span>);       </div>
<div style="background-color: #e2ecf6"></div>
<div style="background-color: #ffccff">&#160;&#160;&#160;&#160;&#160;&#160;&#160; }      </div>
<div style="background-color: #e2ecf6"></div>
<div style="background-color: #ffccff">/* (non-Java-doc)      </div>
<div style="background-color: #e2ecf6">* @see java.lang.Object#Object()      </div>
<div style="background-color: #ffccff">*/      </div>
<div style="background-color: #e2ecf6"><span style="color: blue">public</span> Main() {       </div>
<div style="background-color: #ffccff">super();      </div>
<div style="background-color: #e2ecf6">}      </div>
<div style="background-color: #ffccff"></div>
<div style="background-color: #e2ecf6">}</div>
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.probandocodigo.com/2010/07/optimizar-las-concatenaciones-del-texto-en-java.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Que es content management system(CMS)</title>
		<link>http://www.probandocodigo.com/2010/05/que-es-content-management-systemcms.html</link>
		<comments>http://www.probandocodigo.com/2010/05/que-es-content-management-systemcms.html#comments</comments>
		<pubDate>Wed, 05 May 2010 16:27:00 +0000</pubDate>
		<dc:creator>Benjamín Zepeda</dc:creator>
				<category><![CDATA[Aprendiendo Programación]]></category>
		<category><![CDATA[Varios]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[content management system]]></category>
		<category><![CDATA[gestor de contenidos]]></category>

		<guid isPermaLink="false">http://www.probandocodigo.com/2010/05/que-es-content-management-systemcms.html</guid>
		<description><![CDATA[ 
&#160;&#160;&#160;&#160; CMS es content management system, y en español lo podemos definir como un gestor de contenidos, el cual su función principal es no reinventar la rueda a la hora de crear una aplicación desde cero.
Un CMS es muy útil cuando un programador independiente decide crear un sistema para una empresa pequeña o mediana, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.probandocodigo.com/wp-content/uploads/2010/05/image.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="DotNetNuke" border="0" alt="DotNetNuke" src="http://www.probandocodigo.com/wp-content/uploads/2010/05/image_thumb.png" width="425" height="275" /></a> </p>
<p align="justify">&#160;&#160;&#160;&#160; CMS es content management system, y en español lo podemos definir como un gestor de contenidos, el cual su función principal es no reinventar la rueda a la hora de crear una aplicación desde cero.</p>
<p align="justify">Un CMS es muy útil cuando un programador independiente decide crear un sistema para una empresa pequeña o mediana, ya que se ahorra módulos de seguridad, pagos en línea, editores del sitio entre otros.</p>
<p align="justify">Sin embargo, en una empresa mediana &#8211; grande sería mejor considerar un propio CMS, ya que de esta forma se tendrá el 100% del control del mismo, haciendo mucho más fácil la tarea de crear aplicaciones e integrar a estas todo lo que contiene el CMS empresarial.</p>
<p align="justify">Cuando buscamos CMS comerciales podemos encontrar gratis y pagados, uno de los más populares por ejemplo en .Net es DotNetNuke(DNN), el cual con una herramienta muy intuitiva permite incluso modificar las páginas web como si son documentos Word (incluso más fácil que modificar una página en wikipedia).</p>
<p align="justify">&#160;</p>
<p>Algunos CMS para C#.</p>
<ul>
<li><cite><a href="http://www.kentico.com">www.kentico.com</a></cite></li>
<li><cite><a href="http://www.umbraco.org">www.umbraco.org</a></cite></li>
<li><cite><a href="http://www.dotnetnuke.com">www.dot<b>net</b>nuke.com</a></cite></li>
<li><cite><a href="http://www.n2cms.com">www.n2<b>cms</b>.com</a></cite></li>
</ul>
<p><cite>Algunos CMS para java</cite></p>
<ul>
<li><cite><a href="http://www.dotcms.org">www.dot<b>cms</b>.org</a></cite></li>
<li><cite><a href="http://www.lenya.apache.org">www.lenya.apache.org</a></cite></li>
<li><cite><a href="http://www.magnolia-cms.com">www.magnolia-<b>cms</b>.com</a></cite></li>
</ul>
<p><cite>¿Conocen algún otro que sea bueno? </cite></p>
<p><cite>Especialmente para la tecnología Java?</cite></p>
]]></content:encoded>
			<wfw:commentRss>http://www.probandocodigo.com/2010/05/que-es-content-management-systemcms.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pasos para obtener descuento en certificaci&#243;n de Java</title>
		<link>http://www.probandocodigo.com/2009/12/pasos-para-obtener-descuento-en-certificacin-de-java.html</link>
		<comments>http://www.probandocodigo.com/2009/12/pasos-para-obtener-descuento-en-certificacin-de-java.html#comments</comments>
		<pubDate>Mon, 14 Dec 2009 17:08:15 +0000</pubDate>
		<dc:creator>Benjamín Zepeda</dc:creator>
				<category><![CDATA[Aprendiendo Programación]]></category>
		<category><![CDATA[Solución a problemas]]></category>
		<category><![CDATA[Certificacion]]></category>
		<category><![CDATA[SCJA]]></category>
		<category><![CDATA[SCJP]]></category>
		<category><![CDATA[scna]]></category>
		<category><![CDATA[scsa]]></category>
		<category><![CDATA[scwcd]]></category>

		<guid isPermaLink="false">http://www.probandocodigo.com/2009/12/pasos-para-obtener-descuento-en-certificacin-de-java.html</guid>
		<description><![CDATA[
 
Pasos a seguir para obtener descuento en una certificación java.
**Entre los requisitos es ser estudiante.
**Tener capacidad para pagar en linea
    1- Ingresar al siguiente sitio para solicitar el voucher con el descuento del curso: http://saic.educationservicesgroup.com/
En el campo de nombre de la institución, ingresar en la que te encuentras actualmente.
En el &#34;Program [...]]]></description>
			<content:encoded><![CDATA[<p><b></b></p>
<p><a href="http://www.probandocodigo.com/wp-content/uploads/2009/12/promociones20y20descuentos.gif"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="promociones%20y%20descuentos" border="0" alt="promociones%20y%20descuentos" src="http://www.probandocodigo.com/wp-content/uploads/2009/12/promociones20y20descuentos_thumb.gif" width="236" height="229" /></a> </p>
<p><b>Pasos a seguir para obtener descuento en una certificación java.</b></p>
<p><strong>**Entre los requisitos es ser estudiante.</strong></p>
<p><strong>**Tener capacidad para pagar en linea</strong></p>
<p><strong></strong>    <br />1- Ingresar al siguiente sitio para solicitar el voucher con el descuento del curso: <a href="http://saic.educationservicesgroup.com/">http://saic.educationservicesgroup.com/</a></p>
<p>En el campo de nombre de la institución, ingresar en la que te encuentras actualmente.</p>
<p><strong>En el &quot;Program Name&quot; seleccionar la siguiente      <br />información:       <br />Escoge -&gt; SAI-US       <br />En el &quot;Program ID&quot; completa con:       <br />z5c4gf20</strong></p>
<p>2- Certificaciones disponibles con descuento, a USD40.</p>
<blockquote><p>· <b>Sun Certified Java Associate (SCJA)</b></p>
<p>· <b>Sun Certified Java Programmer (SCJP)</b></p>
<p>· <b>Sun Certified System Administrator (SCSA)</b></p>
<p>· <b>Sun Certified Network Administrator (SCNA)</b></p>
<p>· <b>Sun Certified Solaris Associate (SCSAS)</b></p>
<p>· <b>Sun Certified Web Component Developer (SCWCD)</b></p>
<p><strong>- Y MAS.</strong></p>
</blockquote>
<p>***Cuando sigas estos pasos debes tener una tarjeta de debito o crédito para poder pagar la certificación, o dinero en tu cuenta de paypal.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.probandocodigo.com/2009/12/pasos-para-obtener-descuento-en-certificacin-de-java.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>WebSphere Message Broker, Introducción</title>
		<link>http://www.probandocodigo.com/2009/11/websphere-message-broker-introduccin.html</link>
		<comments>http://www.probandocodigo.com/2009/11/websphere-message-broker-introduccin.html#comments</comments>
		<pubDate>Fri, 20 Nov 2009 19:56:30 +0000</pubDate>
		<dc:creator>Benjamín Zepeda</dc:creator>
				<category><![CDATA[Aprendiendo Programación]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[.Net]]></category>
		<category><![CDATA[Aprendiendo MQ Broker]]></category>
		<category><![CDATA[Broker]]></category>
		<category><![CDATA[Integracion de Aplicaciones]]></category>
		<category><![CDATA[Integracion de sistemas]]></category>
		<category><![CDATA[J2EE]]></category>
		<category><![CDATA[MQ Broker]]></category>
		<category><![CDATA[WebSphere Message Broker]]></category>

		<guid isPermaLink="false">http://www.probandocodigo.com/2009/11/websphere-message-broker-introduccin.html</guid>
		<description><![CDATA[&#160;
&#160;
&#160; WebSphere Message Broker, una tecnología de IBM que es relativamente nueva para muchos desarrolladores en el habla hispana, inclusive se puede verificar buscando MQ Broker en Bing o google, efectivamente se darán cuenta que no ha sido muy difundido.
WebSphere Message Broker es conocido en el entorno laboral como MQ Broker(cuando integra MQ) o únicamente [...]]]></description>
			<content:encoded><![CDATA[<p align="justify">&#160;</p>
<p align="justify"><a href="http://www.probandocodigo.com/wp-content/uploads/2009/11/message_broker.gif"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="message_broker" border="0" alt="message_broker" src="http://www.probandocodigo.com/wp-content/uploads/2009/11/message_broker_thumb.gif" width="538" height="198" /></a>&#160;</p>
<p align="justify">&#160; WebSphere Message Broker, una tecnología de IBM que es relativamente nueva para muchos desarrolladores en el habla hispana, inclusive se puede verificar buscando MQ Broker en Bing o google, efectivamente se darán cuenta que no ha sido muy difundido.</p>
<p align="justify">WebSphere Message Broker es conocido en el entorno laboral como MQ Broker(cuando integra MQ) o únicamente Broker, la función de este es incrementar la agilidad del negocio y optimizar los costos haciendo la integración de aplicaciones fácil.</p>
<p align="justify">Para explicar exactamente que hace pondré el siguiente ejemplo:</p>
<p align="justify">Existe una empresa multinacional, donde el equipo de IT es tan grande que está dividido incluso en los lenguajes que estos utilizan para el desarrollo de software.</p>
<p align="justify">El grupo 1 utiliza .Net</p>
<p align="justify">El grupo 2 utiliza Java</p>
<p align="justify">El grupo 3 utiliza AS400 (RPG)</p>
<p align="justify">Con el paso del tiempo cada grupo ha desarrollado una cantidad inimaginable de servicios y sistemas en cada herramienta, pero llega el día en el que un nuevo gerente de ventas desee que en un determinado sistema que está programado en java se utilicen servicios o se realicen procesos que ya están funcionando correctamente en el grupo 1 y grupo 3, los cuales utilizan .Net y AS400 (RPG) respectivamente.</p>
<p align="justify">A este punto seria costoso desarrollar un proceso que ya esta funcional en RPG o en .Net para crear un MashUp en una aplicación por lo que la forma más sencilla seria realizar una integración entre los tres grupos por medio de <strong>Enterprise Services Bus (ESB)</strong>, en este caso utilizaremos Broker.</p>
<p> <span id="more-282"></span>
<p align="justify">Preguntas comunes, </p>
<p align="justify">Por medio de que nos comunicamos con otra aplicación?</p>
<p align="justify">Por medio de mensajes, es de ahí el nombre de WebSphere <b>Message</b> Broker, el broker maneja estos mensajes y garantiza que el mensaje sea entregado al solicitante, mientras este mensaje no sea consumido no se elimina.</p>
<p align="justify">Un ejemplo seria, si 500 clientes envían mensajes al Broker desde distintas aplicaciones estos serán respondidos directamente a cada cliente, y si dicho cliente no va a traer el mensaje de respuesta el Broker decide cuanto tiempo espera para poder tenerlo, el tiempo puede ser desde segundos hasta ilimitado lo que garantizaría que el mensaje será respondido al cliente aunque este lo solicite una semana después.</p>
<p align="justify"><a href="http://www.probandocodigo.com/wp-content/uploads/2009/11/value_of_mb_on_zos1.jpg"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="value_of_mb_on_zos1" border="0" alt="value_of_mb_on_zos1" src="http://www.probandocodigo.com/wp-content/uploads/2009/11/value_of_mb_on_zos1_thumb.jpg" width="446" height="398" /></a> </p>
<p align="justify">Que mas hace el broker para hacer posible la integración?</p>
<p align="justify">El broker además de distribuir los mensajes también los transforma, por ejemplo si un sistema desarrollado en java envía una petición en XML y la aplicación que debe procesar esta información es RPG, entonces el Broker puede transformar el XML en una trama que sea entendible para RPG y así RPG procesa la información, posteriormente envía una trama y el Broker nuevamente la transforma, solo que esta vez la transforma en XML para que el sistema en java pueda convertirla fácilmente en un objeto y utilizar dicha información.</p>
<p align="justify"><a href="http://www.probandocodigo.com/wp-content/uploads/2009/11/ab20645a.gif"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="ab20645a" border="0" alt="ab20645a" src="http://www.probandocodigo.com/wp-content/uploads/2009/11/ab20645a_thumb.gif" width="346" height="517" /></a> </p>
<p align="justify">*He tratado de explicar lo que es esta tecnología sin usar ningún termino técnico, posteriormente espero estar hablando mas sobre esta tecnología.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.probandocodigo.com/2009/11/websphere-message-broker-introduccin.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Aprendiendo a programar creando historias con las animaciones 3D de los sims 2</title>
		<link>http://www.probandocodigo.com/2009/11/aprendiendo-a-programar-creando-historias-con-las-animaciones-3d-de-los-sims-2.html</link>
		<comments>http://www.probandocodigo.com/2009/11/aprendiendo-a-programar-creando-historias-con-las-animaciones-3d-de-los-sims-2.html#comments</comments>
		<pubDate>Wed, 18 Nov 2009 05:14:18 +0000</pubDate>
		<dc:creator>Benjamín Zepeda</dc:creator>
				<category><![CDATA[Aprendiendo Programación]]></category>
		<category><![CDATA[Alice programming]]></category>
		<category><![CDATA[aprendiendo programacion con alice]]></category>
		<category><![CDATA[programando los sims 2]]></category>
		<category><![CDATA[sims 2 programacion]]></category>

		<guid isPermaLink="false">http://www.probandocodigo.com/2009/11/aprendiendo-a-programar-creando-historias-con-las-animaciones-3d-de-los-sims-2.html</guid>
		<description><![CDATA[ 
 
Alice en un software diseñado para el aprendizaje de la programación, orientado a jóvenes que empiezan en el ambiente del desarrollo de software.
Mediante una interfaz de “drag and drop” el estudiante es capaz de aprender a programar en un ambiente de animación 3D, lo cual es muy entretenido en especial para los jóvenes o inclusive [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.probandocodigo.com/wp-content/uploads/2009/11/AliceSplash.jpg"><img class="aligncenter" style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="AliceSplash" src="http://www.probandocodigo.com/wp-content/uploads/2009/11/AliceSplash_thumb.jpg" border="0" alt="AliceSplash" width="302" height="193" /></a> </p>
<p> </p>
<p align="justify">Alice en un software diseñado para el aprendizaje de la programación, orientado a jóvenes que empiezan en el ambiente del desarrollo de software.</p>
<p align="justify">Mediante una interfaz de “drag and drop” el estudiante es capaz de aprender a programar en un ambiente de animación 3D, lo cual es muy entretenido en especial para los jóvenes o inclusive niños… aunque en lo personal siento que es para para una persona de cualquier edad que quiera iniciarse de una manera diferente.</p>
<p align="justify">Tienen una alianza con las personas de EA es por eso que usan las animaciones de los sims 2, en lo personal soy un admirador de los sims por lo que me gustaría crear una historia en programación con esas animaciones 3D <img src='http://www.probandocodigo.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p><span id="more-275"></span></p>
<p align="justify"><strong>Alice V2</strong></p>
<p align="justify"><a href="http://www.probandocodigo.com/wp-content/uploads/2009/11/aliceV2.jpg"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="aliceV2" src="http://www.probandocodigo.com/wp-content/uploads/2009/11/aliceV2_thumb.jpg" border="0" alt="aliceV2" width="260" height="260" /></a></p>
<p align="justify"> </p>
<p align="justify"><strong>Alice V3</strong> (Con los gráficos de los sims 2 <img src='http://www.probandocodigo.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> )</p>
<p align="justify"><a href="http://www.probandocodigo.com/wp-content/uploads/2009/11/aliceV3.jpg"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="aliceV3" src="http://www.probandocodigo.com/wp-content/uploads/2009/11/aliceV3_thumb.jpg" border="0" alt="aliceV3" width="260" height="260" /></a> </p>
<p align="justify">Se puede crear una historia por medio de la animación, un video o un juego.<img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px" title="resize" src="http://www.probandocodigo.com/wp-content/uploads/2009/11/resize_thumb.png" border="0" alt="resize" width="213" height="240" align="right" /></p>
<p><a href="http://www.probandocodigo.com/wp-content/uploads/2009/11/resize.png"></a></p>
<p> </p>
<p>Pueden ingresar al sitio mediante la pagina: <a title="http://www.alice.org/" href="http://www.alice.org/">http://www.alice.org/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.probandocodigo.com/2009/11/aprendiendo-a-programar-creando-historias-con-las-animaciones-3d-de-los-sims-2.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Validaciones en JavaScript para números y caracteres</title>
		<link>http://www.probandocodigo.com/2009/11/validaciones-en-javascript-para-nmeros-y-caracteres.html</link>
		<comments>http://www.probandocodigo.com/2009/11/validaciones-en-javascript-para-nmeros-y-caracteres.html#comments</comments>
		<pubDate>Mon, 16 Nov 2009 18:55:59 +0000</pubDate>
		<dc:creator>Benjamín Zepeda</dc:creator>
				<category><![CDATA[Aprendiendo Programación]]></category>
		<category><![CDATA[Solución a problemas]]></category>
		<category><![CDATA[como valida numeros decimales en javascript]]></category>
		<category><![CDATA[javascript validaciones]]></category>
		<category><![CDATA[javascript validaciones numericas]]></category>
		<category><![CDATA[validacion de caracteres en javascript]]></category>
		<category><![CDATA[Validaciones de numero en javascript]]></category>
		<category><![CDATA[validaciones en javascript]]></category>

		<guid isPermaLink="false">http://www.probandocodigo.com/2009/11/validaciones-en-javascript-para-nmeros-y-caracteres.html</guid>
		<description><![CDATA[&#160;
&#160;&#160;&#160;&#160; Este día por cosas del destino me toco validar un numero con dos decimales en java script, como muchos de los programadores no le ando prestando atención a estos códigos y mucho menos intento crearlos por mi cuenta, ya que para que perder un porcentaje de mi tiempo en crear algo que ya esta [...]]]></description>
			<content:encoded><![CDATA[<p align="justify">&#160;<img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="validator" border="0" alt="validator" src="http://www.probandocodigo.com/wp-content/uploads/2009/11/validator_thumb.jpg" width="244" height="244" /></p>
<p align="justify">&#160;&#160;&#160;&#160; Este día por cosas del destino me toco validar un numero con dos decimales en java script, como muchos de los programadores no le ando prestando atención a estos códigos y mucho menos intento crearlos por mi cuenta, ya que para que perder un porcentaje de mi tiempo en crear algo que ya esta creado y validado.</p>
<p align="justify">A continuación les dejo los siguientes códigos para validar números, caracteres y dinero en javascript.</p>
<ul>
<li>
<div align="justify">Validación en JavaScript de solo números enteros:</div>
</li>
</ul>
<div class="csharpcode">
<div style="border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px" id="codeSnippetWrapper">
<div style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px" id="codeSnippet">
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum1">   1:</span> <span style="color: #0000ff">function</span> soloEnteros(objeto, e){</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum2">   2:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum3">   3:</span>           <span style="color: #0000ff">var</span> keynum</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum4">   4:</span>           <span style="color: #0000ff">var</span> keychar</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum5">   5:</span>           <span style="color: #0000ff">var</span> numcheck</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum6">   6:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum7">   7:</span>           <span style="color: #0000ff">if</span>(window.<span style="color: #0000ff">event</span>){ <span style="color: #008000">/*/ IE*/</span></pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum8">   8:</span>             keynum = e.keyCode</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum9">   9:</span>           }</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum10">  10:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum11">  11:</span>           <span style="color: #0000ff">else</span> <span style="color: #0000ff">if</span>(e.which){ <span style="color: #008000">/*/ Netscape/Firefox/Opera/*/</span></pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum12">  12:</span>             keynum = e.which</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum13">  13:</span>           }</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum14">  14:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum15">  15:</span>           <span style="color: #0000ff">if</span>((keynum&gt;=35 &amp;&amp; keynum&lt;=37) ||keynum==8||keynum==9||keynum==46||keynum==39) {</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum16">  16:</span>             <span style="color: #0000ff">return</span> <span style="color: #0000ff">true</span>;</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum17">  17:</span>           }</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum18">  18:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum19">  19:</span>           <span style="color: #0000ff">if</span>((keynum&gt;=95&amp;&amp;keynum&lt;=105)||(keynum&gt;=48&amp;&amp;keynum&lt;=57)){</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum20">  20:</span>             <span style="color: #0000ff">return</span> <span style="color: #0000ff">true</span>;</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum21">  21:</span>           }<span style="color: #0000ff">else</span> {</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum22">  22:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum23">  23:</span>             <span style="color: #0000ff">return</span> <span style="color: #0000ff">false</span>;</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum24">  24:</span>           }</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum25">  25:</span>         }</pre>
<p><!--CRLF--></div>
</p></div>
</div>
<style type="text/css">
<p>.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
<ul>
<li>
<div align="justify">Validación en JavaScript de solo caracteres:</div>
</li>
</ul>
<div style="border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px" id="codeSnippetWrapper">
<div style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px" id="codeSnippet">
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum1">   1:</span> <span style="color: #0000ff">function</span> solocaracteres(objeto, e){</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum2">   2:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum3">   3:</span>          <span style="color: #0000ff">var</span> keynum</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum4">   4:</span>          <span style="color: #0000ff">var</span> keychar</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum5">   5:</span>          <span style="color: #0000ff">var</span> numcheck</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum6">   6:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum7">   7:</span>          <span style="color: #0000ff">if</span>(window.<span style="color: #0000ff">event</span>){ <span style="color: #008000">/*/ IE*/</span></pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum8">   8:</span>            keynum = e.keyCode</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum9">   9:</span>          }</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum10">  10:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum11">  11:</span>          <span style="color: #0000ff">else</span> <span style="color: #0000ff">if</span>(e.which){ <span style="color: #008000">/*/ Netscape/Firefox/Opera/*/</span></pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum12">  12:</span>            keynum = e.which</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum13">  13:</span>          }</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum14">  14:</span>         </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum15">  15:</span>          <span style="color: #0000ff">if</span>(keynum == 219 || keynum == 13 || keynum == 188){</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum16">  16:</span>            <span style="color: #0000ff">return</span> <span style="color: #0000ff">false</span>;</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum17">  17:</span>          }<span style="color: #0000ff">else</span> {</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum18">  18:</span>            <span style="color: #0000ff">return</span> <span style="color: #0000ff">true</span>;</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum19">  19:</span>          }</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum20">  20:</span>        }</pre>
<p><!--CRLF--></div>
</div>
<p><span id="more-220"></span></p>
<ul>
<li>
<div align="justify">Validación en JavaScript de dos decimales:</div>
</li>
</ul>
<div style="border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px" id="codeSnippetWrapper">
<div style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px" id="codeSnippet">
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum1">   1:</span> <span style="color: #0000ff">var</span> objeto2;     </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum2">   2:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum3">   3:</span> <span style="color: #0000ff">function</span> soloDinero(objeto, e){</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum4">   4:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum5">   5:</span>           <span style="color: #0000ff">var</span> keynum</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum6">   6:</span>           <span style="color: #0000ff">var</span> keychar</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum7">   7:</span>           <span style="color: #0000ff">var</span> numcheck</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum8">   8:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum9">   9:</span>           <span style="color: #0000ff">if</span>(window.<span style="color: #0000ff">event</span>){ <span style="color: #008000">/*/ IE*/</span></pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum10">  10:</span>             keynum = e.keyCode</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum11">  11:</span>           }</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum12">  12:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum13">  13:</span>           <span style="color: #0000ff">else</span> <span style="color: #0000ff">if</span>(e.which){ <span style="color: #008000">/*/ Netscape/Firefox/Opera/*/</span></pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum14">  14:</span>             keynum = e.which</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum15">  15:</span>           }</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum16">  16:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum17">  17:</span>          </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum18">  18:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum19">  19:</span>           <span style="color: #0000ff">if</span>((keynum&gt;=35 &amp;&amp; keynum&lt;=37) ||keynum==8||keynum==9||keynum==46||keynum==39) {</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum20">  20:</span>             <span style="color: #0000ff">return</span> <span style="color: #0000ff">true</span>;</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum21">  21:</span>           }</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum22">  22:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum23">  23:</span>           <span style="color: #0000ff">if</span>(keynum==190||keynum==110||(keynum&gt;=95&amp;&amp;keynum&lt;=105)||(keynum&gt;=48&amp;&amp;keynum&lt;=57)){</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum24">  24:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum25">  25:</span>             posicion = objeto.value.indexOf(<span style="color: #006080">'.'</span>);</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum26">  26:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum27">  27:</span>             <span style="color: #0000ff">if</span>(posicion==-1) {</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum28">  28:</span>               <span style="color: #0000ff">return</span> <span style="color: #0000ff">true</span>;</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum29">  29:</span>             }<span style="color: #0000ff">else</span> {                           </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum30">  30:</span>               <span style="color: #0000ff">if</span>(!(keynum==190||keynum==110)){</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum31">  31:</span>                 objeto2=objeto;</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum32">  32:</span>                 t = setTimeout(<span style="color: #006080">'dosDecimales()'</span>,150);</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum33">  33:</span>                 <span style="color: #0000ff">return</span> <span style="color: #0000ff">true</span>;</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum34">  34:</span>               }<span style="color: #0000ff">else</span>{</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum35">  35:</span>                 objeto2=<span style="color: #0000ff">null</span>;</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum36">  36:</span>                 <span style="color: #0000ff">return</span> <span style="color: #0000ff">false</span>;</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum37">  37:</span>               }</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum38">  38:</span>             }</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum39">  39:</span>           }<span style="color: #0000ff">else</span> {</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum40">  40:</span>             <span style="color: #0000ff">return</span> <span style="color: #0000ff">false</span>;</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum41">  41:</span>           }</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum42">  42:</span>         }</pre>
<p><!--CRLF--></div>
</div>
<ul>
<li>
<div align="justify">Validación en JavaScript de dinero:</div>
</li>
</ul>
<div style="border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px" id="codeSnippetWrapper">
<div style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px" id="codeSnippet">
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum1">   1:</span> <span style="color: #0000ff">function</span> dosDecimales(){    </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum2">   2:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum3">   3:</span>       <span style="color: #0000ff">var</span> objeto = objeto2;</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum4">   4:</span>       <span style="color: #0000ff">var</span> posicion = objeto.value.indexOf(<span style="color: #006080">'.'</span>);</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum5">   5:</span>       <span style="color: #0000ff">var</span> <span style="color: #0000ff">decimal</span> = 2;</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum6">   6:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum7">   7:</span>       <span style="color: #0000ff">if</span>(objeto.value.length - posicion &lt; <span style="color: #0000ff">decimal</span>){</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum8">   8:</span>         objeto.value = objeto.value.substr(0,objeto.value.length-1);                                        </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum9">   9:</span>       }<span style="color: #0000ff">else</span> {</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum10">  10:</span>         objeto.value = objeto.value.substr(0,posicion+<span style="color: #0000ff">decimal</span>+1);                                            </pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum11">  11:</span>       }</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum12">  12:</span>       <span style="color: #0000ff">return</span>;</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum13">  13:</span>     }</pre>
<p><!--CRLF--></div>
</div>
<p align="justify">&#160;</p>
<p align="justify">*Para la validación completa de un número con dos decimales deben usar la validación de dinero ya que esta manda a llamar internamente la de decimales.</p>
<p>Para llamarlos se puede realizar con el siguiente código:</p>
<div style="border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px" id="codeSnippetWrapper">
<div style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px" id="codeSnippet">
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum1">   1:</span> onkeydown=<span style="color: #006080">&quot;return soloDinero(this, event);&quot;</span></pre>
<p><!--CRLF--></div>
</div>
<p align="justify">&#160;</p>
<p align="justify">Cualquier consulta de el código favor comentarlo.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.probandocodigo.com/2009/11/validaciones-en-javascript-para-nmeros-y-caracteres.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Formato de fechas en java</title>
		<link>http://www.probandocodigo.com/2009/11/formato-de-fechas-en-java.html</link>
		<comments>http://www.probandocodigo.com/2009/11/formato-de-fechas-en-java.html#comments</comments>
		<pubDate>Mon, 16 Nov 2009 15:58:20 +0000</pubDate>
		<dc:creator>Benjamín Zepeda</dc:creator>
				<category><![CDATA[Aprendiendo Programación]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[fecha]]></category>
		<category><![CDATA[SimpleDateFormat]]></category>

		<guid isPermaLink="false">http://www.probandocodigo.com/2009/11/formato-de-fechas-en-java.html</guid>
		<description><![CDATA[Hace unos cuantos días me pregunte el porqué se dejo de usar el objeto date para convertir fechas, algunos programadores incluso arman las fechas separándolas y luego poniendo el siguiente código: 
&#160; 



   1: Date fecha = new Date();

   2: fecha.setDate(16);

   3: fecha.setMonth(11);

   4: fecha.setYear(2009);




.csharpcode, .csharpcode pre
{
	font-size: [...]]]></description>
			<content:encoded><![CDATA[<p align="justify">Hace unos cuantos días me pregunte el porqué se dejo de usar el objeto date para convertir fechas, algunos programadores incluso arman las fechas separándolas y luego poniendo el siguiente código: </p>
<p align="justify">&#160; </p>
<div align="left">
<div style="border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px" id="codeSnippetWrapper">
<div style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px" id="codeSnippet">
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum1">   1:</span> Date fecha = <span style="color: #0000ff">new</span> Date();</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum2">   2:</span> fecha.setDate(16);</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum3">   3:</span> fecha.setMonth(11);</pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum4">   4:</span> fecha.setYear(2009);</pre>
<p><!--CRLF--></div>
</p></div>
</div>
<style type="text/css">
<p>.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
<p align="justify">Sin embargo al hacer esto, aparecen advertencias debido a que esos métodos ya están “despreciados” es decir que en las nuevas versiones ya no se utilizan… </p>
<p align="justify"><a href="http://www.probandocodigo.com/wp-content/uploads/2009/11/091116092513200x73S1.jpg"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="091116-092513-200x73-S" border="0" alt="091116-092513-200x73-S" src="http://www.probandocodigo.com/wp-content/uploads/2009/11/091116092513200x73S_thumb1.jpg" width="204" height="77" /></a> </p>
<p align="justify">Así que como tenía tiempo investigue un poco, y encontré una forma que es más útil que esa y que la mayoría que conozco (si conocen una mejor comentarlaJ) y es la siguiente: </p>
<div style="border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; max-height: 200px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px" id="codeSnippetWrapper">
<div style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px" id="codeSnippet">
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum1">   1:</span> DateFormat formatter = <span style="color: #0000ff">new</span> SimpleDateFormat(<span style="color: #006080">&quot;yyyymmdd&quot;</span>); <span style="color: #008000">//El formato en el que obtenemos la fecha inicialmente</span></pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum2">   2:</span> Date date = (Date)formatter.parse(<span style="color: #006080">&quot;20091116&quot;</span>); <span style="color: #008000">//Se le pasa la fecha a la que queremos darle formato</span></pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum3">   3:</span> SimpleDateFormat formato = <span style="color: #0000ff">new</span> SimpleDateFormat(<span style="color: #006080">&quot;MM/dd/yyyy&quot;</span>); <span style="color: #008000">//Formato en que desamos la fecha</span></pre>
<p><!--CRLF--></p>
<pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &#39;Courier New&#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060" id="lnum4">   4:</span> String fechaConFormato = formato.format(date); //Obtenemos la fecha ya con el formato.</pre>
<p><!--CRLF--></div>
</div>
<p>Si alguien tiene alguna pregunta no dude en comentarla.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.probandocodigo.com/2009/11/formato-de-fechas-en-java.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Bing – El nuevo buscador de Microsoft</title>
		<link>http://www.probandocodigo.com/2009/06/bing-el-nuevo-buscador-de-microsoft.html</link>
		<comments>http://www.probandocodigo.com/2009/06/bing-el-nuevo-buscador-de-microsoft.html#comments</comments>
		<pubDate>Wed, 03 Jun 2009 04:21:54 +0000</pubDate>
		<dc:creator>Benjamín Zepeda</dc:creator>
				<category><![CDATA[Aprendiendo Programación]]></category>
		<category><![CDATA[Varios]]></category>
		<category><![CDATA[Bing]]></category>
		<category><![CDATA[Buscador]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://www.probandocodigo.com/2009/06/bing-el-nuevo-buscador-de-microsoft.html</guid>
		<description><![CDATA[ 
El nuevo buscador de Microsoft Bing ya está funcionando, aunque aparece en beta (algo que no es del otro mundo… mas para los usuarios de google) se ve bastante decente, talvez con el tiempo pueda llegar a ser la sombra de google aunque por el momento google sigue teniendo todo los meritos
La búsqueda de [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.probandocodigo.com/wp-content/uploads/2009/06/bing.jpg"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="bing" border="0" alt="bing" src="http://www.probandocodigo.com/wp-content/uploads/2009/06/bing-thumb.jpg" width="377" height="271" /></a> </p>
<p align="justify">El nuevo buscador de Microsoft Bing ya está funcionando, aunque aparece en beta (algo que no es del otro mundo… mas para los usuarios de google) se ve bastante decente, talvez con el tiempo pueda llegar a ser la sombra de google aunque por el momento google sigue teniendo todo los meritos</p>
<p align="justify">La búsqueda de imagen es bastante útil, así que les aconsejo que lo prueben. Soy de los que considera que siempre es bueno ver las dos partes antes de criticar.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.probandocodigo.com/2009/06/bing-el-nuevo-buscador-de-microsoft.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ganadores del sorteo</title>
		<link>http://www.probandocodigo.com/2009/05/ganadores-del-sorteo.html</link>
		<comments>http://www.probandocodigo.com/2009/05/ganadores-del-sorteo.html#comments</comments>
		<pubDate>Mon, 01 Jun 2009 03:35:49 +0000</pubDate>
		<dc:creator>Benjamín Zepeda</dc:creator>
				<category><![CDATA[Aprendiendo Programación]]></category>
		<category><![CDATA[Concursos]]></category>
		<category><![CDATA[Varios]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Sorteo]]></category>
		<category><![CDATA[Voucher para certificaciones]]></category>

		<guid isPermaLink="false">http://www.probandocodigo.com/2009/05/ganadores-del-sorteo.html</guid>
		<description><![CDATA[ 
&#160;
Ya he seleccionado a los ganadores del sorteo, ellos son:

Jose Luis Cuacuamoxtla Alcaide
Albert Morcillo Fulgencio
Gustavo Arredondo

Me comunicare con ustedes y gracias a todos por participar.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.probandocodigo.com/wp-content/uploads/2009/05/image9.png"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" border="0" alt="image" src="http://www.probandocodigo.com/wp-content/uploads/2009/05/image-thumb9.png" width="197" height="244" /></a> </p>
<p>&#160;</p>
<p>Ya he seleccionado a los ganadores del sorteo, ellos son:</p>
<ul>
<li>Jose Luis Cuacuamoxtla Alcaide</li>
<li>Albert Morcillo Fulgencio</li>
<li>Gustavo Arredondo</li>
</ul>
<p>Me comunicare con ustedes y gracias a todos por participar.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.probandocodigo.com/2009/05/ganadores-del-sorteo.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Explicando SOA</title>
		<link>http://www.probandocodigo.com/2009/05/explicando-soa.html</link>
		<comments>http://www.probandocodigo.com/2009/05/explicando-soa.html#comments</comments>
		<pubDate>Sat, 30 May 2009 05:29:00 +0000</pubDate>
		<dc:creator>Benjamín Zepeda</dc:creator>
				<category><![CDATA[Aprendiendo Programación]]></category>
		<category><![CDATA[Varios]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[soap]]></category>
		<category><![CDATA[web services]]></category>

		<guid isPermaLink="false">http://www.probandocodigo.com/2009/05/explicando-soa.html</guid>
		<description><![CDATA[
Nosotros dividimos el mndo de SOA en la capa de servicios de negocios y la capa de tuberías. Imagina un diagrama que muestra todo el software que corre en tu organización. Divídela en la capa de servicios de negocios y la capa de tuberías. La capa de servicios de negocios contiene toda la lógica de [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.probandocodigo.com/wp-content/uploads/2009/05/image8.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="http://www.probandocodigo.com/wp-content/uploads/2009/05/image-thumb8.png" width="240" height="244" /></a></p>
<p align="justify">Nosotros dividimos el mndo de SOA en la capa de servicios de negocios y la capa de tuberías. Imagina un diagrama que muestra todo el software que corre en tu organización. Divídela en la capa de servicios de negocios y la capa de tuberías. La capa de servicios de negocios contiene toda la lógica de negocios mientras que la capa de tubería es la que contiene los recursos de computadoras.</p>
<p align="justify">Los gerentes de empresas no necesitan entender la complicada capa de tuberías y todo lo que esta contiene, si cubrimos la capa de tuberías estaríamos dejando con un diagrama que muestra todos los servicios del negocio y las aplicaciones del software que esta provee, tanto las aplicaciones de tu organización como las que con las otros usuarios interactúan desde afuera (clientes externos).</p>
<p> <span id="more-171"></span>
<p align="justify">Mirando los recursos de software de tu organización desde este punto de vista, se estará capacitado para pensar sobre nuevas maneras de mejorar o explotar el software que la organización tiene.</p>
<p align="justify">¿Qué es SOA?</p>
<p align="justify">SOA es para construir aplicaciones empresariales.</p>
<p align="justify">Muchas aproximaciones legitimas a esta arquitectura de software existen y SOA no esta construido para todo tipo de software. SOA está planeado explícitamente para construir aplicaciones empresariales.</p>
<p align="justify">SOA es un componente de arquitectura al estilo de caja negra.</p>
<p align="justify">SOA esconde deliberadamente la complejidad hasta lo máximo posible, es por eso que el concepto de caja negra es incorporado a SOA. La caja negra permite la reutilización de existentes aplicaciones de negocio añadiendo un simple adaptador a ellas, no importando como estas estén construidas.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.probandocodigo.com/2009/05/explicando-soa.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sorteo de Vouchers para Examen de Certificación de Microsoft &#8211; Participa</title>
		<link>http://www.probandocodigo.com/2009/05/sorteo-de-vouchers-para-examen-de-certificacin-de-microsoft-participa.html</link>
		<comments>http://www.probandocodigo.com/2009/05/sorteo-de-vouchers-para-examen-de-certificacin-de-microsoft-participa.html#comments</comments>
		<pubDate>Fri, 22 May 2009 02:41:35 +0000</pubDate>
		<dc:creator>Benjamín Zepeda</dc:creator>
				<category><![CDATA[Aprendiendo Programación]]></category>
		<category><![CDATA[Concursos]]></category>
		<category><![CDATA[Programación En .NET]]></category>
		<category><![CDATA[Varios]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Sorteo]]></category>
		<category><![CDATA[Voucher para certificaciones]]></category>

		<guid isPermaLink="false">http://www.probandocodigo.com/2009/05/sorteo-de-vouchers-para-examen-de-certificacin-de-microsoft-participa.html</guid>
		<description><![CDATA[
Tengo dos vouchers que sirven para hacer prácticamente cualquier examen de una certificación de Microsoft(a los ganadores les enviare los exámenes que pueden realizar), estos vencen el 30 de Junio por lo que en el blog publicare a los ganadores el día 31 de Mayo para que tengan un tiempo relativamente prudente para hacer la [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.probandocodigo.com/wp-content/uploads/2009/05/image6.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" src="http://www.probandocodigo.com/wp-content/uploads/2009/05/image-thumb6.png" border="0" alt="image" width="278" height="331" /></a></p>
<p align="justify">Tengo dos vouchers que sirven para hacer prácticamente cualquier examen de una certificación de Microsoft(a los ganadores les enviare los exámenes que pueden realizar), estos vencen el 30 de Junio por lo que en el blog publicare a los ganadores el día 31 de Mayo para que tengan un tiempo relativamente prudente para hacer la certificación(es de escoger en la que tengan más conocimientos), las bases son simples solo dejen un comentario, no se olviden de poner su mail y su nombre.</p>
<p align="justify">Los exámenes se realizan en un Centro Prometric así que verifiquen cual les queda cerca.</p>
<p align="justify">En lo que me basare para escoger a los ganadores aun no lo sé <img src='http://www.probandocodigo.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> , puede ser al azar, por el comentario o les asignare un numero a cada uno.</p>
<p align="justify">Gracias por visitar mi blog y suerte a todos.</p>
<p align="justify">
<p align="right">Vouchers gracias a Oscar Calderon.</p>
<p align="justify"><a href="http://www.probandocodigo.com/wp-content/uploads/2009/05/image7.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; margin-left: 0px; border-top: 0px; margin-right: 0px; border-right: 0px" title="image" src="http://www.probandocodigo.com/wp-content/uploads/2009/05/image-thumb7.png" border="0" alt="image" width="140" height="103" align="right" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.probandocodigo.com/2009/05/sorteo-de-vouchers-para-examen-de-certificacin-de-microsoft-participa.html/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Para qué sirve la API JAXB</title>
		<link>http://www.probandocodigo.com/2009/05/para-qu-sirve-la-api-jaxb.html</link>
		<comments>http://www.probandocodigo.com/2009/05/para-qu-sirve-la-api-jaxb.html#comments</comments>
		<pubDate>Tue, 19 May 2009 02:24:00 +0000</pubDate>
		<dc:creator>Benjamín Zepeda</dc:creator>
				<category><![CDATA[Aprendiendo Programación]]></category>
		<category><![CDATA[Varios]]></category>
		<category><![CDATA[API JAXB]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.probandocodigo.com/2009/05/para-qu-sirve-la-api-jaxb.html</guid>
		<description><![CDATA[&#160;

&#160;&#160;&#160; La API JAXB es la tecnología de java que provee un API y una herramienta para ligar el esquema XML a una representación en código java.
Un esquema XML define los elementos que pueden aparecer en un documento XML, el esquema XML también define la firma y la relación entre los elementos. JAXB también provee [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p><a href="http://www.probandocodigo.com/wp-content/uploads/2009/05/clip-image0011.gif"><font color="#0000ff"></font><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="clip_image001" border="0" alt="clip_image001" src="http://www.probandocodigo.com/wp-content/uploads/2009/05/clip-image001-thumb1.gif" width="406" height="274" /></a></p>
<p align="justify">&#160;&#160;&#160; La API JAXB es la tecnología de java que provee un API y una herramienta para ligar el esquema XML a una representación en código java.</p>
<p align="justify">Un esquema XML define los elementos que pueden aparecer en un documento XML, el esquema XML también define la firma y la relación entre los elementos. JAXB también provee el método para <b>unmarshalling</b> y <b>marshalling</b>. El termino <b>unmarshalling</b> significa crear un árbol de contenido de un documento XML y el termino <b>marshalling</b> significa crear un documento XML de un árbol de contenido.</p>
<p> <span id="more-157"></span>
<p><a href="http://www.probandocodigo.com/wp-content/uploads/2009/05/clip-image0021.gif"><img style="display: block; float: none; margin-left: auto; margin-right: auto" title="clip_image002" alt="clip_image002" src="http://www.probandocodigo.com/wp-content/uploads/2009/05/clip-image002-thumb1.gif" width="402" height="261" /></a></p>
<p align="justify">El compilador de la API JAXB es usado para generar clases java para un documento XML. Entre las ventajas es que podemos usar la JAXB API para desarrollar una aplicación que pueda leer, manipular o recrear documentos XML.</p>
<p align="justify">Nosotros no tenemos la necesidad de desarrollar cualquier aplicación que será procesara un documento XML, como por ejemplo desarrollar una aplicación usando SAX y la DOM API para procesar un documento XML, la JAXB API trabaja como una capa abstracta entre java y un documento XML porque nosotros no necesitamos saber acerca la sintaxis o procesamiento de XML.</p>
<p align="justify">Trabajando con JAXB.</p>
<p align="justify">A continuación una breve descripción de los componentes que son usados mientras se procesa un documento XML son:</p>
<p align="justify"><strong>XML Chema:</strong></p>
<p align="justify">Describe la relación entre los elementos XML y el documento XML usando la sintaxis XML.</p>
<p align="justify"><strong>Binding Compiler:</strong></p>
<p align="justify">Genera un conjunto de clases java que representan un esquema. </p>
<p align="justify"><strong>Binding Declarations:</strong></p>
<p align="justify">Es un conjunto de reglas en las especificaciones de JAXB.</p>
<p align="justify"><strong>Binding Implementation Framework:</strong></p>
<p align="justify">Provee las interfaces para <b>marshalling</b>, <b>unmarshalling</b> y validar el contenido de un XML.</p>
<p align="justify"><strong>XML Input Document:</strong></p>
<p align="justify">Se refiere a el documento XML que es transferido a la JAXB API para que sea procesado.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.probandocodigo.com/2009/05/para-qu-sirve-la-api-jaxb.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Que es WSDL</title>
		<link>http://www.probandocodigo.com/2009/05/que-es-wsdl.html</link>
		<comments>http://www.probandocodigo.com/2009/05/que-es-wsdl.html#comments</comments>
		<pubDate>Thu, 14 May 2009 03:12:00 +0000</pubDate>
		<dc:creator>Benjamín Zepeda</dc:creator>
				<category><![CDATA[Aprendiendo Programación]]></category>
		<category><![CDATA[Varios]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[Servicios]]></category>
		<category><![CDATA[Web Service]]></category>
		<category><![CDATA[WSDL]]></category>

		<guid isPermaLink="false">http://www.probandocodigo.com/2009/05/que-es-wsdl.html</guid>
		<description><![CDATA[ 
WSDL = Web Services Description Lenguage
&#160;
WSDL es otro estándar del web services al igual que SOAP y UDDI, este está basado en el lenguaje XML y es el que define como los web services están descritos cuando son publicados en un registro.
La información de los web services es publicada en los registros como documentos [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.probandocodigo.com/wp-content/uploads/2009/05/image4.png" target="_blank"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="http://www.probandocodigo.com/wp-content/uploads/2009/05/image-thumb4.png" width="333" height="397" /></a> </p>
<p><strong>WSDL = Web Services Description Lenguage</strong></p>
<p align="justify">&#160;</p>
<p align="justify">WSDL es otro estándar del web services al igual que SOAP y UDDI, este está basado en el lenguaje XML y es el que define como los web services están descritos cuando son publicados en un registro.</p>
<p align="justify">La información de los web services es publicada en los registros como documentos WSDL. Un documento WSDL provee información al cliente que accede a los web services publicados, estos proveen información usando varios elementos.</p>
<p align="justify">Algunos de estos elementos son:</p>
<p> <span id="more-150"></span>
<ul>
<li>
<div align="justify"><strong><font color="#ff0000" size="3">types:</font></strong> Define diferentes tipos de datos que el web services soporta.</div>
</li>
</ul>
<ul>
<li>
<div align="justify"><font color="#ff0000" size="3"><strong>message:</strong></font> Define la estructura del mensaje que necesita implementar para comunicarse con un web service.</div>
</li>
</ul>
<ul>
<li>
<div align="justify"><strong><font color="#ff0000" size="3">portType:</font></strong> Define una o más operaciones preveidas por el web service.</div>
</li>
</ul>
<ul>
<li>
<div align="justify"><font color="#ff0000" size="3"><strong>binding:</strong></font> Define las especificaciones del formato y protocolo de un mensaje para un &quot;portType&quot; en particular, como SOAP.</div>
</li>
</ul>
<ul>
<li>
<div align="justify"><font color="#ff0000" size="3"><strong>service:</strong></font> Define una serie de puertos que representa el &quot;end points&quot; del web service. Los End points son similares a la dirección del web service que los clientes utilizan para comunicarse con el web service.</div>
</li>
</ul>
<p align="justify"><a href="http://www.probandocodigo.com/wp-content/uploads/2009/05/image5.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="http://www.probandocodigo.com/wp-content/uploads/2009/05/image-thumb5.png" width="232" height="244" /></a> </p>
<p align="justify">A continuación un ejemplo de una estructura basada de un documento WSDL:</p>
<div style="border-bottom: gray 1px solid; border-left: gray 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; max-height: 200px; font-size: 8pt; overflow: auto; border-top: gray 1px solid; cursor: text; border-right: gray 1px solid; padding-top: 4px">
<div style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   1:</span> <span style="color: #0000ff">&lt;</span><span style="color: #800000">definitions</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   2:</span>     <span style="color: #0000ff">&lt;</span><span style="color: #800000">type</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   3:</span>     ...</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   4:</span>     Aqui van los diferentes tipos de datos que son soportados por el web service.</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   5:</span>     ...</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   6:</span>     <span style="color: #0000ff">&lt;/</span><span style="color: #800000">types</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   7:</span>     <span style="color: #0000ff">&lt;</span><span style="color: #800000">message</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   8:</span>     ...</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   9:</span>     Aquí se define la estructura que el mensaje necesita implementar para comunicarse con un web service.</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  10:</span>     ...</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  11:</span>     <span style="color: #0000ff">&lt;/</span><span style="color: #800000">message</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  12:</span>     <span style="color: #0000ff">&lt;</span><span style="color: #800000">portType</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  13:</span>     ...</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  14:</span>     Aquí se definen una o más operaciones que provee el web service.</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  15:</span>     ...</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  16:</span>     <span style="color: #0000ff">&lt;/</span><span style="color: #800000">portType</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  17:</span>     <span style="color: #0000ff">&lt;</span><span style="color: #800000">binding</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  18:</span>     ...</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  19:</span>     Aquí se definen las especificaciones del formato y protocolo para un &quot;port Type&quot; en particular, como por ejemplo SOAP.</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  20:</span>     ...</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  21:</span>     <span style="color: #0000ff">&lt;/</span><span style="color: #800000">binding</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  22:</span>     <span style="color: #0000ff">&lt;</span><span style="color: #800000">service</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  23:</span>     ...</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  24:</span>     Define una serie de puertos que representan el &quot;end point&quot; del web services.</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  25:</span>     ...</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  26:</span>     <span style="color: #0000ff">&lt;/</span><span style="color: #800000">service</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  27:</span> <span style="color: #0000ff">&lt;/</span><span style="color: #800000">definitions</span><span style="color: #0000ff">&gt;</span></pre>
</p></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.probandocodigo.com/2009/05/que-es-wsdl.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>¿Que es SOAP?</title>
		<link>http://www.probandocodigo.com/2009/05/que-es-soap.html</link>
		<comments>http://www.probandocodigo.com/2009/05/que-es-soap.html#comments</comments>
		<pubDate>Thu, 14 May 2009 02:56:00 +0000</pubDate>
		<dc:creator>Benjamín Zepeda</dc:creator>
				<category><![CDATA[Aprendiendo Programación]]></category>
		<category><![CDATA[Varios]]></category>
		<category><![CDATA[Mensajeria]]></category>
		<category><![CDATA[soap]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.probandocodigo.com/2009/05/que-es-soap.html</guid>
		<description><![CDATA[&#160;
&#160;
SOAP = Services Object Access Protocol
&#160;
En el post anterior hable un poco sobre los web service, hoy empezare a hablar sobre SOAP que es uno de los estándares del web services, los otros son el UDDI y WSDl de los cuales hablare en otro post.
***Algunos terminos estan en ingles ya que asi los entenderan mejor [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p><a href="http://www.probandocodigo.com/wp-content/uploads/2009/05/image3.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="http://www.probandocodigo.com/wp-content/uploads/2009/05/image-thumb3.png" width="231" height="240" /></a>&#160;</p>
<p><strong>SOAP = Services Object Access Protocol</strong></p>
<p align="justify">&#160;</p>
<p align="justify">En el post anterior hable un poco sobre los web service, hoy empezare a hablar sobre SOAP que es uno de los estándares del web services, los otros son el UDDI y WSDl de los cuales hablare en otro post.</p>
<p align="justify">***Algunos terminos estan en ingles ya que asi los entenderan mejor y no se perderan a leerlos en otras paginas o libros.</p>
<p align="justify">SOAP es:</p>
<ul>
<li>
<div align="justify">Un protocolo estándar basado en los web services.</div>
</li>
<li>
<div align="justify">Un estándar xml usado para permitir la comunicación entre web services y clientes.</div>
</li>
<li>
<div align="justify">Este contiene un set de reglas serializadas que permite el envió y recepción de información.</div>
</li>
<li>
<div align="justify">Permite a diferentes empresas comunicarse e intercambiar información en mensajes SOAP.</div>
</li>
</ul>
<p> <span id="more-145"></span>
<p>&#160;</p>
<p align="justify">Entre las características de SOAP tenemos:</p>
<ul>
<li>
<div align="justify">Es independiente del lenguaje de programación</div>
</li>
<li>
<div align="justify">Es independiente de la plataforma</div>
</li>
<li>
<div align="justify">No requiere tecnologías en el “end points”</div>
</li>
<li>
<div align="justify">Es un protocolo orientado a objetos.</div>
</li>
</ul>
<p align="justify">Un mensaje SOAP consiste en los siguientes elementos:</p>
<ol>
<li>
<div align="justify">SOAP Envelope element</div>
</li>
<li>
<div align="justify">SOAP Header element</div>
</li>
<li>
<div align="justify">SOAP Body element</div>
</li>
</ol>
<h3>SOAP Envelope Element:</h3>
<p align="justify">Está en el directorio raíz de un mensaje SOAP, este elemento define los documentos XML como un mensaje SOAP.</p>
<p align="justify">Ejemplo:</p>
<div align="justify">
<div style="border-bottom: gray 1px solid; border-left: gray 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; max-height: 200px; font-size: 8pt; overflow: auto; border-top: gray 1px solid; cursor: text; border-right: gray 1px solid; padding-top: 4px">
<div style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060"></span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   2:</span> <span style="color: #0000ff">&lt;?</span><span style="color: #800000">xml</span> <span style="color: #ff0000">version</span><span style="color: #0000ff">=&quot;1.0&quot;</span>?<span style="color: #0000ff">&gt;</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   3:</span> <span style="color: #0000ff">&lt;</span><span style="color: #800000">soap:Envelope</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   4:</span> <span style="color: #ff0000">xmlns:soap</span><span style="color: #0000ff">=&quot;http://www.w3.org/2001/12/soap-envelope&quot;</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   5:</span> <span style="color: #ff0000">soap:encodingStyle</span><span style="color: #0000ff">=&quot;http://www.w3.org/2001/12/soap-encoding&quot;</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   6:</span>   ...</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   7:</span>   La informacion del mensaje va aqui.</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   8:</span>   ...</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   9:</span> <span style="color: #0000ff">&lt;/</span><span style="color: #800000">soap:Envelope</span><span style="color: #0000ff">&gt;</span></pre>
</p></div>
</p></div>
</div>
<p align="justify">&#160;</p>
<h3><strong>SOAP Header element:</strong></h3>
<p align="justify">Es usado para mandar meta información acerca de los mensajes SOAP. Este contiene información especifica de la aplicación, como la autenticación, transacción y pago de información relatada a el mensaje SOAP.</p>
<p align="justify">El SOAP header element necesita ser el primer hijo(o primer nudo) de el SOAP Envelope element.</p>
<h3>SOAP Body Element:</h3>
<p align="justify">Este contiene el mensaje que será comunicado entre dos aplicaciones. Es un elemento obligatorio que debe contener un mensaje SOAP. El SOAP Body element contiene especificaciones acerca del tipo de request hecho por el cliente, tales como Remote Procedure Calls (RPC).</p>
<p align="justify">El Body element también contiene un &quot;Fault element&quot; que es opcional el cual guarda los mensajes de error que han sido relacionados con el mensaje SOAP.</p>
<p align="justify">En el siguiente código esta el esqueleto completo de un mensaje SOAP.</p>
<div style="border-bottom: gray 1px solid; border-left: gray 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; max-height: 200px; font-size: 8pt; overflow: auto; border-top: gray 1px solid; cursor: text; border-right: gray 1px solid; padding-top: 4px">
<div style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   1:</span> <span style="color: #0000ff">&lt;?</span><span style="color: #800000">xml</span> <span style="color: #ff0000">version</span><span style="color: #0000ff">=&quot;1.0:&quot;</span>?<span style="color: #0000ff">&gt;</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   2:</span> <span style="color: #0000ff">&lt;</span><span style="color: #800000">soap:Envelope</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   3:</span>     <span style="color: #ff0000">xmlns:soap</span><span style="color: #0000ff">=&quot;http://www.w3.org/2001/12/soap-envelope&quot;</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   4:</span>     <span style="color: #ff0000">soap:encodingStyle</span><span style="color: #0000ff">=&quot;http://www.w3.org/2001/12/soap-encoding&quot;</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   5:</span>     <span style="color: #0000ff">&lt;</span><span style="color: #800000">soap:Header</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   6:</span>     ....</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   7:</span>     ....</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   8:</span>     Recordar que aqui esta la informacion de la aplicacion, como por ejemplo la transaccion.</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">   9:</span>     ....</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  10:</span>     ....</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  11:</span>     <span style="color: #0000ff">&lt;/</span><span style="color: #800000">soap:Header</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  12:</span>     <span style="color: #0000ff">&lt;</span><span style="color: #800000">soap:Body</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  13:</span>     ....    </pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  14:</span>         Aqui estan las especificacion del tipo request hecha por el cliente como RPC</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  15:</span>     ....</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  16:</span>     <span style="color: #0000ff">&lt;</span><span style="color: #800000">soap:Fault</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  17:</span>     ...</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  18:</span>     ...Informacion de errores </pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  19:</span>     ...</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  20:</span>     <span style="color: #0000ff">&lt;/</span><span style="color: #800000">soap:Fault</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  21:</span>     <span style="color: #0000ff">&lt;/</span><span style="color: #800000">soap:Body</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"><span style="color: #606060">  22:</span> <span style="color: #0000ff">&lt;/</span><span style="color: #800000">soap:Envelope</span><span style="color: #0000ff">&gt;</span></pre>
</p></div>
</div>
<p>&#160;</p>
<p>Cualquier duda o corrección dejar comentarios.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.probandocodigo.com/2009/05/que-es-soap.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
