Answered

How to invoke GetActivityForm renderSoa Webservice

Hi,

i´m trying integrate bizagi to php webpage, so i build axml file like that

<?xml version="1.0"?>

<BizAgiWSParam>

<userName>admon</userName>

<domain>domain</domain>

<case>

<idCase></idCase>

<idWorkItem></idWorkItem>

</case>

</BizAgiWSParam>

in php webpage i have this code:

$getActivityForm = 'getActivityForm';

$xml = simplexml_load_file(DOCROOT.'../extra/bizagi/'.$getActivityForm.'.xml');

$xml->case->idCase = $processId;//this is the bumber of process

$xml->case->idWorkItem = $idWorkItem;//this is the number of task

$params = array();

$params["activityInfo"] = $xml->asXML();

$client = new SoapClient("http://localhost:1024/CNC3/webservices/RenderSOA.asmx?wsdl";, self::$options);

$result = $client->getActivityForm($params);

but this code generate an error like this:

public 'GetActivityFormResult' => string '<processError><errorMessage>Invalid xml Request</errorMessage>

<innerException>Value cannot ne null

Nome do parâmetro: s</innerException></processError>'Thanks for your help.

photo
0

i resolved the problem thanks,

but now i have the next error message

System.Web.Services.Protocols.SoapException: O servidor não conseguiu processar o pedido. ---> System.InvalidCastException: Não é possível associar o objecto de tipo 'BizAgi.Render.JQuery.Model.Request.RequestInfo' ao tipo 'BizAgi.Render.JQuery.Model.Request.ProcessRequestInfo'. em BizAgi.Render.JQuery.Model.Response.FormResponseBuilder..ctor(RequestInfo requestInfo) em BizAgi.Render.JQuery.Model.Response.ResponseBuilderFactory.GetResponseBuilder(RequestInfo requestInfo, List`1 validationMessages) em BizAgi.Render.JQuery.Facade.JsonModelFacade.GetResponse(RequestInfo requestInfo, List`1 validationMessages) em BizAgi.Render.JQuery.Facade.JsonModelFacade.ProcessRequest(RequestInfo requestInfo) em BizAgi.Web.Services.CRenderXML.ProcessRequestInfo(RequestInfo requestInfo, FormType formType) em BizAgi.Web.Services.CRenderXML.GetActivityForm(String requestInfoData) --- Fim do rastreio da pilha de excepção interna ---

thanks

photo
0

Dear Augusto

A member of our support team will contact you

Best regards.

Luis Emilio