<?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>Entrepreneur Geek &#187; OpenLaszlo</title>
	<atom:link href="http://www.mehtanirav.com/categories/technology/ria/openlaszlo/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mehtanirav.com</link>
	<description>Nirav Mehta on life, technology and future</description>
	<lastBuildDate>Sat, 24 Jul 2010 21:10:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Flash, Flex &amp; Web service problems</title>
		<link>http://www.mehtanirav.com/2007/09/07/flash-flex-web-service-problems</link>
		<comments>http://www.mehtanirav.com/2007/09/07/flash-flex-web-service-problems#comments</comments>
		<pubDate>Fri, 07 Sep 2007 14:14:58 +0000</pubDate>
		<dc:creator>Nirav</dc:creator>
				<category><![CDATA[Flex & Flash]]></category>
		<category><![CDATA[OpenLaszlo]]></category>
		<category><![CDATA[PHP]]></category>

	<!-- AutoMeta Start -->
	<category>deploying</category>
	<category>flex</category>
	<category>flash</category>
	<category>tough</category>
	<category>services</category>
	<category>based</category>
	<category>time</category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.mehtanirav.com/2007/09/07/flash-flex-web-service-problems/</guid>
		<description><![CDATA[I always have a tough time deploying a Flash/Flex based app that uses web services. And we use web services (or similar) on almost all projects! Every two or three months I come across a new problem with web service deployment and have to spend some long hours finding and fixing it. The post describes [...]


Related posts:<ol><li><a href='http://www.mehtanirav.com/2009/08/05/notification-components-in-flex' rel='bookmark' title='Permanent Link: Notification Components in Flex'>Notification Components in Flex</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I always have a tough time deploying a Flash/Flex based app that uses web services. And we use web services (or similar) on almost all projects! Every two or three months I come across a new problem with web service deployment and have to spend some long hours finding and fixing it. The post describes my latest encounter with webservice errors and the fundamental lessons I&#8217;ve learnt about debugging PHP web services used in Flash/Flex/OpenLaszlo.</p>
<p>So, my latest web service error message was:<br />
<code>Request implements version: http://schemas.xmlsoap.org/soap/envelope/ Response implements</code></p>
<p>Well, that&#8217;s the only part I could read in the Alert message I had setup for faults in the web service. This was followed by the famous &#8220;could not connect to endpoint&#8221; error.</p>
<p>I was surprised looking at the error. First thing I did was check the WSDL file. (Yes, am using SOAP webservices). Tried different ways to generate the WSDL from Zend Studio (I use PHP5 web services and Zend Studio for development). Nothing worked. BTW, the problem came only on the live server. The development and staging servers were working perfectly fine with the same files!</p>
<p>After solving the problem, I re-learnt the biggest lesson in web service debugging.</p>
<p><strong>Root cause of almost all web service related problems is some error / warning in your PHP (or other) code.</strong></p>
<p>In this case, the server was not able to include classes and other files that the webservice was using. My PHP based test cases helped solve the problem since they showed up the include errors PHP was having. So let me give you the lesson # 2.</p>
<p><strong>Make sure you write PHP test cases for your web services.</strong></p>
<p>These test cases will use the SoapClient class to call a method on your webservice. Display all errors in the test cases and you will be able to nail the source pretty quickly.</p>
<p>This one is yet unsolved for me! I want to find out a  <em>good</em> web service debugger. Something that allows me to pass arguments to the web service and see the entire request and response &#8211; including HTTP headers. The WebOrb admin panel does a great job at that, but I would like something that can easily handle complex data! Anything you know of?</p>
<p>Here are some earlier problems I have had with Webservices:</p>
<ul>
<li><a href="http://www.mehtanirav.com/2006/01/29/unable-to-connect-to-endpoint-flash-webservice-problem/">Unable to connect to endpoint</a></li>
<li><a href="http://www.mehtanirav.com/2006/01/28/php5-webservice-and-procedure-not-found-function-not-found-problems/">Procedure not found / Function not found problems</a></li>
<li><a href="http://www.mehtanirav.com/2005/11/07/wsdl-blues/">WSDL Blues</a></li>
<li><a href="http://www.mehtanirav.com/2005/11/04/debugging-webservices-in-laszlo/">Debugging webservices with OpenLaszlo</a></li>
<li><a href="http://www.mehtanirav.com/2005/11/24/funny-characters-webservices-and-utf8/">Unicode, Webservices and OpenLaszlo</a></li>
</ul>


<p>Related posts:<ol><li><a href='http://www.mehtanirav.com/2009/08/05/notification-components-in-flex' rel='bookmark' title='Permanent Link: Notification Components in Flex'>Notification Components in Flex</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.mehtanirav.com/2007/09/07/flash-flex-web-service-problems/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Laszlo code hinting with Dreamweaver</title>
		<link>http://www.mehtanirav.com/2006/07/22/laszlo-code-hinting-with-dreamweaver</link>
		<comments>http://www.mehtanirav.com/2006/07/22/laszlo-code-hinting-with-dreamweaver#comments</comments>
		<pubDate>Sat, 22 Jul 2006 15:14:09 +0000</pubDate>
		<dc:creator>Nirav</dc:creator>
				<category><![CDATA[OpenLaszlo]]></category>

	<!-- AutoMeta Start -->
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.mehtanirav.com/2006/07/22/laszlo-code-hinting-with-dreamweaver/</guid>
		<description><![CDATA[If you want to use Dreamweaver to edit your OpenLaszlo files (.lzx), here&#8217;s a forum thread that will give you all the tools needed. The technique involves: adding in a TagLibrary for LZX and then setting .lzx as an HTML extension so that Dreamweaver can open and edit .lzx files. Worked with Mac for me. [...]


Related posts:<ol><li><a href='http://www.mehtanirav.com/2009/12/14/don-miguel-ruizs-four-agreements-code-for-life-and-personal-development' rel='bookmark' title='Permanent Link: Don Miguel Ruiz&#8217;s Four Agreements &#8211; code for life and personal development'>Don Miguel Ruiz&#8217;s Four Agreements &#8211; code for life and personal development</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>If you want to use Dreamweaver to edit your OpenLaszlo files (.lzx), <a href="http://reloaded.laszlosystems.com/developers/community/forums/showthread.php?s=85aaf4134cb8ffaab71f87fff278efb8&#038;threadid=1242">here&#8217;s a forum thread</a> that will give you all the tools needed.</p>
<p>The technique involves: adding in a TagLibrary for LZX and then setting .lzx as an HTML extension so that Dreamweaver can open and edit .lzx files. Worked with Mac for me. The procedure mentioned is for Windows. </p>


<p>Related posts:<ol><li><a href='http://www.mehtanirav.com/2009/12/14/don-miguel-ruizs-four-agreements-code-for-life-and-personal-development' rel='bookmark' title='Permanent Link: Don Miguel Ruiz&#8217;s Four Agreements &#8211; code for life and personal development'>Don Miguel Ruiz&#8217;s Four Agreements &#8211; code for life and personal development</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.mehtanirav.com/2006/07/22/laszlo-code-hinting-with-dreamweaver/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pandora: Identifying music</title>
		<link>http://www.mehtanirav.com/2005/11/24/pandora-identifying-music</link>
		<comments>http://www.mehtanirav.com/2005/11/24/pandora-identifying-music#comments</comments>
		<pubDate>Thu, 24 Nov 2005 06:58:24 +0000</pubDate>
		<dc:creator>Nirav</dc:creator>
				<category><![CDATA[OpenLaszlo]]></category>
		<category><![CDATA[RIA]]></category>
		<category><![CDATA[Recommended Reading]]></category>

	<!-- AutoMeta Start -->
	<category></category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.mehtanirav.com/?p=96</guid>
		<description><![CDATA[Learnt about a few interesting sites recently. They are quite unique and show excellent opportunities. They will shoot into the limelight very soon! The first is Pandora. Pandora is a music discovery service that is based on the &#8220;Music Genome&#8221; project. Music Genome project was started about five years back to analyze the various types [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Learnt about a few interesting sites recently. They are quite unique and show excellent opportunities. They will shoot into the limelight very soon!</p>
<p><img src='/wp-content/pandora.png' alt='Pandora - discover music' class="alignright"/>The first is <a href="http://www.pandora.com">Pandora</a>.  Pandora is a music discovery service that is based on the &#8220;Music Genome&#8221; project. Music Genome project was started about five years back to analyze the various types of music. Based on this research, they created Pandora. </p>
<p>You simply enter a keyword search and Pandora will pull out music that you may like. As you keep listening and noting which music you like and which you don&#8217;t, it automatically pushes music that you may like. The discovery engine is really good, and you actually get to hear music that you would like!</p>
<p>One more interesting thing about Pandora, is that it is written in Laszlo! The application interface is fluid and friendly. They have put up a great example of what can be done with Laszlo. </p>
<p>Go check it out!<br />
<a href="http://technorati.com/tag/pandora" rel="tag"></a><a href="http://technorati.com/tag/laszlo" rel="tag"></a><a href="http://technorati.com/tag/openlaszlo" rel="tag"></a></p>
<p>Tomorrow: Identifying faces!</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.mehtanirav.com/2005/11/24/pandora-identifying-music/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Funny characters, Webservices and UTF8</title>
		<link>http://www.mehtanirav.com/2005/11/24/funny-characters-webservices-and-utf8</link>
		<comments>http://www.mehtanirav.com/2005/11/24/funny-characters-webservices-and-utf8#comments</comments>
		<pubDate>Wed, 23 Nov 2005 19:15:00 +0000</pubDate>
		<dc:creator>Nirav</dc:creator>
				<category><![CDATA[Glancer Project]]></category>
		<category><![CDATA[OpenLaszlo]]></category>
		<category><![CDATA[PHP]]></category>

	<!-- AutoMeta Start -->
	<category></category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.mehtanirav.com/2005/11/24/funny-characters-webservices-and-utf8/</guid>
		<description><![CDATA[I was importing the Foss.In speakers and talks data into Glancer, and it started giving me some strange errors. This is what I got in OpenLaszlo: error: java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8 sequence. And when I tried using PHP, this was the string: SOAP-ENV:Server SOAP-ERROR: Encoding: string 'some string here' is not a [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>I was importing the Foss.In speakers and talks data into Glancer, and it started giving me some strange errors. This is what I got in OpenLaszlo:<br />
<code>error: java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8 sequence. </code></p>
<p>And when I tried using PHP, this was the string:<br />
<code>SOAP-ENV:Server SOAP-ERROR: Encoding:  string 'some string here' is not a valid utf-8 string</code></p>
<p>So I looked up what&#8217;s causing this. First I thought it would be MySQL. I had mixed up collation order on different tables. Some were the default latin_swedish_ci, some were utf8_general_ci and some were utf8_unicode_ci. I changed all the tables and fields to utf8_unicode_ci first. But that did not solve the problem!</p>
<p>This is the time when I switched to PHP to test. And found that the problem was because the string in the data was not a proper Unicode / UTF8 string. I checked up if this is due to the size of the string &#8211; I had <code>text</code> data types. But well, that wasn&#8217;t the problem. Then I discovered the problem was coming up because of some funny characters in the text.</p>
<p>Primarily, the &#8220;auto convert&#8221; characters that Word typically adds up. E.g. the double quotes getting converted to inverted double quotes, three dots to an ellipsis, the TradeMark, so and so forth. This was not acceptable to the webservice!</p>
<p>This was strange to me, as Unicode should support any character in the world, but I just went ahead and removed all such characters and things started working!</p>
<p>FYI, here are the characters that I replaced:<br />
<code>”<br />
“<br />
’<br />
™<br />
…<br />
•<br />
‘<br />
—<br />
–<br />
</code></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.mehtanirav.com/2005/11/24/funny-characters-webservices-and-utf8/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>OpenLaszlo &#8211; documentation typos</title>
		<link>http://www.mehtanirav.com/2005/11/18/openlaszlo-documentation-typos</link>
		<comments>http://www.mehtanirav.com/2005/11/18/openlaszlo-documentation-typos#comments</comments>
		<pubDate>Fri, 18 Nov 2005 16:40:58 +0000</pubDate>
		<dc:creator>Nirav</dc:creator>
				<category><![CDATA[OpenLaszlo]]></category>

	<!-- AutoMeta Start -->
	<category></category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.mehtanirav.com/2005/11/18/openlaszlo-documentation-typos/</guid>
		<description><![CDATA[This is really a small thing, but can cost you a few minutes to figure out! The OpenLaszlo documentation has a few typos. The first I noticed, was the Debug.Write() instead of Debug.write(). There are other case mistakes like that. Generally these typos occur in the examples provided. If you see the LZX Reference, the [...]


Related posts:<ol><li><a href='http://www.mehtanirav.com/2009/12/17/coding-clean-and-semantic-templates' rel='bookmark' title='Permanent Link: Coding Clean and Semantic Templates'>Coding Clean and Semantic Templates</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>This is really a small thing, but can cost you a few minutes to figure out! The OpenLaszlo documentation has a few typos. The first I noticed, was the <code>Debug.Write()</code> instead of <code>Debug.write()</code>. There are other case mistakes like that. Generally these typos occur in the examples provided. If you see the LZX Reference, the actual method description will have proper method name, but the example at the top may contain wrongly typed method names. </p>
<p>Apart from the Debug.Write, the <code>LzBrowzer.loadURL() </code> is mentioned as <code>LzBrowzer.LoadURL() </code>. Now if you are like me, you will simply copy the code from an example and use it in your project. Assuming it would work. And when it doesn&#8217;t you are lost why does it not find a method with the name that you specified. </p>
<p>So keep this in mind!</p>
<p>BTW, I have a lot of other tips / tricks / feedback on OpenLaszlo&#8230; I am just waiting for <a href="http://www.glancer.net/">Glancer</a> to get over, so that I can write all of it!</p>
<p><a href="http://technorati.com/tag/openlaszlo" rel="tag"></a></p>


<p>Related posts:<ol><li><a href='http://www.mehtanirav.com/2009/12/17/coding-clean-and-semantic-templates' rel='bookmark' title='Permanent Link: Coding Clean and Semantic Templates'>Coding Clean and Semantic Templates</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.mehtanirav.com/2005/11/18/openlaszlo-documentation-typos/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Debugging Webservices in Laszlo</title>
		<link>http://www.mehtanirav.com/2005/11/04/debugging-webservices-in-laszlo</link>
		<comments>http://www.mehtanirav.com/2005/11/04/debugging-webservices-in-laszlo#comments</comments>
		<pubDate>Fri, 04 Nov 2005 10:10:37 +0000</pubDate>
		<dc:creator>Nirav</dc:creator>
				<category><![CDATA[Glancer Project]]></category>
		<category><![CDATA[OpenLaszlo]]></category>

	<!-- AutoMeta Start -->
	<category></category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.mehtanirav.com/2005/11/04/debugging-webservices-in-laszlo/</guid>
		<description><![CDATA[Have been working on web services with Laszlo and I am hitting on some errors! Guess they will be helpful for anybody who&#8217;s going to use this. Background We are using the SOAP methods for consuming web services. Also using the remotecall tags. Error 1: ws1.lzx:108: reference to undefined property WARNING: ws1.lzx:108: reference to undefined [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Have been working on web services with Laszlo and I am hitting on some errors! Guess they will be helpful for anybody who&#8217;s going to use this.</p>
<p><strong>Background</strong><br />
We are using the SOAP methods for consuming web services. Also using the <code>remotecall</code> tags. </p>
<p><strong>Error 1: ws1.lzx:108: reference to undefined property</strong><br />
<code>WARNING: ws1.lzx:108: reference to undefined property 'checkEmailId'<br />
WARNING: ws1.lzx:108: undefined object does not have a property 'invoke'<br />
«LzWarning#10| WARNING: ws1.lzx:108: reference to undefined property...» {<br />
  file: ws1.lzx<br />
  line: 108<br />
  message: «LzMessage(46)#12| "reference to undefined property \'checkEmailId\'...»<br />
}</code></p>
<p>This error comes up when you do not have <code>&lt;remotecall&gt;</code>&#8216;s defined for your web service methods. Ensure you have these stubs defined for ALL methods in the web service AND that the parameter counts match. &#8220;checkEmailId&#8221; is the method I was trying to call here, but there was not <em>remotecall</em> stub defined for it.</p>
<p><strong>Error 2: reference to undefined property &#8216;message&#8217;</strong><br />
<code>WARNING: rpc/rpc.lzx:296: reference to undefined property 'message'<br />
error: «undefined»<br />
«LzWarning#10| WARNING: rpc/rpc.lzx:296: reference to undefined prop...» {<br />
  file: rpc/rpc.lzx<br />
  line: 296<br />
  message: «LzMessage(41)#11| "reference to undefined property \'message\'"»<br />
} </code></p>
<p>This error occurs when you have a <em>remotecall</em> stub for the method, but the parameters do not match with the web service. Ensure the number of parameters match correctly with the web service.</p>
<p><strong>Error 3: Object hasn&#8217;t property</strong><br />
<code>error: SOAP-ERROR: Encoding: object hasn't 'xyz' property</code></p>
<p>This error occurs when your WSDL specifies a property to be there for the returning object, but the object actually does not have it. You may need to refresh your WSDL or check your webservice code.</p>
<p><strong>Error 4: data source error for soap</strong><br />
<code>error: data source error for soap://soap: SAXException: The markup in the document following the root element must be well-formed. </code></p>
<p>As the error suggests, the WSDL was not a valid XML document. Most probably this means there was an error in your code that prevented the WSDL from generating. E.g. a parse / syntax error in your webservice file. </p>
<blockquote><p>
<strong>Tip</strong><br />
If you have the Debug panel open while you are viewing your LZX file, you can enter some code in the small text box and hit &#8220;eval&#8221; to execute it. I have found it quite useful. When working with webservices, I use it to reinitialize my webservice after making a few changes on the backend. This way, I do not have to reload the whole LZX file. I do it like this:<br />
<code>canvas.glancerService.init()</code>
</p></blockquote>
<p><strong>I will add more things here as I hit upon more errors <img src='http://www.mehtanirav.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </strong></p>
<p><a href="http://technorati.com/tag/openlaszlo" rel="tag"></a><a href="http://technorati.com/tag/laszlo" rel="tag"></a><a href="http://technorati.com/tag/ria" rel="tag"></a><a href="http://technorati.com/tag/soap" rel="tag"></a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.mehtanirav.com/2005/11/04/debugging-webservices-in-laszlo/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>OpenLaszlo</title>
		<link>http://www.mehtanirav.com/2005/10/11/openlaszlo</link>
		<comments>http://www.mehtanirav.com/2005/10/11/openlaszlo#comments</comments>
		<pubDate>Tue, 11 Oct 2005 03:50:27 +0000</pubDate>
		<dc:creator>Nirav</dc:creator>
				<category><![CDATA[Glancer Project]]></category>
		<category><![CDATA[OpenLaszlo]]></category>

	<!-- AutoMeta Start -->
	<category></category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.mehtanirav.com/?p=39</guid>
		<description><![CDATA[Macromedia has Flex. Flex is a set of tools and technologies to allow developers to easily build rich internet applications &#8211; without the need to learn the Flash authoring environment. Using an XML file to control the user interface, and with interweaved / external Actionscript code, developers can create compelling applications online. Flex is great [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.macromedia.com/software/flex/">Macromedia has Flex</a>. Flex is a set of tools and technologies to allow developers to easily build rich internet applications &#8211; without the need to learn the Flash authoring environment. Using an XML file to control the user interface, and with interweaved / external Actionscript code, developers can create compelling applications online. </p>
<p>Flex is great as a product and Macromedia is working on to make it better, and probably more cost effective <img src='http://www.mehtanirav.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  But I am not talking about Flex here&#8230;</p>
<p>It&#8217;s about OpenLaszlo.</p>
<p><a href="http://www.laszlosystems.com/">Laszlo Systems</a> created Laszlo a while ago and open sourced it as <a href="http://www.openlaszlo.org/">OpenLaszlo</a>. OpenLaszlo is very similar to Flex &#8211; XML based language to create RIA, deployed on the web. A good lineup of companies is already using Laszlo &#8211; Earthlink, Yahoo, La Quinta etc. </p>
<p>Laszlo has been around for long. They started out with developing smaller things and the project has grown well over the years. The open source version is generating good interest &#8211; especially because of the &#8220;free of cost&#8221; tag, as compared to the hefty price of Flex. I have not dabbled into OpenLaszlo so far, but it&#8217;s time to jump in.</p>
<p>We are developing <a href="mehtanirav.com/2005/10/07/glancer-conference-planner-and-friend-finder-app-specs/">Glancer</a> using OpenLaszlo. And I will post things as I learn them!</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.mehtanirav.com/2005/10/11/openlaszlo/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
