"Message" : "Invalid Web Service Call, Missing Value For Parameter: \u0027
Solution 1:
When using JSON, all strings have to be enclosed in double quotes "
, not single quotes '
. \u0027
is a single quote, and is probably what the API is complaining about. So if you replace
data: "{ 'searchTerm': '" + request.term + "' }",
with
data: '{ "searchTerm": "' + request.term + '" }',
It might work.
Solution 2:
To solve this error you must make sure that:
1. the parameter sent to the function has the same name as the param the function gets.
2.the parameter sent to the function must have the same "type" the function gets.
3. json.stringify(param)
will be only on the right side of json expression.
Code example simplify:
//function
[WebMethod]
public static doSomethimg(string[] myParam){}
//data in jquery make sure the param is an array (in this case)
data:{myParam:json.stringify(myArr)},
Solution 3:
You should be passing the same method parameter from GetPersonelNames, in your Ajax call
data: "{ 'personelName': '" + "your data" + "' }"
Solution 4:
it is done with a change !
Instead of
data: "{ 'searchTerm': '" + request.term + "' }",
This code works
data: JSON.stringify({
personelName : request.term
}),
Post a Comment for ""Message" : "Invalid Web Service Call, Missing Value For Parameter: \u0027"