Answered

Perform Activity from External Program PROBLEM

Hello Again,

Im trying to perform a activity from a c# external program but i get a error, The error is the same that this post http://feedback.bizagi.com/suite/en/responses/using-external-c-program-to-start-bizagi-process-throws-could-not-find-endpoint-error:

"Could not find default endpoint element that references contract 'BizagiWorkflowEngineSOA.WorkflowEngineSOAHttpGet' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element."

You have that post like answered but you are only linking to:

I already read those links, i have done exactly what they say but im still facing this problem. Do you know the reason of the error?: There is the code:

public static void PerformBzgTask(Int64 IdCase, String TaskName)

{ try { string sXml = "<BizAgiWSParam>"; sXml += "<ActivityData>"; sXml += "<idCase>" + IdCase.ToString() + "</idCase>"; sXml += "<taskName>" + TaskName + "</taskName>"; sXml += "</ActivityData>"; sXml += "</BizAgiWSParam>"; XmlDocument xDoc = new XmlDocument(); xDoc.LoadXml(sXml); BzgiSOA.WorkflowEngineSOASoapClient ws = new BzgiSOA.WorkflowEngineSOASoapClient(); XmlNode xn = ws.performActivity(xDoc); if (xn.SelectSingleNode("process/processError/errorCode") != null) { throw new Exception("ERROR:" + xn.SelectSingleNode("process/processError/errorMessage").InnerText); } } catch (Exception ex) { throw new Exception(ex.Source + ":" + ex.Message); } }

Thanks.

photo
0

Dear Joel,

Thank you for your feedback. We would like to know if you have checked these articles about SOAP methods:

In those methods, you will see how to create the XML string in order to do what you need.

Regards