Evan Cutler
asked on
passing html to webservice (asmx) for invoke
Greetings,
I have a WDSL XML Webservice:
It asks for four fields,
However one of my fields is html from a Textarea (like fckeditor).
it is erroring out...how do I get the HTML through so the String parameter can catch it in the webservice function, so it can be uploaded into a RMDB?
Thanks
I have a WDSL XML Webservice:
It asks for four fields,
However one of my fields is html from a Textarea (like fckeditor).
it is erroring out...how do I get the HTML through so the String parameter can catch it in the webservice function, so it can be uploaded into a RMDB?
Thanks
ASKER
this is the error I get:
System.Web.HttpRequestVali dationExce ption: A potentially dangerous Request.Form value was detected from the client (text="<p><s trong>& lt;font siz...").
at System.Web.HttpRequest.Val idateStrin g(String value, String collectionKey, RequestValidationSource requestCollection)
at System.Web.HttpRequest.Val idateNameV alueCollec tion(NameV alueCollec tion nvc, RequestValidationSource requestCollection)
at System.Web.HttpRequest.get _Form()
at System.Web.Services.Protoc ols.HtmlFo rmParamete rReader.Re ad(HttpReq uest request)
at System.Web.Services.Protoc ols.HttpSe rverProtoc ol.ReadPar ameters()
at System.Web.Services.Protoc ols.WebSer viceHandle r.CoreProc essRequest ()
System.Web.HttpRequestVali
at System.Web.HttpRequest.Val
at System.Web.HttpRequest.Val
at System.Web.HttpRequest.get
at System.Web.Services.Protoc
at System.Web.Services.Protoc
at System.Web.Services.Protoc
A quick google of that error shows you can avoid it by setting the validateRequest to false. I'm not familiar with .Net technology so I don't know if this make the application vulnerable in some way.
http://www.daniweb.com/web-development/aspnet/threads/26790
http://www.aspsnippets.com/Articles/A-potentially-dangerous-RequestForm-value-was-detected-from-the-client.aspx
http://www.daniweb.com/web-development/aspnet/threads/26790
http://www.aspsnippets.com/Articles/A-potentially-dangerous-RequestForm-value-was-detected-from-the-client.aspx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I don't like it, sounds bad, but it works....
fortunately the cleditor I'm using, has a small amount of XSS protection.
Cheers.
THanks.
fortunately the cleditor I'm using, has a small amount of XSS protection.
Cheers.
THanks.
Please provide more details on the exact error(s) you get.