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.id=2
oResult.error=true
oResult.errorDetail.code="Client"
oResult.errorDetail.string="Invalid argument"
oResult.errorDetail.raw=null
------------------------------------------------------
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");
}
try
{
mICallID = oServiceHandler.QManagerWebService.callService(han dleResponseFromBehavior, sMethod, convHandle, updateVal);
}
catch(err)
{
alert(err);
}
}
Not sure what I'm doing wrong..
Thanks..
dd
|