F
Frank Walsh - Keystone Automotive Corp.
I have attempted to pass a string to my webservice that contains a comma to seperate part numbers the client wishes to search for, however it appears there is no way to do this?
Any idea's anyone, I've tried \, [,] {,} and the &44; code i know that &44 isn't what it is but its something like that, anyway, none of these work.... I also tried another idea the params thing but thats not working either. Here is my code:
function init()
{
myWebService.useService("XXXXXXXXXXXXXXXXXXXXXXXXX?SDL","CatalogService");
}
function getPartsInfo(Key,FullAccountNo,SearchKey,SearchStyle,MaxRows,MyPrice)
{
alert(SearchKey);
myWebService.CatalogService.callService(PartsInfoResult, "GetPartsInfo",Key,FullAccountNo,SearchKey,SearchStyle,MaxRows,MyPrice);
//var objCall = myWebService.createCallOptions();
// Define the function for the RPC call.
//objCall.funcName = "GetPartsInfo";
// Define the Array
//objCall.params = new Array();
//objCall.params.Key = Key;
//objCall.params.FullAccountNo = "XXXXXXXX"; //FullAccountNo.toString(); //objCall.params.SearchKey = "D371000,D303033"; //SearchKey.toString();
//objCall.params.SearchStyle = "1";//SearchStyle.toString();
//objCall.params.MaxRows = "2"; //MaxRows.toString();
//objCall.params.MyPrice = "N";//MyPrice.toString();
// Make the RPC call using the call object (objCall).
//myWebService.CatalogService.callService (PartsInfoResult, objCall);
}
function PartsInfoResult(pResult)
{
if(pResult.error)
alert("Unsuccessful call. Error is " + pResult.errorDetail.string);
Frank Walsh - Keystone Automotive Corp.
(e-mail address removed)
Any idea's anyone, I've tried \, [,] {,} and the &44; code i know that &44 isn't what it is but its something like that, anyway, none of these work.... I also tried another idea the params thing but thats not working either. Here is my code:
function init()
{
myWebService.useService("XXXXXXXXXXXXXXXXXXXXXXXXX?SDL","CatalogService");
}
function getPartsInfo(Key,FullAccountNo,SearchKey,SearchStyle,MaxRows,MyPrice)
{
alert(SearchKey);
myWebService.CatalogService.callService(PartsInfoResult, "GetPartsInfo",Key,FullAccountNo,SearchKey,SearchStyle,MaxRows,MyPrice);
//var objCall = myWebService.createCallOptions();
// Define the function for the RPC call.
//objCall.funcName = "GetPartsInfo";
// Define the Array
//objCall.params = new Array();
//objCall.params.Key = Key;
//objCall.params.FullAccountNo = "XXXXXXXX"; //FullAccountNo.toString(); //objCall.params.SearchKey = "D371000,D303033"; //SearchKey.toString();
//objCall.params.SearchStyle = "1";//SearchStyle.toString();
//objCall.params.MaxRows = "2"; //MaxRows.toString();
//objCall.params.MyPrice = "N";//MyPrice.toString();
// Make the RPC call using the call object (objCall).
//myWebService.CatalogService.callService (PartsInfoResult, objCall);
}
function PartsInfoResult(pResult)
{
if(pResult.error)
alert("Unsuccessful call. Error is " + pResult.errorDetail.string);
Frank Walsh - Keystone Automotive Corp.
(e-mail address removed)