Error when passing special character to WorkflowEngine.asmx webservice
Hi there,
I am getting the following error when trying to pass special characters using the createCases operation on the webservice.
Bizagi version 11.1.0.2362
The attribute I'm trying to populate:
<MessagePlainText>
<![CDATA[
“test these characters”
]]>
</MessagePlainText>
Error XML:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<createCasesResponse xmlns="http://tempuri.org/">
<createCasesResult>
<BizAgiWSResponse xmlns="">
<ErrorMessage>Invalid character in the given encoding. Line 24, position 11.</ErrorMessage>
</BizAgiWSResponse>
</createCasesResult>
</createCasesResponse>
</soap:Body>
</soap:Envelope>
Is there a setting on the workflow that I need to change to allow the webservice to accept special characters?
Dear Coronation,
After analyzing your question, we have found that you are not creating the XML correctly. We are not sure why you have “<![CDATA[” inside of “<MessagePlainText>”.
We think CDATA is only needed when you are using the createCasesAsString method. It’s not needed for createCases method.
For further information, please refer: http://help.bizagi.com/bpm-suite/en/index.html?createcasesasstring.htm
In addition, please try using below statement and make sure you use proper quotes to form the correct String.
"<MessagePlainText>" + "test these characters" + "</ MessagePlainText>"
You can escape the quotes if you need them as part of your String.
"<MessagePlainText>" + "\"test these characters\"" + "</ MessagePlainText>"
Regards
Support Team
Bizagi
Comments have been locked on this page!