Missing parameter in Ajax post to Asmx

前端 未结 1 1097
星月不相逢
星月不相逢 2020-12-19 21:33

I\'m trying to send the string File to my asmx service and I keep getting the following error:

    Message: Invalid web service call, missing va         


        
相关标签:
1条回答
  • 2020-12-19 22:03

    Try sending the data as a plain object:

    data: { 'File': File },
    

    Or as a string:

    data: 'File=' + File,
    

    At the moment you're doing a little of both which won't work.

    0 讨论(0)
提交回复
热议问题