Answered

How to invoke createCases renderSoa Webservice

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


<?xml version="1.0"?>


<BizAgiWSParam>
<domain>domain</domain>
<userName>admon</userName>
<Cases>
<Case>
<Process>Gestion_expedientes</Process>
<Entities>
<Gestion_expedientes>
<Marca>1</Marca>
</Gestion_expedientes>
</Entities>
</Case>
</Cases>
</BizAgiWSParam>


in php webpage i have this code:
<?php
$getActivityForm = 'getActivityForm';


$xml = simplexml_load_file($getActivityForm.'.xml');






$params = array();


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


$client = new SoapClient("http://186.154.207.84/UNITRON_ROI_BPMS/WebServices/WorkflowEngineSOA.asmx?wsdl";);


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


var_dump($client);
?>


but this code generate an error like this:
Fatal error: Uncaught SoapFault exception: [soap:Server] System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.NullReferenceException: Object reference not set to an instance of an object. at BizAgi.Web.Services.CWorkflowSOAWrapper.createCases(XmlDocument casesInfo) --- End of inner exception stack trace --- in C:\inetpub\wwwroot\SoapBizagi\render.php:14 Stack trace: #0 C:\inetpub\wwwroot\SoapBizagi\render.php(14): SoapClient->__call('createCases', Array) #1 {main} thrown in C:\inetpub\wwwroot\SoapBizagi\render.php on line 14


Thanks for your help.

Comments (5)

photo
1

Dear Romny,

A common integration requirement in BPM projects, is to have the possibility of starting Processes from a portal or an external application (e.g SharePoint, an E-mail or custom application, or any other program).

In Bizagi, Processes already present a comprehensive set of Web services and methods so that all their functionality can be invoked from any other application.

Such possibility is available through Bizagi SOA layer.

For further information about this feature, refer to Invoking Bizagi services from external applications.

In addition, check these examples:

Regards

photo
1

hola gracias por la respuesta.

esto funciona desde c#, pero desde php se puede? y si es asi, hay alguna documentacion.

Gracias.

photo
1

Dear Rommy,

Joomla is the closest PHP example: http://help.bizagi.com/bpmsuite/en/10.7/index.html?_how_to_integrate_bizagi_with_.htm

You can implement from any external application which can invoke SOA Layer.

Regards

photo
1

Sigue siendo codigo c#.

photo
1

Dear Romny,

We are sorry, but we don´t have more examples.

Regards