WebSerice.HTC ----Doesn't support passing a string with "," in par

  • Thread starter Frank Walsh - Keystone Automotive Corp.
  • Start date
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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top