<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>JavaScript SOAP Client</title><link>http://www.codeplex.com/JavaScriptSoapClient/Project/ProjectRss.aspx</link><description>By using a single little JavaScript library and, on the server side, simply exposing a Web Service with remote methods, you can use AJAX to create dynamic Web applications with no need for reloadin...</description><item><title>New Post: JavaScript SOAP Client and Google Desktop</title><link>http://www.codeplex.com/JavaScriptSoapClient/Thread/View.aspx?ThreadId=30400</link><description>&lt;div style="line-height: normal;"&gt;Hi,&lt;br&gt;
&lt;br&gt;
I was just playing around with the google desktop and tried to use the Javascript SOAP Client to call a webservice. Has anyone used the client from inside a google desktop gadget? Any experiences?&lt;br&gt;
&lt;br&gt;
One thing I can report is that the code for detecting the XmlHTTPRequest object doesn't run as-is. I had to comment out the part checking for ActiveX, and remove the reference to the &amp;quot;window&amp;quot; object, as it doesn't exist in the google gadget context.&lt;br&gt;
&lt;br&gt;
Cheers,&lt;br&gt;
Heiko&lt;br&gt;
&lt;/div&gt;</description><author>stoermer</author><pubDate>Fri, 27 Jun 2008 15:04:02 GMT</pubDate><guid isPermaLink="false">New Post: JavaScript SOAP Client and Google Desktop 20080627030402P</guid></item><item><title>New Post: Question about current Licence</title><link>http://www.codeplex.com/JavaScriptSoapClient/Thread/View.aspx?ThreadId=29524</link><description>&lt;div style="line-height: normal;"&gt;Two questions:&lt;br&gt;
1) When did the soapclient start using the GNU license ? When it was hosted on guru4 it didn't appear to have a GNU license....&lt;br&gt;
&lt;br&gt;
2) Can a non GNU application include the .js library, With a straight GNU license without the linking clause the answer would be no.&lt;br&gt;
However with the CC license I am unsure.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
&lt;br&gt;
Rob&lt;br&gt;
&lt;/div&gt;</description><author>free2create</author><pubDate>Thu, 12 Jun 2008 11:45:07 GMT</pubDate><guid isPermaLink="false">New Post: Question about current Licence 20080612114507A</guid></item><item><title>Commented Issue: Memory leak in IE7</title><link>http://www.codeplex.com/JavaScriptSoapClient/WorkItem/View.aspx?WorkItemId=16985</link><description>There is a memory leak that I have discovered in IE7. It is more obvious if requests to a webservice are being performed frequently &amp;#40;I make them at 3 sec intervals&amp;#41;.&lt;br /&gt;Comments: ** Comment from web user: costinbobes ** &lt;p&gt;When using async calls the memory usage keeps going up - as shown in the graph, while when using sync calls the memory usage is constant&lt;/p&gt;</description><author>costinbobes</author><pubDate>Tue, 10 Jun 2008 18:35:55 GMT</pubDate><guid isPermaLink="false">Commented Issue: Memory leak in IE7 20080610063555P</guid></item><item><title>Commented Issue: Memory leak in IE7</title><link>http://www.codeplex.com/JavaScriptSoapClient/WorkItem/View.aspx?WorkItemId=16985</link><description>There is a memory leak that I have discovered in IE7. It is more obvious if requests to a webservice are being performed frequently &amp;#40;I make them at 3 sec intervals&amp;#41;.&lt;br /&gt;Comments: ** Comment from web user: costinbobes ** &lt;p&gt;Process with async calls&lt;/p&gt;</description><author>costinbobes</author><pubDate>Tue, 10 Jun 2008 18:32:42 GMT</pubDate><guid isPermaLink="false">Commented Issue: Memory leak in IE7 20080610063242P</guid></item><item><title>Commented Issue: Memory leak in IE7</title><link>http://www.codeplex.com/JavaScriptSoapClient/WorkItem/View.aspx?WorkItemId=16985</link><description>There is a memory leak that I have discovered in IE7. It is more obvious if requests to a webservice are being performed frequently &amp;#40;I make them at 3 sec intervals&amp;#41;.&lt;br /&gt;Comments: ** Comment from web user: costinbobes ** &lt;p&gt;There is a memory leak that I have discovered in IE7. It is more obvious if requests to a webservice are being performed frequently &amp;#40;I make them at 3 sec intervals&amp;#41;. The issue is not present in Firefox. In IE7&amp;#47;XP it is only present for async calls, sync calls don&amp;#39;t seem to be causing the issue. &lt;/p&gt;</description><author>costinbobes</author><pubDate>Tue, 10 Jun 2008 18:16:30 GMT</pubDate><guid isPermaLink="false">Commented Issue: Memory leak in IE7 20080610061630P</guid></item><item><title>Created Issue: Memory leak in IE7</title><link>http://www.codeplex.com/JavaScriptSoapClient/WorkItem/View.aspx?WorkItemId=16985</link><description>There is a memory leak that I have discovered in IE7. It is more obvious if requests to a webservice are being performed frequently &amp;#40;I make them at 3 sec intervals&amp;#41;.&lt;br /&gt;</description><author>costinbobes</author><pubDate>Tue, 10 Jun 2008 18:13:59 GMT</pubDate><guid isPermaLink="false">Created Issue: Memory leak in IE7 20080610061359P</guid></item><item><title>CREATED ISSUE: SAP Portal, don't get result</title><link>http://www.codeplex.com/JavaScriptSoapClient/WorkItem/View.aspx?WorkItemId=16848</link><description>When you execute the soapclient under SAP Portal, sometimes don&amp;#39;t gets the result &amp;#40;even if the web method returns a Hello Wolrd&amp;#41;, always return a null value, I debbuged and found that the webmethod never are executed &amp;#40;I put a log on code behind&amp;#41;. To get work again must to logout and close all browser windows and log in again.&lt;br /&gt;</description><author>MiztliTwins</author><pubDate>Thu, 29 May 2008 14:43:03 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: SAP Portal, don't get result 20080529024303P</guid></item><item><title>NEW POST: Performance of node2object on IE7</title><link>http://www.codeplex.com/JavaScriptSoapClient/Thread/View.aspx?ThreadId=28577</link><description>&lt;div style="line-height: normal;"&gt;Hello,&lt;br&gt;
&lt;br&gt;
I'm trying to improve the performance of my webapp which uses this Javascript SOAP Client,&lt;br&gt;
so here is the results of running a Javascript profiler when using the Javascript SOAP Client:&lt;br&gt;
&lt;a href="http://www.pvv.ntnu.no/~andrearo/excanvas-silverlight-profiling.png"&gt;http://www.pvv.ntnu.no/~andrearo/excanvas-silverlight-profiling.png&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
As you can see of the results, 48% of the cumulative CPU time is spent&lt;br&gt;
in node2object(). The XML from the webservice contains an array with many elements.&lt;br&gt;
How could I improve the performance of parsing the XML?
&lt;/div&gt;</description><author>AndreasR</author><pubDate>Wed, 28 May 2008 20:02:41 GMT</pubDate><guid isPermaLink="false">NEW POST: Performance of node2object on IE7 20080528080241P</guid></item><item><title>NEW POST: Convert to C# for SilverLight 2.0</title><link>http://www.codeplex.com/JavaScriptSoapClient/Thread/View.aspx?ThreadId=25014</link><description>&lt;div class="wikidoc"&gt;
I have a request.&lt;br /&gt; &lt;br /&gt;Would it be possible to convert this code to C# so that SilverLight 2.0 could have a dynamic soap client?&lt;br /&gt;
&lt;/div&gt;</description><author>Dewey</author><pubDate>Mon, 31 Mar 2008 08:45:39 GMT</pubDate><guid isPermaLink="false">NEW POST: Convert to C# for SilverLight 2.0 20080331084539A</guid></item><item><title>CREATED ISSUE: Fix for Coldfusion web services</title><link>http://www.codeplex.com/JavaScriptSoapClient/WorkItem/View.aspx?WorkItemId=15776</link><description>Hi there,&lt;br /&gt;&lt;br /&gt;Just thought I&amp;#39;d mention an issue in the javascript soap client which prevents it being used to consume coldfusion webservices. &lt;br /&gt;&lt;br /&gt;Coldfusion webservices return xml containing &amp;#60;Return&amp;#62; tags rather than &amp;#60;Result&amp;#62; tags used in the default case. There is already an alternative &amp;#40;with a comment specific to PHP&amp;#41; for the tag &amp;#60;return&amp;#62; but an additional one is needed for the differing case - i.e.&amp;#58;&lt;br /&gt;&lt;br /&gt;if&amp;#40;nd.length &amp;#61;&amp;#61; 0&amp;#41;&lt;br /&gt;&amp;#9;nd &amp;#61; SOAPClient._getElementsByTagName&amp;#40;req.responseXML, method &amp;#43; &amp;#34;Return&amp;#34;&amp;#41;&amp;#59; &amp;#47;&amp;#47; Coldfusion web service&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;below line&amp;#58;&lt;br /&gt;&lt;br /&gt;var nd &amp;#61; SOAPClient._getElementsByTagName&amp;#40;req.responseXML, method &amp;#43; &amp;#34;Result&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;This fix works for versions 2.3 and 2.4. I&amp;#39;ve uploaded the 2.3 release with the fix - though it&amp;#39;s only this one line.&lt;br /&gt;&lt;br /&gt;Cheers, and thanks for the time and effort it took to make the client in the first place&amp;#33;&lt;br /&gt;&lt;br /&gt;Tom&lt;br /&gt;</description><author>loftx</author><pubDate>Mon, 24 Mar 2008 21:45:55 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: Fix for Coldfusion web services 20080324094555P</guid></item><item><title>NEW POST: How do I represent this class in JavaScript?</title><link>http://www.codeplex.com/JavaScriptSoapClient/Thread/View.aspx?ThreadId=24546</link><description>&lt;div class="wikidoc"&gt;
Hi,&lt;br /&gt;One of the services I need to use, uses the following for a method:&lt;br /&gt; &lt;br /&gt;  &amp;lt;soap:Body&amp;gt;&lt;br /&gt;    &amp;lt;SubmitMessage xmlns=&amp;quot;http://www.itcrowd.be/api&amp;quot;&amp;gt;&lt;br /&gt;      &amp;lt;message&amp;gt;&lt;br /&gt;        &amp;lt;Id&amp;gt;int&amp;lt;/Id&amp;gt;&lt;br /&gt;        &amp;lt;Title&amp;gt;string&amp;lt;/Title&amp;gt;&lt;br /&gt;        &amp;lt;Description&amp;gt;string&amp;lt;/Description&amp;gt;&lt;br /&gt;        &amp;lt;Snippets&amp;gt;&lt;br /&gt;          &amp;lt;Snippet&amp;gt;&lt;br /&gt;            &amp;lt;Id&amp;gt;int&amp;lt;/Id&amp;gt;&lt;br /&gt;            &amp;lt;Language&amp;gt;string&amp;lt;/Language&amp;gt;&lt;br /&gt;            &amp;lt;Body&amp;gt;string&amp;lt;/Body&amp;gt;&lt;br /&gt;          &amp;lt;/Snippet&amp;gt;&lt;br /&gt;          &amp;lt;Snippet&amp;gt;&lt;br /&gt;            &amp;lt;Id&amp;gt;int&amp;lt;/Id&amp;gt;&lt;br /&gt;            &amp;lt;Language&amp;gt;string&amp;lt;/Language&amp;gt;&lt;br /&gt;            &amp;lt;Body&amp;gt;string&amp;lt;/Body&amp;gt;&lt;br /&gt;          &amp;lt;/Snippet&amp;gt;&lt;br /&gt;        &amp;lt;/Snippets&amp;gt;&lt;br /&gt;      &amp;lt;/message&amp;gt;&lt;br /&gt;    &amp;lt;/SubmitMessage&amp;gt;&lt;br /&gt;  &amp;lt;/soap:Body&amp;gt;&lt;br /&gt; &lt;br /&gt;So I have to submit a Message.&lt;br /&gt; &lt;br /&gt;I had something like&lt;br /&gt; &lt;br /&gt;var message = new Object();&lt;br /&gt;message.Title = &amp;quot;some title&amp;quot;;&lt;br /&gt;message.Description = &amp;quot;some description&amp;quot;;&lt;br /&gt; &lt;br /&gt;message.Snippets = new Array();&lt;br /&gt;message.Snippets&lt;a href="http://www.codeplex.com/JavaScriptSoapClient/Wiki/View.aspx?title=0"&gt;0&lt;/a&gt;.Language = &amp;quot;C#&amp;quot;&lt;br /&gt;message.Snippets&lt;a href="http://www.codeplex.com/JavaScriptSoapClient/Wiki/View.aspx?title=0"&gt;0&lt;/a&gt;.Body = &amp;quot;some content&amp;quot;;&lt;br /&gt; &lt;br /&gt;parameters.Add(&amp;quot;message&amp;quot;, message);&lt;br /&gt; &lt;br /&gt;But that doesn't seem to work....&lt;br /&gt; &lt;br /&gt;
&lt;/div&gt;</description><author>timothyp</author><pubDate>Sun, 23 Mar 2008 23:50:02 GMT</pubDate><guid isPermaLink="false">NEW POST: How do I represent this class in JavaScript? 20080323115002P</guid></item><item><title>CREATED ISSUE: WSDL file and HTTP Errors</title><link>http://www.codeplex.com/JavaScriptSoapClient/WorkItem/View.aspx?WorkItemId=15463</link><description>One nice addition to this utility would be to read the WSDL from a local file.   Additionally, the script doesn&amp;#39;t handle HTTP errors.  It would be nice if it threw an error object based on the HTTP status.&lt;br /&gt;</description><author>rb124559</author><pubDate>Wed, 05 Mar 2008 15:13:33 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: WSDL file and HTTP Errors 20080305031333P</guid></item><item><title>NEW POST: Javascript SOAP using WSE security extensions?</title><link>http://www.codeplex.com/JavaScriptSoapClient/Thread/View.aspx?ThreadId=22907</link><description>&lt;div class="wikidoc"&gt;
 &lt;br /&gt;Hello,&lt;br /&gt; &lt;br /&gt;I am wondering if it is possible to use javascript to call a web service that was built with WSE2.0 security extensions.  From using this javascript client, it looks like the request is performed, but does this mean WSE security mechanisms are ignored altogether?  &lt;br /&gt; &lt;br /&gt;Any feedback would be great,&lt;br /&gt; &lt;br /&gt;Thanks&lt;br /&gt;
&lt;/div&gt;</description><author>ee_id</author><pubDate>Wed, 27 Feb 2008 01:56:52 GMT</pubDate><guid isPermaLink="false">NEW POST: Javascript SOAP using WSE security extensions? 20080227015652A</guid></item><item><title>NEW POST: WCF</title><link>http://www.codeplex.com/JavaScriptSoapClient/Thread/View.aspx?ThreadId=21437</link><description>&lt;div class="wikidoc"&gt;
I tried it, and it worked perfectly!  Here is the full code in the only changed method.&lt;br /&gt; &lt;br /&gt;SOAPClient._sendSoapRequest = function(url, method, parameters, async, callback, wsdl)&lt;br /&gt;{&lt;br /&gt;	// get namespace&lt;br /&gt;	var ns = (wsdl.documentElement.attributes&lt;a href="http://www.codeplex.com/JavaScriptSoapClient/Wiki/View.aspx?title=%22targetNamespace%22"&gt;&amp;quot;targetNamespace&amp;quot;&lt;/a&gt; + &amp;quot;&amp;quot; == &amp;quot;undefined&amp;quot;) ? wsdl.documentElement.attributes.getNamedItem(&amp;quot;targetNamespace&amp;quot;).nodeValue : wsdl.documentElement.attributes&lt;a href="http://www.codeplex.com/JavaScriptSoapClient/Wiki/View.aspx?title=%22targetNamespace%22"&gt;&amp;quot;targetNamespace&amp;quot;&lt;/a&gt;.value;&lt;br /&gt;	var actionNode = wsdl.selectNodes( &amp;quot;//wsdl:binding/wsdl:operation&lt;a href="http://www.codeplex.com/JavaScriptSoapClient/Wiki/View.aspx?title=%40name%3d%27%22%20%2b%20method%20%2b%20%22%27"&gt;@name='&amp;quot; + method + &amp;quot;'&lt;/a&gt;/soap:operation&amp;quot; ).item(0);&lt;br /&gt;	var soapAction = actionNode.attributes.getNamedItem( &amp;quot;soapAction&amp;quot; ).value;&lt;br /&gt; &lt;br /&gt;	// build SOAP request&lt;br /&gt;	var sr = &lt;br /&gt;				&amp;quot;&amp;lt;?xml version=\&amp;quot;1.0\&amp;quot; encoding=\&amp;quot;utf-8\&amp;quot;?&amp;gt;&amp;quot; +&lt;br /&gt;				&amp;quot;&amp;lt;soap:Envelope &amp;quot; +&lt;br /&gt;				&amp;quot;xmlns:xsi=\&amp;quot;http://www.w3.org/2001/XMLSchema-instance\&amp;quot; &amp;quot; +&lt;br /&gt;				&amp;quot;xmlns:xsd=\&amp;quot;http://www.w3.org/2001/XMLSchema\&amp;quot; &amp;quot; +&lt;br /&gt;				&amp;quot;xmlns:soap=\&amp;quot;http://schemas.xmlsoap.org/soap/envelope/\&amp;quot;&amp;gt;&amp;quot; +&lt;br /&gt;				&amp;quot;&amp;lt;soap:Body&amp;gt;&amp;quot; +&lt;br /&gt;				&amp;quot;&amp;lt;&amp;quot; + method + &amp;quot; xmlns=\&amp;quot;&amp;quot; + ns + &amp;quot;\&amp;quot;&amp;gt;&amp;quot; +&lt;br /&gt;				parameters.toXml() +&lt;br /&gt;				&amp;quot;&amp;lt;/&amp;quot; + method + &amp;quot;&amp;gt;&amp;lt;/soap:Body&amp;gt;&amp;lt;/soap:Envelope&amp;gt;&amp;quot;;&lt;br /&gt;	// send request&lt;br /&gt;	var xmlHttp = SOAPClient._getXmlHttp();&lt;br /&gt;	if (SOAPClient.userName &amp;amp;&amp;amp; SOAPClient.password){&lt;br /&gt;		xmlHttp.open(&amp;quot;POST&amp;quot;, url, async, SOAPClient.userName, SOAPClient.password);&lt;br /&gt;		// Some WS implementations (i.e. BEA WebLogic Server 10.0 JAX-WS) don't support Challenge/Response HTTP BASIC, so we send authorization headers in the first request&lt;br /&gt;		xmlHttp.setRequestHeader(&amp;quot;Authorization&amp;quot;, &amp;quot;Basic &amp;quot; + SOAPClient._toBase64(SOAPClient.userName + &amp;quot;:&amp;quot; + SOAPClient.password));&lt;br /&gt;	}&lt;br /&gt;	else&lt;br /&gt;		xmlHttp.open(&amp;quot;POST&amp;quot;, url, async);&lt;br /&gt;	var soapaction;&lt;br /&gt;	if(soapAction != null &amp;amp;&amp;amp; soapAction != &amp;quot;&amp;quot;) soapaction = soapAction;&lt;br /&gt;	else soapaction = ((ns.lastIndexOf(&amp;quot;/&amp;quot;) != ns.length - 1) ? ns + &amp;quot;/&amp;quot; : ns) + method;&lt;br /&gt;	xmlHttp.setRequestHeader(&amp;quot;SOAPAction&amp;quot;, soapaction);&lt;br /&gt;	xmlHttp.setRequestHeader(&amp;quot;Content-Type&amp;quot;, &amp;quot;text/xml; charset=utf-8&amp;quot;);&lt;br /&gt;	if(async) &lt;br /&gt;	{&lt;br /&gt;		xmlHttp.onreadystatechange = function() &lt;br /&gt;		{&lt;br /&gt;			if(xmlHttp.readyState == 4)&lt;br /&gt;				SOAPClient._onSendSoapRequest(method, async, callback, wsdl, xmlHttp);&lt;br /&gt;		}&lt;br /&gt;	}&lt;br /&gt;	xmlHttp.send(sr);&lt;br /&gt;	if (!async)&lt;br /&gt;		return SOAPClient._onSendSoapRequest(method, async, callback, wsdl, xmlHttp);&lt;br /&gt;}&lt;br /&gt;
&lt;/div&gt;</description><author>Dewey</author><pubDate>Sat, 09 Feb 2008 00:42:37 GMT</pubDate><guid isPermaLink="false">NEW POST: WCF 20080209124237A</guid></item><item><title>NEW POST: WCF</title><link>http://www.codeplex.com/JavaScriptSoapClient/Thread/View.aspx?ThreadId=21437</link><description>&lt;div class="wikidoc"&gt;
I found this on Code Project under the title of:  Won't work with WCF&lt;br /&gt; &lt;br /&gt;in WCF, Soap action is not always &amp;quot;namespace/MethodName&amp;quot;&lt;br /&gt;you have to use &lt;br /&gt;var actionNode = wsdl.selectNodes( &amp;quot;//wsdl:binding/wsdl:operation&lt;a href="http://www.codeplex.com/JavaScriptSoapClient/Wiki/View.aspx?title=%40name%3d%27%22%20%2b%20method%20%2b%20%22%27"&gt;@name='&amp;quot; + method + &amp;quot;'&lt;/a&gt;/soap:operation&amp;quot; ).item(0);&lt;br /&gt;var soapAction = actionNode.attributes.getNamedItem( &amp;quot;soapAction&amp;quot; ).value;&lt;br /&gt; &lt;br /&gt;in SOAPClient._sendSoapRequest, right after the first line ( var ns = ... )&lt;br /&gt;to get the real soap action. &lt;br /&gt; &lt;br /&gt;The link is shown below.&lt;br /&gt;http://www.codeproject.com/KB/ajax/JavaScriptSOAPClient.aspx?df=90&amp;amp;forumid=260173&amp;amp;exp=0&amp;amp;select=1811224&amp;amp;fid=260173&amp;amp;mpp=25&amp;amp;noise=3&amp;amp;sort=Position&amp;amp;view=Quick&amp;amp;fr=26&lt;br /&gt;
&lt;/div&gt;</description><author>Dewey</author><pubDate>Fri, 08 Feb 2008 22:44:51 GMT</pubDate><guid isPermaLink="false">NEW POST: WCF 20080208104451P</guid></item><item><title>NEW POST: WCF</title><link>http://www.codeplex.com/JavaScriptSoapClient/Thread/View.aspx?ThreadId=21437</link><description>&lt;div class="wikidoc"&gt;
Uhmmm.... im just trying it now with a WCF service and i am getting this error:&lt;br /&gt; &lt;br /&gt;The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).&lt;br /&gt; &lt;br /&gt;Could be the problem the wsdl:import that WCF generate??&lt;br /&gt; &lt;br /&gt;This is the WCF wsdl with witch im having problems:&lt;br /&gt;http://beta.verimas.com/api/v2.0/auth.svc?wsdl&lt;br /&gt; &lt;br /&gt;Any Idea?&lt;br /&gt; &lt;br /&gt;Thanks for all.&lt;br /&gt;
&lt;/div&gt;</description><author>villagra</author><pubDate>Mon, 04 Feb 2008 23:34:55 GMT</pubDate><guid isPermaLink="false">NEW POST: WCF 20080204113455P</guid></item><item><title>NEW POST: WCF</title><link>http://www.codeplex.com/JavaScriptSoapClient/Thread/View.aspx?ThreadId=21437</link><description>&lt;div class="wikidoc"&gt;
Is there any problem using this with WCF instead of ASMX web services?&lt;br /&gt;
&lt;/div&gt;</description><author>Dewey</author><pubDate>Sat, 02 Feb 2008 23:26:29 GMT</pubDate><guid isPermaLink="false">NEW POST: WCF 20080202112629P</guid></item><item><title>COMMENTED ISSUE: Current version accepts Int, not Float. I have code to fix.</title><link>http://www.codeplex.com/JavaScriptSoapClient/WorkItem/View.aspx?WorkItemId=15012</link><description>I&amp;#39;ve been trying to pass floats from Javascript to my web service. In the current version &amp;#40;1.04&amp;#41;, when it detects a Number, it casts it as INT within the SOAP&amp;#33; So my web service will not accept the request because the supposed INT has a decimal in it. &lt;br /&gt;&lt;br /&gt;Here is the code I modified so Float numbers could be detected and serialized into the SOAP request&amp;#58;&lt;br /&gt;&lt;br /&gt;OLD CODE&lt;br /&gt;87&amp;#58;  case &amp;#34;Number&amp;#34;&amp;#58;&lt;br /&gt;88&amp;#58;       type &amp;#61; &amp;#34;int&amp;#34;&amp;#59; break&amp;#59;&lt;br /&gt;&lt;br /&gt;REVISED CODE&lt;br /&gt;87&amp;#58; case &amp;#34;Number&amp;#34;&amp;#58;&amp;#9;&lt;br /&gt;88&amp;#58;&amp;#9;var theStringVersion &amp;#61; o&amp;#91;p&amp;#93;.toString&amp;#40;&amp;#41;&amp;#59;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&lt;br /&gt;89&amp;#58;&amp;#9;if &amp;#40;theStringVersion.indexOf&amp;#40;&amp;#34;.&amp;#34;&amp;#41; &amp;#62; -1&amp;#41;&lt;br /&gt;90&amp;#58;&amp;#9;    type &amp;#61; &amp;#34;float&amp;#34;&amp;#59;&lt;br /&gt;91&amp;#58;&amp;#9;else&lt;br /&gt;92&amp;#58;&amp;#9;    type &amp;#61; &amp;#34;int&amp;#34;&amp;#59; &lt;br /&gt;93&amp;#58;&amp;#9;break&amp;#59;&lt;br /&gt;&lt;br /&gt;I chose to convert the number to a string so I could detect a decimal point. This bugs me as inelegant, but it works&amp;#33;&lt;br /&gt;Comments: ** Comment from web user: aaronster ** &lt;p&gt;Something else that would be helpful for debugging purposes is better reporting of errors that bubble up through the callback. It&amp;#39;s tricky because you don&amp;#39;t know ahead of time whether the object coming back is a string, boolean, error object, or user defined type. The default Javascript alert&amp;#40;&amp;#41; response handles this by rendering strings and displaying the text &amp;#34;&amp;#91;object error&amp;#93;&amp;#34; which is very unhelpful. At first I stepped through the script to find the true error message hidden in the HTTP response, but then I modified the sample response alert&amp;#40;&amp;#41; method like this&amp;#58;&lt;br /&gt;&amp;#60;pre&amp;#62;&lt;br /&gt;function GeneratePieChart_callBack&amp;#40;r&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;&amp;#9;if &amp;#40;typeof&amp;#40;r&amp;#41; &amp;#61;&amp;#61; &amp;#34;string&amp;#34;&amp;#41;&lt;br /&gt;&amp;#9;&amp;#9;alert&amp;#40;r&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;else&lt;br /&gt;&amp;#9;&amp;#9;alert&amp;#40;r.name &amp;#43; &amp;#39; &amp;#39; &amp;#43; r.number &amp;#43; &amp;#39;&amp;#92;n&amp;#92;n&amp;#39; &amp;#43; r.message&amp;#41;&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;&amp;#60;&amp;#47;pre&amp;#62;&lt;/p&gt;&lt;p&gt;This is purely for initial testing the waters, but it can certainly eliminate a lot of headaches.&lt;/p&gt;</description><author>aaronster</author><pubDate>Sat, 02 Feb 2008 18:11:14 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: Current version accepts Int, not Float. I have code to fix. 20080202061114P</guid></item><item><title>COMMENTED ISSUE: Current version accepts Int, not Float. I have code to fix.</title><link>http://www.codeplex.com/JavaScriptSoapClient/WorkItem/View.aspx?WorkItemId=15012</link><description>I&amp;#39;ve been trying to pass floats from Javascript to my web service. In the current version &amp;#40;1.04&amp;#41;, when it detects a Number, it casts it as INT within the SOAP&amp;#33; So my web service will not accept the request because the supposed INT has a decimal in it. &lt;br /&gt;&lt;br /&gt;Here is the code I modified so Float numbers could be detected and serialized into the SOAP request&amp;#58;&lt;br /&gt;&lt;br /&gt;OLD CODE&lt;br /&gt;87&amp;#58;  case &amp;#34;Number&amp;#34;&amp;#58;&lt;br /&gt;88&amp;#58;       type &amp;#61; &amp;#34;int&amp;#34;&amp;#59; break&amp;#59;&lt;br /&gt;&lt;br /&gt;REVISED CODE&lt;br /&gt;87&amp;#58; case &amp;#34;Number&amp;#34;&amp;#58;&amp;#9;&lt;br /&gt;88&amp;#58;&amp;#9;var theStringVersion &amp;#61; o&amp;#91;p&amp;#93;.toString&amp;#40;&amp;#41;&amp;#59;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&lt;br /&gt;89&amp;#58;&amp;#9;if &amp;#40;theStringVersion.indexOf&amp;#40;&amp;#34;.&amp;#34;&amp;#41; &amp;#62; -1&amp;#41;&lt;br /&gt;90&amp;#58;&amp;#9;    type &amp;#61; &amp;#34;float&amp;#34;&amp;#59;&lt;br /&gt;91&amp;#58;&amp;#9;else&lt;br /&gt;92&amp;#58;&amp;#9;    type &amp;#61; &amp;#34;int&amp;#34;&amp;#59; &lt;br /&gt;93&amp;#58;&amp;#9;break&amp;#59;&lt;br /&gt;&lt;br /&gt;I chose to convert the number to a string so I could detect a decimal point. This bugs me as inelegant, but it works&amp;#33;&lt;br /&gt;Comments: ** Comment from web user: aaronster ** &lt;p&gt;Did I say v1.04&amp;#63;&amp;#63;&amp;#63; I meant version 2.4.&lt;/p&gt;</description><author>aaronster</author><pubDate>Sat, 02 Feb 2008 17:34:36 GMT</pubDate><guid isPermaLink="false">COMMENTED ISSUE: Current version accepts Int, not Float. I have code to fix. 20080202053436P</guid></item><item><title>CREATED ISSUE: Current version accepts Int, not Float. I have code to fix.</title><link>http://www.codeplex.com/JavaScriptSoapClient/WorkItem/View.aspx?WorkItemId=15012</link><description>I&amp;#39;ve been trying to pass floats from Javascript to my web service. In the current version &amp;#40;1.04&amp;#41;, when it detects a Number, it casts it as INT within the SOAP&amp;#33; So my web service will not accept the request because the supposed INT has a decimal in it. &lt;br /&gt;&lt;br /&gt;Here is the code I modified so Float numbers could be detected and serialized into the SOAP request&amp;#58;&lt;br /&gt;&lt;br /&gt;OLD CODE&lt;br /&gt;87&amp;#58;  case &amp;#34;Number&amp;#34;&amp;#58;&lt;br /&gt;88&amp;#58;       type &amp;#61; &amp;#34;int&amp;#34;&amp;#59; break&amp;#59;&lt;br /&gt;&lt;br /&gt;REVISED CODE&lt;br /&gt;87&amp;#58; case &amp;#34;Number&amp;#34;&amp;#58;&amp;#9;&lt;br /&gt;88&amp;#58;&amp;#9;var theStringVersion &amp;#61; o&amp;#91;p&amp;#93;.toString&amp;#40;&amp;#41;&amp;#59;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&lt;br /&gt;89&amp;#58;&amp;#9;if &amp;#40;theStringVersion.indexOf&amp;#40;&amp;#34;.&amp;#34;&amp;#41; &amp;#62; -1&amp;#41;&lt;br /&gt;90&amp;#58;&amp;#9;    type &amp;#61; &amp;#34;float&amp;#34;&amp;#59;&lt;br /&gt;91&amp;#58;&amp;#9;else&lt;br /&gt;92&amp;#58;&amp;#9;    type &amp;#61; &amp;#34;int&amp;#34;&amp;#59; &lt;br /&gt;93&amp;#58;&amp;#9;break&amp;#59;&lt;br /&gt;&lt;br /&gt;I chose to convert the number to a string so I could detect a decimal point. This bugs me as inelegant, but it works&amp;#33;&lt;br /&gt;</description><author>aaronster</author><pubDate>Sat, 02 Feb 2008 14:09:00 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: Current version accepts Int, not Float. I have code to fix. 20080202020900P</guid></item></channel></rss>