Solved

SaveEntityAsString EntityManagerSOA Error: A potentially dangerous Request

I am following this guide:

http://help.bizagi.com/bpm-suite/en/index.html?howto_fromexcel.htm

When I reach the last step, and I insert the data to the "Value Field" in the SaveEntityAsString EntityManagerSOA and hit invoke I get the following error:

System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (entityInfo=&quot;<?xml version=&quot;1.0&quot; ...&quot;).

at System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection)

at System.Web.HttpValueCollection.EnsureKeyValidated(String key)

at System.Web.HttpValueCollection.Get(String name)

at System.Web.Services.Protocols.ValueCollectionParameterReader.Read(NameValueCollection collection)

at System.Web.Services.Protocols.HttpServerProtocol.ReadParameters()

at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()

For example i insert the following XML, (all \n and \r have been eliminated):

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <BizAgiWSParam xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">; <Entities> <Department> <Name>Example1</Name> </Department> <Department> <Name>Example2</Name> </Department></Entities> </BizAgiWSParam>

Comments (1)

photo
1

Dear Andreas,

There must be an error in scaping all characters in the XML. We recommend using the SOA Layer to do this kind of process, just as stated in this article http://help.bizagi.com/bpm-suite/en/index.html?saveentityasstring.htm.

Best regards.