Note that there are some explanatory texts on larger screens.

plurals
  1. POSiebel COM interface - Python
    primarykey
    data
    text
    <p>I have been asked to explore various ways in which <strong>Siebel COM</strong> interface can be accessed in order evaluate the best possible solution.</p> <p>So far we have been able to access the COM interface through Excel (VBA) and PHP now I need to explore if the same is possible in Python. From my initial research I know python does provide access to DLL's using win32 api but there is no comprehensive tutorial available to get me started.</p> <p>Below the code snippets that we use for excel and php.</p> <p><strong>Excel snippet::</strong></p> <pre><code>Private Function CreateConn(strConnect As String, strEnterprise As String, strPort As String, strPass As String) As Boolean Dim errCode As Integer Dim errText As String Dim SiebelApp As SiebelDataControl Set SiebelApp = CreateObject("SiebelDataControl.SiebelDataControl.1") CreateConn = True SiebelApp.Login "host=""siebel://" &amp; strConnect &amp; ":" &amp; strPort &amp; "/" &amp; strEnterprise &amp; "/EAIObjMgr_enu""", _ "sadmin", strPass errCode = SiebelApp.GetLastErrCode() If errCode &lt;&gt; 0 Then errText = SiebelApp.GetLastErrText CreateConn = False Exit Function </code></pre> <p><strong>PHP Snippet::</strong></p> <pre><code>&lt;?php function CreateConn($strConnect, $strEnterprise, $strPort, $strPass) { global $errText; $SiebelApplication = new COM('SiebelDataControl.SiebelDataControl.1') or die("Unable to instantiate SiebelDataControl"); $ConnStr = "host=\"siebel://".$strConnect.":".$strPort."/".$strEnterprise."/EAIObjMgr_enu\""; $SiebelApplication-&gt;Login($ConnStr, "sadmin", $strPass); $errCode = $SiebelApplication-&gt;GetLastErrCode(); if ($errCode != 0) { $errText = $SiebelApplication-&gt;GetLastErrText(); return false; } else { return true; } } ?&gt; </code></pre> <p>Can someone help me with example snippet for <strong>python</strong> to accomplish the same thing i.e creating connection?? Thanks</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload