Problem with Web Service Parameter
I am having a problem with a simple web service that accepts a parameter. For example:
[WebMethod]
public string HelloWorld(string strParam)
{ return "Hi"; }
This method returns a 500 Internal Server Error. When I remove the parameter:
[WebMethod]
public string HelloWorld()
{ return "Hi"; }
the web service works fine. Does anyone have any experience with this or know of a direction to log what is causing the error (nothing is in the event log).
Thanks.
Answers (1)
1
There are many ways to do it:
Use C# code:
https://github.com/xoofx/NUglify
https://www.codeproject.com/Tips/477066/Extract-inner-text-from-HTML-using-Regex
https://consultrikin.wordpress.com/2013/02/21/c-get-plain-text-from-html-string/
Use javascript
https://ourcodeworld.com/articles/read/376/how-to-strip-html-from-a-string-extract-only-text-content-in-javascript
Accepted