Merge pull request #618 from julceslauhub/master
BUG 9846 fallo en importacion de proceso SOLVED
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
/**
|
||||
* processes_ImportFile.php
|
||||
*
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
G::LoadClass('wsBase');
|
||||
$ws = new wsBase ();
|
||||
$res = $ws->login( $username, $password );
|
||||
return $res->getPayloadArray ( ) ;
|
||||
return $res->getPayloadArray ( ) ;
|
||||
}
|
||||
|
||||
|
||||
function wsBaseProcessList( $studentName ) {
|
||||
G::LoadClass('wsBase');
|
||||
$ws = new wsBase ();
|
||||
@@ -24,10 +24,10 @@ $operations = array( "processesList" => "wsBaseProcessList",
|
||||
"login" => "wsBaseLogin"
|
||||
);
|
||||
|
||||
/* just tell your function parameters should be in mixed format,
|
||||
/* just tell your function parameters should be in mixed format,
|
||||
that is here parameter will be the string with the name in it*/
|
||||
|
||||
$opParams = array("wsBaseProcessList" => "MIXED",
|
||||
$opParams = array("wsBaseProcessList" => "MIXED",
|
||||
"wsBaseLogin" => "MIXED");
|
||||
|
||||
//$wsdl = PATH_METHODS . "services" . PATH_SEP . "pmos.wsdl";
|
||||
@@ -44,61 +44,3 @@ $svr = new WSService(array("wsdl" => $wsdl ,
|
||||
$svr->reply();
|
||||
|
||||
die;
|
||||
|
||||
?>
|
||||
<?
|
||||
/*
|
||||
function wsBaseLogin( $inMessage ) {
|
||||
G::LoadClass('wsBase');
|
||||
$ws = new wsBase ();
|
||||
|
||||
$simplexml = new SimpleXMLElement($inMessage->str);
|
||||
$username = (string)$simplexml->username;
|
||||
$password = (string)$simplexml->password;
|
||||
|
||||
$wsResponse = $ws->login ( $username, $password );
|
||||
$res = $wsResponse->getPayloadString( 'loginResponse' );
|
||||
return new WSMessage($res);
|
||||
}
|
||||
|
||||
function wsBaseListOfProcess( $inMessage ) {
|
||||
|
||||
G::LoadClass('wsBase');
|
||||
$ws = new wsBase ();
|
||||
|
||||
$simplexml = new SimpleXMLElement($inMessage->str);
|
||||
//$username = (string)$simplexml->username;
|
||||
//$password = (string)$simplexml->password;
|
||||
|
||||
$wsResponse = $ws->listOfProcess ( );
|
||||
$res = $wsResponse->getPayloadString( 'listOfProcessResponse' );
|
||||
|
||||
return array("result"=> 1);
|
||||
|
||||
//return new WSMessage ( array ( "status_code" => 12, "message" => 'abx', "timestamp" => 'aa' ) );
|
||||
//return array ( "status_code" => 12, "message" => 'abx', "timestamp" => 'aa' );
|
||||
|
||||
return new WSMessage($res);
|
||||
}
|
||||
|
||||
$operations = array(
|
||||
"login" => "wsBaseLogin",
|
||||
"listOfProcess" => "wsBaseListOfProcess",
|
||||
);
|
||||
|
||||
$actions = array( "pmLogin" => "login",
|
||||
"pmListOfProcess" => "listOfProcess",
|
||||
);
|
||||
|
||||
$opParams = array( "listOfProcess" => "MIXED");
|
||||
|
||||
|
||||
$svr = new WSService( array("operations" => $operations,
|
||||
"actions" => $actions,
|
||||
"opParams" => $opParams,
|
||||
"serviceName" => "ProcessMaker WS"
|
||||
)
|
||||
);
|
||||
|
||||
$svr->reply();
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user