asbx support in AJAX ASP.NEThttp://forums.asp.net/t/1037437.aspx/1?asbx+support+in+AJAX+ASP+NETTue, 27 Feb 2007 22:49:10 -050010374371436205http://forums.asp.net/p/1037437/1436205.aspx/1?asbx+support+in+AJAX+ASP+NETasbx support in AJAX ASP.NET I 've just download the new AJAX ASP.NET beta, and I'm trying to figure out where is the Microsoft.Web.Services.BridgeBuildProvider . Does this beta still support the asbx files and bridges? Where is the documentation? 2006-10-21T10:32:54-04:001438439http://forums.asp.net/p/1037437/1438439.aspx/1?Re+asbx+support+in+AJAX+ASP+NETRe: asbx support in AJAX ASP.NET <p>somebody??? bridge and asbx files ... what's going here? [*-)]</p> 2006-10-23T22:01:00-04:001439764http://forums.asp.net/p/1037437/1439764.aspx/1?Re+asbx+support+in+AJAX+ASP+NETRe: asbx support in AJAX ASP.NET Unfortunately asbx and Bridge support are not in the current release. 2006-10-24T19:15:59-04:001440649http://forums.asp.net/p/1037437/1440649.aspx/1?Re+asbx+support+in+AJAX+ASP+NETRe: asbx support in AJAX ASP.NET <p>will they be available in the final release? I found them very very very useful ... please </p> <p>&nbsp;thanks</p> <p>&nbsp;</p> 2006-10-25T11:54:49-04:001449483http://forums.asp.net/p/1037437/1449483.aspx/1?Re+asbx+support+in+AJAX+ASP+NETRe: asbx support in AJAX ASP.NET <p>I'm waiting for them too. Especially after googling for answers and seeing and trying all related samples... which of course are working with the older previous release... but not with the beta one... If I wouldn't had found this post maybe I would still been trying to get it running...</p> <p>Will this feature be available in the next versions? I need to take decisions based on your answer.</p> <p>Thanks</p> 2006-11-01T17:13:12-05:001449725http://forums.asp.net/p/1037437/1449725.aspx/1?Re+asbx+support+in+AJAX+ASP+NETRe: asbx support in AJAX ASP.NET <p>Does something else take the place of the bridge (asbx) capability?&nbsp; Is there another way to use Javascript to call my remote web services?</p> 2006-11-01T19:58:52-05:001450005http://forums.asp.net/p/1037437/1450005.aspx/1?Re+asbx+support+in+AJAX+ASP+NETRe: asbx support in AJAX ASP.NET <p>You can always have your Web application make the Web Service calls and then hook up those calls with front end methods with local Web Service or PageMethods methods.</p> <p>I would argue that this is a more reliable mechanism anyway although it does require an extra layer of abstraction.</p> 2006-11-01T23:57:43-05:001451274http://forums.asp.net/p/1037437/1451274.aspx/1?Re+asbx+support+in+AJAX+ASP+NETRe: asbx support in AJAX ASP.NET <p>The extra layer of abstraction requires more time. I also think that the bridging support&nbsp;is an excellent feature.</p> <p>I need to build an application that calls in an asynchronuos way multiple web services from different domains...</p> 2006-11-02T19:07:57-05:001451283http://forums.asp.net/p/1037437/1451283.aspx/1?Re+asbx+support+in+AJAX+ASP+NETRe: asbx support in AJAX ASP.NET <p>Well the good news is due to customer feedback, it looks like the bridge feature will be brought back as part of the Value Add, so you'll be able to use bridges again...</p> <p>Hope that helps,<br> -Hao</p> 2006-11-02T19:12:57-05:001451365http://forums.asp.net/p/1037437/1451365.aspx/1?Re+asbx+support+in+AJAX+ASP+NETRe: asbx support in AJAX ASP.NET <p>For sure it helps[:D]. Thanks HaoK, these are&nbsp;really excellent&nbsp;news ( I was thrilled by the bridging part, it matched like a glove my needs&nbsp;) .</p> <p>Any ideea about the next date release which will support this feature? Or I should simply try to continue/start working on Atlas July CTP(I remember this is the&nbsp;before the last one release)&nbsp;and update what I have&nbsp;when the new version will be available?</p> <p>By Value Add you mean AJAX CTP? Or?...</p> <p>Thanks again</p> 2006-11-02T20:12:43-05:001451394http://forums.asp.net/p/1037437/1451394.aspx/1?Re+asbx+support+in+AJAX+ASP+NETRe: asbx support in AJAX ASP.NET <p>I do not think that there is something else in place of bridging ... </p> <p>As far as I know: you can still call web services using JS. Have a look at the following threads:</p> <p><a href="/thread/1449674.aspx">http://forums.asp.net/thread/1449674.aspx</a></p> <p><a href="/thread/1172624.aspx">http://forums.asp.net/thread/1172624.aspx</a></p> <p>Hope this helps.</p> <p>One thing I remember is that if you call a web service method using javascript, and the web service method is located under the same share as the web application, the method has to be defined in the .aspx file using &lt;script language=&quot;C#&quot;&gt;...&lt;/scipt&gt;, and this is because of an issue present in the Beta version only(someone please correct me if I'm wrong).</p> 2006-11-02T20:38:54-05:001455788http://forums.asp.net/p/1037437/1455788.aspx/1?Re+asbx+support+in+AJAX+ASP+NETRe: asbx support in AJAX ASP.NET <p>Hao,</p> <p><br> Great news that it is being brought back. &nbsp; I have a couple questions:&nbsp; 1) I was told it would be in beta 2, but have seen no documentation or mention of it with today's release?&nbsp; 2) Why was it removed?&nbsp; It seems like a very useful feature.&nbsp; Or, as Rick mentions above, is it considered a better practice to have a local webservice call to an external service?&nbsp; Seems like a lot of hassle...</p> <p>&nbsp;</p> <p>Thanks,</p> <p><br> Brian</p> <p>&nbsp;</p> <p>&nbsp;</p> 2006-11-07T14:28:01-05:001456436http://forums.asp.net/p/1037437/1456436.aspx/1?Re+asbx+support+in+AJAX+ASP+NETRe: asbx support in AJAX ASP.NET <p>It was added very late, so the docs didn't have time to be updated, but all the old Microsoft.Web.Services.Bridge* classes now live under Microsoft.Web.Preview.Services.*</p> <p>Hope that helps,<br> -Hao</p> 2006-11-07T22:06:42-05:001458031http://forums.asp.net/p/1037437/1458031.aspx/1?Re+asbx+support+in+AJAX+ASP+NETRe: asbx support in AJAX ASP.NET <p>Thanks Hao,&nbsp;</p> <p>&nbsp;</p> <p>We are trying to get our old bridge code working, and running into some confusing errors.&nbsp; It seems that the calls are working, the generated BridgeHandler is being hit, and the parameters are coming in correctly (we can see them in the debugger) but when it tries to convert the first item in the parameter Dictionary, it fails with a null reference error, even though that item (obj) can be seen in the debugger as having a value of &quot;1&quot;</p> <p>&nbsp;</p> <p>if (args.TryGetValue(&quot;businessPurposeTypeID&quot;, out obj)) {<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // Not sure why there are so many empty if statements<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; throw new System.ArgumentException(&quot;Argument not found: businessPurposeTypeID&quot;);<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; arg0 = ((int)(this.ConvertToType(obj, typeof(int))));</p> <p>&nbsp;</p> <p>The line with &quot;ConvertToType&quot; is the line that's failing.&nbsp; See the following stack trace returned in the javascript result:</p> <p>&nbsp;&quot;@_Error(false,&quot;Object reference not set to an instance of an object.&quot;,&quot;&nbsp;&nbsp; at Microsoft.Web.Preview.Services.BridgeHandler.ConvertToType(Object argValue, Type paramType)\r\n&nbsp;&nbsp; at MLDB.Website.WebServices.MLDBSearchBridge.CallServiceClassMethod(String method, Dictionary`2 args, ICredentials creds, String url) in c:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET Files\\mldb.website\\3254fa88\\e4e20f8b\\App_Web_-q50ig-3.0.cs:line 104\r\n&nbsp;&nbsp; at Microsoft.Web.Preview.Services.BridgeHandler.ProcessRequest()\r\n&nbsp;&nbsp; at Microsoft.Web.Preview.Services.BridgeHandler.ExecuteBridgePipeline()\r\n&nbsp;&nbsp; at Microsoft.Web.Preview.Services.BridgeHandler.Invoke(BridgeRequest request)\r\n&nbsp;&nbsp; at MLDB.Website.WebServices.MLDBSearchBridge.LoadListingResults(IDictionary args) in c:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET Files\\mldb.website\\3254fa88\\e4e20f8b\\App_Web_-q50ig-3.0.cs:line 70&quot;,&quot;System.NullReferenceException&quot;)Error_@&quot;</p> <p>&nbsp;</p> <p>Any suggestions?&nbsp;</p> <p>&nbsp;</p> 2006-11-08T22:46:25-05:001458132http://forums.asp.net/p/1037437/1458132.aspx/1?Re+asbx+support+in+AJAX+ASP+NETRe: asbx support in AJAX ASP.NET <p>I have a simpler question.&nbsp; I've downloaded and installed the ASP.NET AJAX 1.0 beta 2 release, and now I'm trying to simply get the mashup examples from the videos to work.&nbsp; Specifically the Amazon and Flickr example: http://download.microsoft.com/download/f/9/c/f9c970a0-0401-4863-9f03-981e513a2f1c/HDI-AtlasMashUp.wmv</p> <p>Using bridging for mashups is a central focus for me, so if someone has this working on the current release if they could post the code it would be great.&nbsp; I've tried to hack my way through with the migration guide and so forth, but when I load the page and click the button it can't find &quot;Samples&quot;, which is the namespace used by the two .asbx files.&nbsp; I have a feeling that it's a web.config problem or maybe an IIS config problem, but I'm working in the dark ...</p> <p>thanks,</p> <p>Robert&nbsp;</p> 2006-11-09T00:48:32-05:001458396http://forums.asp.net/p/1037437/1458396.aspx/1?Re+asbx+support+in+AJAX+ASP+NETRe: asbx support in AJAX ASP.NET <p>Hi, </p> <p>I'm trying to do the same thing as you... quite for some time now, and all I got so far is the results from Amazon WS call into a variable. But I still get JS errors. I am thinking that :</p> <font size="2"> <p>onMethodComplete, onMethodTimeout, onMethodError, userContext events have been renamed or should be used in a different way. </p> <p>I am actually moving the execution line while debugging to get this working.</p> <p>Are these events renamed? Can we have a small update of the 'HDI-AtlasMashUp-Demo' from <a href="http://download.microsoft.com/download/f/9/c/f9c970a0-0401-4863-9f03-981e513a2f1c/HDI-AtlasMashUp-Demo.zip"> http://download.microsoft.com/download/f/9/c/f9c970a0-0401-4863-9f03-981e513a2f1c/HDI-AtlasMashUp-Demo.zip</a>&nbsp;?</p> <p>Thanks</font><font color="#800000" size="2"></p> </font> 2006-11-09T06:31:23-05:001458473http://forums.asp.net/p/1037437/1458473.aspx/1?Re+asbx+support+in+AJAX+ASP+NETRe: asbx support in AJAX ASP.NET Hi 2006-11-09T07:53:08-05:001458480http://forums.asp.net/p/1037437/1458480.aspx/1?Re+asbx+support+in+AJAX+ASP+NETRe: asbx support in AJAX ASP.NET <p>Hi,</p> <p>I have the mashup of Amazon and Flickr working on Beta 2. This is what I've modified(commented):</p> <pre class="prettyprint">if (nextAmazonPage &gt; 1) parameters.Page = nextAmazonPage; Samples.AmazonPox.Search(parameters, //{ //onMethodComplete: OnCompleteAmazonSearch, //onMethodTimeout: //OnTimeout, //onMethodError: OnError, //userContext: &quot;Amazon Search via Get&quot; //} ); if (nextFlickrPage &gt; 1) parameters.Page = nextFlickrPage; Samples.Flickr.Search(parameters, //{ //onMethodComplete: OnCompleteFlickrSearch, //onMethodTimeout: //OnTimeout, //onMethodError: OnError, //userContext: &quot;Flickr Search via Get&quot; //} );</pre> <p>&nbsp;And also I have registered in IIS the .asbx and also added these in web.config under the &lt;system.web&gt;&lt;compilation&gt; tags:</p> <font color="#0000ff" size="2"> <p>&lt;</font><font color="#800000" size="2">buildProviders</font><font color="#0000ff" size="2">&gt;</p> <p>&lt;</font><font color="#800000" size="2">add</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">extension</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">.asbx</font><font size="2">&quot;</font><font color="#0000ff" size="2"> </font><font color="#ff0000" size="2">type</font><font color="#0000ff" size="2">=</font><font size="2">&quot;</font><font color="#0000ff" size="2">Microsoft.Web.Preview.Services.BridgeBuildProvider</font><font size="2">&quot;</font><font color="#0000ff" size="2">/&gt;</p> <p>&lt;/</font><font color="#800000" size="2">buildProviders</font><font color="#0000ff" size="2">&gt;</font></p> <p><font color="#0000ff" size="2">&nbsp;</p> </font> <p>Hope this helps.</p> <p>Adi</p> 2006-11-09T08:00:13-05:001458804http://forums.asp.net/p/1037437/1458804.aspx/1?Re+asbx+support+in+AJAX+ASP+NETRe: asbx support in AJAX ASP.NET <p>I too have been trying to get the bridge working again in the new beta, but no luck. I carefully followed all the installation instructions, etc. I get the following error:&nbsp;&quot;Object reference not set to an instance of an object&quot;. Here's my code:</p> <font size="2"> <p>MyNameSpace.SDMSSoapBridge.GetSDMSContent({ </font><font color="#800000" size="2">'guid'</font><font size="2"> : guid }, </font><font color="#0000ff" size="2">null</font><font size="2">, SDMSContentFailure);</font></p> <p><font size="2">This code worked before (of course, the old version included separate function names for timeout and error).</font></p> <p><font size="2">Ideas?</p> </font> 2006-11-09T13:50:33-05:001458847http://forums.asp.net/p/1037437/1458847.aspx/1?Re+asbx+support+in+AJAX+ASP+NETRe: asbx support in AJAX ASP.NET <p>Try some debugging on the line where the web service is called, by pressing F11 to enter in the method call. Then inspect the variables from that line to see if everything is fine.Your method call should look like this(if using Beta 2):</p> <font size="2"><font size="2"> <p>MyNamespace.SDMSSoapBridge.GetSDMSContent({ 'guid' : guid }, null, SDMSContentFailure, </font><font color="#800000" size="2">null</font><font size="2">);</font></p> <p><font size="2">&nbsp;</p> </font></font> 2006-11-09T14:11:01-05:00