Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: Professional Ajax ISBN: 978-0-471-77778-6
This is the forum to discuss the Wrox book Professional Ajax by Nicholas C. Zakas, Jeremy McPeak, Joe Fawcett; ISBN: 9780471777786
Important: For the new 2nd edition of this book, please post here instead: [url="http://p2p.wrox.com/forum.asp?FORUM_ID=307"]http://p2p.wrox.com/forum.asp?FORUM_ID=307[/url]
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Ajax ISBN: 978-0-471-77778-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 16th, 2006, 12:06 PM
Authorized User
Join Date: Jun 2003
Location: pgh, pa, USA.
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to drdexter33 Send a message via MSN to drdexter33
Default Webservice oResult Error

On pages 178 and 179 the authors have examples calling web services directly from a client side AJAX call using webservice.htc in the Internet Explorer approach.

I downloaded the .htc from the MSDN site and added it to my project root.

In my page I am calling 2 different web services.
1). To update one specific value with one web service.
2). To update another specific value with another web service.

Scenario #1 works fine.

However, when I call scenario #2, I get an error when calling a second method I wrote, analagous to the performSpecificOperation(p1,p2,p3) on the top of page 178.

Here's the oResult object contents:

oResult.errorDetail.string="Invalid argument"

Here's my version of the performSpecificOperation method:
function updatePriority()

  var convHandle = document.all.txtConHandle.value;
  var sMethod = "UpdateStudiesPriority";
  var selIndex = document.all.cboPriority.selectedIndex;
  var updateVal = document.all.cboPriority[selIndex].value;

  var oServiceHandler = document.getElementById('divServiceHandler');

  if(! oServiceHandler.QManagerWebService)
    oServiceHandler.useService(mServiceUrl + " WSDL", "QManagerWebService");
    mICallID = oServiceHandler.QManagerWebService.callService(han dleResponseFromBehavior, sMethod, convHandle, updateVal);


Not sure what I'm doing wrong..



Reply With Quote
  #2 (permalink)  
Old February 16th, 2006, 12:25 PM
Authorized User
Join Date: Jun 2003
Location: pgh, pa, USA.
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to drdexter33 Send a message via MSN to drdexter33

Never mind.

I forgot to put a [WebMethod(Description = "")]
directive above the web method..



Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
runtime error trying to access webservice owoade .NET Web Services 1 August 20th, 2007 02:54 PM
Deplloy Webservice in IIS getting error sriashish_1978 ASP.NET 2.0 Professional 0 July 7th, 2007 06:04 AM
Error calling a method in the webservice madhusrp .NET Web Services 1 April 12th, 2007 08:54 AM
Getting Error while adding reference to WebService vijayaramb ASP.NET 2.0 Basics 0 March 7th, 2007 01:28 AM
Error: directive 'WebService' is unknown mikeyp .NET Web Services 0 October 31st, 2005 02:19 PM

All times are GMT -4. The time now is 05:37 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.