QueryOpe

From NETIM
Jump to: navigation, search


Release
API >= 2.0


Description

Return the status of an operation

StructOperationResponse queryOpe(string idSession, int numOperation)


Parameters

Format Variable Description
string (32) idSession Session ID
int numOperation Tracking ID


Return

A structure StructOperationResponse


Notes

None


Examples

PHP

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{ 
      $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN"); 
      $StructOperationResponse = $clientSOAP->queryOpe($idSession, 1000); 
 
      print_r($StructOperationResponse);
 
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
if (isset($idSession)) 
{ 
      $clientSOAP->sessionClose($idSession); 
} 
?>


Release Runtime
API > 1.0 Synchronous


Description

Return the status of an operation

string[] queryOpe(string idSession, int numOperation)


Parameters

Format Variable Description
string (32) idSession Session ID
int numOperation Tracking ID


Return

An array with three values
Element Description Value
1 Status "Cancelled" / "Done" / "Failed" / "Pending"
2 Error message Si l'├ętat est "Failed"
3 Operation


Notes

None


Examples

PHP

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{ 
      $idSession = $clientSOAP->login("XXXX", "XXXX", "EN"); 
      $res = $clientSOAP->queryOpe($idSession, 1000); 
 
      echo "Result=".$res[0]."\n";
      echo "Error=".$res[1]."\n";
      echo "Operation=".$res[2]."\n";
 
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
if (isset($idSession)) 
{ 
      $clientSOAP->logout($idSession); 
} 
?>


JAVA

DRSServiceLocator service = new DRSServiceLocator(); 
String idSession; 
 
try 
{ 
      DRSPortType port = service.getDRSPort(); 
      idSession = port.login("XXXX", "XXXX", "EN"); 
 
      System.out.println(port.queryOpe(idSession, 1000)); 
 
      port.logout(idSession); 
} 
catch (RemoteException re) 
{ 
      System.out.println(re.getMessage()); 
} 
catch (ServiceException se) 
{ 
      se.printStackTrace(); 
}


Personal tools
Namespaces

Variants
Actions
Your account
Domain names
Contact Us
Web Hosting
SSL Certificate
Email Hosting
Website Builder
Resellers
Affiliates
Miscellaneous