Axl Api: ODBC Error

I’m having trouble with Axl Api…
I’m using getMGCP to get the configuration of the MGCP Gateways in the system. It works fine, but I have to know the name of the Gateways…I would like to get the list of all the name of the MGCP gateways in the system so I can call getMGCP for all the Gateways.
It seems to me that listDeviceByNameAndClass could provide me this information. I successfully used it with the phone class, but when I pass Gateway to it I get an ODBC error response.
So my questions are:
Why do I get this error?
If I cannot use listDeviceByNameAndClass to list the MGCP Gateway names, how may I do it?
I am using Cisco CallManager 4.0. Version (4.0.1.16204) Installation Id (4.0(1)sr2a)
Received response:
HTTP/1.1 200 OK
Content-Type: text/xml
Content-Length: 1719
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" S
OAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>
<![CDATA[ODBC Error: Error executing "SELECT M.pkid, 'name'=M.domainName, M.desc
ription, T.tkModel, 'poolName'=NULL, M.tkProduct, 'deviceLevelTraceFlag'=0, 'pro
ductName'=T.name, D.routeListEnabled FROM MGCP AS M LEFT OUTER JOIN TypePro
duct AS T ON M.tkProduct = T.enum WHERE M.domainName LIKE '%' UNION SELECT D.pki
d, 'name'=D.name, D.description, D.tkModel, 'poolName'=P.name, D.tkProduct, D.de
viceLevelTraceFlag, 'productName'=T.name, D.routeListEnabled FROM Device AS D
LEFT OUTER JOIN DevicePool AS P ON D.fkDevicePoo]]></faultstring>
<detail xmlns:axl="http://www.cisco.com/AXL/1.0" xmlns:xsi="http://www.w3.org/2
001/XMLSchema-instance" xsi:schemaLocation="http://www.cisco.com/AXL/1.0 http://
COBRA1/CCMApi/AXL/V1/axlsoap.xsd">
<axl:error sequence="1234">
<code>64</code>
<message>
<![CDATA[ODBC Error: Error executing "SELECT M.pkid, 'name'=M.domainName, M.desc
ription, T.tkModel, 'poolName'=NULL, M.tkProduct, 'deviceLevelTraceFlag'=0, 'pro
ductName'=T.name, D.routeListEnabled FROM MGCP AS M LEFT OUTER JOIN TypePro
duct AS T ON M.tkProduct = T.enum WHERE M.domainName LIKE '%' UNION SELECT D.pki
d, 'name'=D.name, D.description, D.tkModel, 'poolName'=P.name, D.tkProduct, D.de
viceLevelTraceFlag, 'productName'=T.name, D.routeListEnabled FROM Device AS D
LEFT OUTER JOIN DevicePool AS P ON D.fkDevicePoo]]></message>
<request>listDeviceByNameAndClass</request>
</axl:error>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

You can use the listDeviceByNameAndClass to get the name, you just have to split the name at the @ symbol to get the proper domainName to use. Watch out though, the GetMGCP or MGCP calls in general have problems, sometimes the server doesnt properly encode the soap response (some units and subunits can contain ., /, ) or other special characters) and this destroys the generated soap response between the cisco server and your application... I'm running into this now. (Which is why the executeSQLQuery doesnt work and I have to use the AXL getmgcp.

Similar Messages

  • Associate a device with a DN using AXL API

    Hi guys,
    I am trying to add a DN to an existing phone device using AXL API via Java. I keep getting this error:
    Devices can only be associated with DNs, Route Patterns and Hunt Pilots.
    I have two existing lines on this device which I added through call manager, but now I am trying to add a third one using AXL API. This is what I did to get this error and I am not sure why:
    XDirn dn = new XDirn();
    dn.setPattern("6340");
    XPhoneLine phoneLine = new XPhoneLine();
    phoneLine.setDirn(dn);
    phoneLine.setAsciiLabel("TESTING - 6340");
    phoneLine.setDisplay("TESTING - 6340");
    phoneLine.setDisplayAscii("TESTING - 6340");
    phoneLine.setLabel("TESTING - 6340");
    phoneLine.setBusyTrigger("2");
    phoneLine.setIndex("3");
    phoneLine.setMaxNumCalls("4");
    UpdatePhoneReq updatePhone = new UpdatePhoneReq();
    updatePhone.setName("SEPD824BDBBCAF1");
    UpdatePhoneReq.Lines newLine =  new UpdatePhoneReq.Lines();
    newLine.getLine().add(phoneLine);
    updatePhone.setLines(newLine);
    port.updatePhone(updatePhone);
    the error occurs at the last line when I try to push the update.
    Thanks

    I just tried to execute SQL commands through the API and that is not working well either. The Axlsoaptoolkit.java file works fine but not through the API. this what I have done:
    ExecuteSQLQueryReq sqlReq = new ExecuteSQLQueryReq();
    sqlReq.setSql("select * from device");
    ExecuteSQLQueryRes sqlRes = port.executeSQLQuery(sqlReq);
    System.out.println(sqlRes.getReturn().getRow().get(0));
    System.out.println(sqlRes.getReturn().getRow().get(1));
    System.out.println(sqlRes.getReturn().getRow().get(2));
    This returns null on the first 3 rows where I have more than a 1500 entries in that table. I verified using the Axlsoaptoolkit.java app

  • ODBC errors while retrieving timestamp column

    Hi,
    I created 2 views selecting timestamp column of table ULTBPM_CCHK.CC_APPINFO:
    CREATE OR REPLACE FORCE VIEW "ULTBPM_CCHK"."ERKANDENE_V" ("CCAI_RECORDDATETIME") AS select TO_DATE(TO_CHAR(CCAI_RECORDDATETIME,'DD/MM/YYYY hh24:mi:ss'),'DD/MM/YYY
    Y hh24:mi:ss') CCAI_RECORDDATETIME from ULTBPM_CCHK.CC_APPINFO;
    CREATE OR REPLACE VIEW "ULTBPM_CCHK"."ERKANDENE_V2"
    "CCAI_RECORDDATETIME") AS select CCAI_RECORDDATETIME from ULTBPM_CCHK.CC_APPINFO;
    While i can query "ULTBPM_CCHK"."ERKANDENE_V" without any problem, following errror occurs for "ULTBPM_CCHK"."ERKANDENE_V2":
    SELECT AL1.CCAI_RECORDDATETIME FROM ULTBPM_CCHK.ERKANDENE_V2 AL1
    ODBC Error: SQL API: [SQLBindCol], SQL RETURN: [-1], SQL STATE: [HY003], SQL NATIVE ERROR: [0], SQL MESSAGE: [[Microsoft][ODBC Driver Manager] Program type out of range]
    I want to select timestamp colum, Any sugestions?
    Hyperion Reporting Studio 9.3.1
    Oracle 9i clent
    Oracle 10g (10.2.0.4) database
    Regards,
    Erkan Saka

    Hi,
    This time it gives "ORA-03106: fatal two-task communication protocol error". I searched metalink and fould that this may be caused by incompatible SqlNet libraries or NLS settings between cklient and server. I checked NLS settings but did not solved the problem. In dbgprint file i saw that hyperion identified timestamp column (B) as ColType 0. Is it normal for timestamp column? Because when i look at the column properties in Reporting Studio, i see nothing in Item Type.
    SELECT DISTINCT COLUMN_NAME, '*', COLUMN_ID, DATA_TYPE, DATA_LENGTH,
         DATA_SCALE, DATA_PRECISION, NULLABLE, '*' FROM SYS.ALL_TAB_COLUMNS
         WHERE TABLE_NAME = 'ERKAN_DENE' AND OWNER = 'DISBANK' ORDER BY
         COLUMN_ID
    Server Column Information
    ColName ColNum ColType Length Places Digits Nulls
    ======= ====== ======== ====== ====== ====== =====
    A 1 NUMBER 22 0 10 0
    B 2 TIMESTAMP(6) 11 6 10 1
    End Select
    DaMgr DMTable Column Information
    ColName ColNum ColType Length Places
    ======= ====== ====== ====== ======
    A 0 4 22 0
    B 1 0 11 6
    Begin Executing Document OnPreProcess Script.
    End Executing Document OnPreProcess Script.
    Begin Select
    (0 0 )
    Sending SQL to the Server:
    SELECT AL1.B FROM DISBANK.ERKAN_DENE AL1
    Oracle error -1 3106: ORA-03106: fatal two-task communication protocol error
    Exception thrown in v1_bi_code\bl\da\dasnet_l.cpp, line 959: Oracle Error -1: ORA-03106: fatal two-task communication protocol error
    DaSession::CancelOk()
    Regards,
    Erkan

  • Unsuccessful trying to use AXL API 9.1

    I am developing 3-rd party application in C#/Framework 4.5 project and trying to use AXL API 9.1 sending “addUser” requests to the Call Manager. It is not recognizing that I am trying to use 9.1 version and working like I am using version 6.1 or something like this.
    Our firm have VM ESXI 5.0.0 and CUCM 9.0 on it. We are using SPA504G, 7975G, 7940G for testing.
    I took the example of SOAP envelope from Cisco development cookbook:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:axl=http://www.cisco.com/AXL/API/9.1"> ….
    If I am using old version of fields, like this:
    <lastname>MySoname</lastname>
    I’ll receive the response: 
    …<axl:getUserResponse xmlns:axl=http://www.cisco.com/AXL/API/6.1…
    If I’ll try to use fields like it described in the 9.1 Cisco Unified CM AXL Schema Reference,  that means:
    <lastName>MySoname</lastName>
    I’ll receive the error response that the null can’t be placed in mandatory field.
    It will be great if somebody can help me to understand what is wrong.

    Ok.  I found the possibility to add http header using HttpWebRequest class like Aaron suggest me.
    Here it is:
    HttpWebRequest_Instance.Headers.Add("SOAPAction", "CUCM:DB ver=9.1");
    In case of declaring version 9.1 the server returns error 599. In case of version 8.5 - error 500. If I am declaring version 7.1 it works but ones more I can't use schema 9.1. I must go with fields from 7.1 schema.
    Anybody? Any suggestions why it is not working?

  • "An internal error occured while calling 'answerPrompts' API.(Error: wis_30

    Hi Gurus
    Getting an error message while running a webi report from infoview link(server:8080/InfoViewApp/logon.jsp)
    as
    "An internal error occured while calling 'answerPrompts' API.(Error: ERR_WIS_30270)
    I found that while selecting refresh checkbox in one of the query which is using .xls file from the local system this is showing above error while running from above link.
    If it is unchecked it is running without any error.
    while running report from webirichclient(where we are developing reports) it is running without any error.
    Thanks in Advance
    Regards
    Ritu Raj

    It seems you are on SP3, and I assume the operating system of the BO server is Windows based.
    Please cross-check that the Excel version you have matches the ODBC driver in the supported platforms document for XI3.1 SP3 [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/4079f8f6-2b49-2d10-d790-bc596012dc25]
    Second thing, I would like to see screenshots of what you mean by
    "I found that while selecting refresh checkbox in one of the query which is using .xls file from the local system this is showing above error while running from above link.
    If it is unchecked it is running without any error."
    just to avoid misunderstandings from my side
    Thanks!
    Best regards,
    Simone

  • Correct way to use AXL API with complex types css, partition, etc. involving: JAXBElement XFkType ?

    I am trying to figure out how to use the AXL API once exploded with the wsimport as explained here...
    https://developer.cisco.com/site/collaboration/management/axl/learn/how-to/axl-java-sample-application.gsp
    ...to use complex types (partition, css, etc). 
    --> What is the correct way to do it?
    Example 1: UpdatePhone
    When incorporing a complex type into the addition or update of a component, for instance RoutePartitionName, DevicePoolName or CallingSearchSpaceName.
    his function is not working:
    public void actualizarPhone(LPhone lPhone) {
            try {
                UpdatePhoneReq axlParams = new UpdatePhoneReq();
                axlParams.setName(lPhone.getName());
                axlParams.setDescription(lPhone.getDescription());
                axlParams.setDevicePoolName(lPhone.getDevicePoolName());
                axlParams.setCallingSearchSpaceName(lPhone.getCallingSearchSpaceName());
                StandardResponse response = axlPort.updatePhone(axlParams);
                //return response.getReturn()a.toString();
            } catch (Exception e) {
                logger.error(e);
                //return new ArrayList<LPhone>();
    It seems the right thing to do set as parameter for the "set" the result of the "get" in line: setDevicePoolName(lPhone.getDevicePoolName());
    but it says: "The method setDevicePoolName(JAXBElement<XFkType>) in the type UpdatePhoneReq is not applicable for the arguments (XFkType)"
    Example 2: AddLine
    I also have this problem when adding line. 
    And I've tried at least 3 approaches, no success yet:
    1)** Using factory object to obtain an R object
    ObjectFactory factory = new ObjectFactory();
    RRoutePartition rRoutePartition = factory.createRRoutePartition();
    rRoutePartition.setName("autodial");
    2) ** Trying to create the demanded object: JAXBElement<XFkType> myself.
    JAXBElement<XFkType> jaxbElement= new JAXBElement<XFkType>(new QName ("http://www.cisco.com/AXL/API/8.5","XRoutePartition"),XFkType.class,partition);
    jaxbElement.setValue(partition3);
    line.setRoutePartitionName(jaxbElement);
    3)** Using X Objects
    XCallForwardBusy fwdBusy = new XCallForwardBusy();
    fwdBusy.setForwardToVoiceMail("true");
    AddLineReq newLine = new AddLineReq();
    XLine line = new XLine();
    line.setAlertingName("ALerting Name");
    line.setAsciiAlertingName("Alerting Name ASCII");
    line.setCallForwardBusy(fwdBusy);
    line.setDescription("Description");
    line.setPattern("5555");
    I would appreciate a clean example about how to add a line setting a partition, and an explanation about how to use JAXBElement<XFkType> objects.
    regards!

    I am trying to figure out how to use the AXL API once exploded with the wsimport as explained here...
    https://developer.cisco.com/site/collaboration/management/axl/learn/how-to/axl-java-sample-application.gsp
    ...to use complex types (partition, css, etc). 
    --> What is the correct way to do it?
    Example 1: UpdatePhone
    When incorporing a complex type into the addition or update of a component, for instance RoutePartitionName, DevicePoolName or CallingSearchSpaceName.
    his function is not working:
    public void actualizarPhone(LPhone lPhone) {
            try {
                UpdatePhoneReq axlParams = new UpdatePhoneReq();
                axlParams.setName(lPhone.getName());
                axlParams.setDescription(lPhone.getDescription());
                axlParams.setDevicePoolName(lPhone.getDevicePoolName());
                axlParams.setCallingSearchSpaceName(lPhone.getCallingSearchSpaceName());
                StandardResponse response = axlPort.updatePhone(axlParams);
                //return response.getReturn()a.toString();
            } catch (Exception e) {
                logger.error(e);
                //return new ArrayList<LPhone>();
    It seems the right thing to do set as parameter for the "set" the result of the "get" in line: setDevicePoolName(lPhone.getDevicePoolName());
    but it says: "The method setDevicePoolName(JAXBElement<XFkType>) in the type UpdatePhoneReq is not applicable for the arguments (XFkType)"
    Example 2: AddLine
    I also have this problem when adding line. 
    And I've tried at least 3 approaches, no success yet:
    1)** Using factory object to obtain an R object
    ObjectFactory factory = new ObjectFactory();
    RRoutePartition rRoutePartition = factory.createRRoutePartition();
    rRoutePartition.setName("autodial");
    2) ** Trying to create the demanded object: JAXBElement<XFkType> myself.
    JAXBElement<XFkType> jaxbElement= new JAXBElement<XFkType>(new QName ("http://www.cisco.com/AXL/API/8.5","XRoutePartition"),XFkType.class,partition);
    jaxbElement.setValue(partition3);
    line.setRoutePartitionName(jaxbElement);
    3)** Using X Objects
    XCallForwardBusy fwdBusy = new XCallForwardBusy();
    fwdBusy.setForwardToVoiceMail("true");
    AddLineReq newLine = new AddLineReq();
    XLine line = new XLine();
    line.setAlertingName("ALerting Name");
    line.setAsciiAlertingName("Alerting Name ASCII");
    line.setCallForwardBusy(fwdBusy);
    line.setDescription("Description");
    line.setPattern("5555");
    I would appreciate a clean example about how to add a line setting a partition, and an explanation about how to use JAXBElement<XFkType> objects.
    regards!

  • Powerpivot Report 2010 - OLE DB or ODBC error: Query timeout expired; HYT00

    0
    I have report already developed by someone in powerpivot 2010 and deployed to sharepoint in powerpivot gallery library. The data source for this report is SQL Server 2008 r2. I have set the refresh options in sharepoint to run after business hours during
    week end. When I check the refresh history it shows this error message "OLE DB or ODBC error: Query timeout expired; HYT00. An error occurred while processing the 'xxx' table. The current operation was cancelled because another operation in the
    transaction failed..
    I have tried to run the "Also refresh as soon as possible " just to check but same error message is shown.
    This is the detailed error message details:
    03/02/2014 21:06:55 03/02/2014 22:08:15 01:01:20 Failed
    OLE DB or ODBC error: Query timeout expired; HYT00. An error occurred while processing the 'xxx' table. The current operation was cancelled because another operation in the transaction failed
    Could anyone guide me on this issue? Truly appreciate your help in advance.

    Hi asritha,
    I would suggest you take a look at the following articles regarding how to configure PowerPivot data refresh in SharePoint Server:
    Configure and Use Stored Credentials for PowerPivot Data Refresh:
    http://technet.microsoft.com/en-us/library/ee210671(v=sql.105).aspx
    Configure and Use the PowerPivot Unattended Data Refresh Account:
    http://technet.microsoft.com/en-us/library/ff773327(v=sql.105).aspx
    Note: Please ensure that the account have sufficient permission access to your data source.
    In addition, please elaborate your PowerPivot data soure with more detail. If you are using SSAS cube, please try to increase "ExternalConnectionTimeout" property default value to see if this helps. Here is the similar thread for your reference,
    please see:
    http://social.technet.microsoft.com/Forums/en-US/35b26c06-9e6d-41e5-ae44-bfb1233510ac/ssas2008-ole-db-error-ole-db-or-odbc-error-query-timeout-expired-hyt00?forum=sqldatamining
    Regards,
    Elvis Long
    TechNet Community Support

  • An internal error occurred while calling 'submitReport' API. (Error: ERR_WI

    An internal error occurred while calling 'submitReport' API. (Error: ERR_WIS_30270)
    We get above mentioned error message at any point in WebI Rich Client.
    DataSource: Teradata 12.0 (Local machine)
    BO XI 3.1 Client installed on local machine
    Universe (Secured connection)
    WebI : desiging and creating in Standlone mode
    WebI client version : 12.1.0.882
    Many times above written error is thrown 2-3 times even when we click on OK button and lastly followed by new error message:-
    Unable to get the first page of the current report - Web Intelligence will switch to structure view (WIJ 20003).
    Flow: We create report based on locally saved universe. There are couple of scenarios for which error comes
    1) After successfully saving the report, reopen and refresh causes this error (1st error and 2nd)
    2) Droping a properly written variable on measure column, if done Ctrl + Z, report works sometimes (both or 2nd error message)
    3) Draging out the mesaure or dimension from report (only 2nd error)
    Report is simple and no other stuff except the cross tab table
    Even if we start with simply dropping the dimension and measures on report, 2nd error comes at any time.
    What we noticed is that if we do all desiging in structure mode and then run instead of in result mode, reports works for more time.

    You can have a look here:
    Input Controls with Break Error on webi report
    http://www.forumtopics.com/busobj/viewtopic.php?t=60789&postdays=0&postorder=asc&start=45
    Re: internal error occurred while calling the 'submitReport' API.
    I'm Back
    HAPPY NEW YEAR

  • ODBC Error connecting to a stored procedure SQL Server 2008 - Crystal 8.5

    I am running a local copy of SQL server 2008 and get an ODBC error when connecting to any stored procedure with or without parameter. The database are running in SQL Server 2000 compatibility mode on the local server.
    Do not get the error when connecting to one or more databse tables or when connecting to a stored procedure on a remote database.
    The error reported is "ODBC error:[Microsoft][ODBC SQL Server driver] Syntax error or access violation"
    I am running Vista OS.
    Any help would be appreciated..

    Hello,
    Interesting combination. All but CR 8.5 is supported on that OS.
    When you created your DSN did you using the 2008 Client or MDAC?
    I suggest you go back to supported platforms for CR 8.5
    If not then start debugging Vista permissions to start with...
    good luck
    Don

  • Customizing ODBC errors in OBIEE 11g

    Hi,
    I have a requirement where the user is expecting to see some Custom error messages instead of the Default ODBC errors OBIEE throws. Like the one below.
    Error generating view. Error getting cursor in GenerateHead
      Error Details
    Error Codes: OAMP2OPY:OPR4ONWY:U9IM8TAC:OI2DL65P:OI2DL65P 
    Odbc driver returned an error (SQLExecDirectW). 
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 22055] First argument of Parent function must be a hierarchy in a Parent-Child dimension with a single column Member Key. (HY000) 
    Where i can find the files which has these messages.They should be on some .xml or Java file on the server. If i know that location, i can change the error into Custom error messages.
    Any help would be really appreciated.
    Thanks
    Swami

    Swami,
    These kind of custom error messages,You need to do it manually for each report
    Edit Analysis Properties ---- Results Display ----- Display Custom Message
    Mark if you helps,
    Thanks,

  • ODBC Error while Siebel Server try to connect to Oracle 10G

    We have managed to get through with the configuration of siebel server on HP Unix. However before we get to the Database configuration, we are encountering errors with ODBC connection to oracle 10g database. We are able to connect to oracle using sql plus but odbc connection is failing. We verified for patches, missing files, directory access rights - but no clue as of now.
    Our error says:
    Logging into "ENTSIA_DEV_DAN" as "sadmin"....
    /user/lib/hpux32/dld.so: Unable to find library 'libclntsh.so'.
    ODBC error IM0003 in SQLConnect:
    (DataDirect){ODBC lib} specified driver could not be loaded
    Unable to login using specified odbc parameters
    This has become a show stopped for us and we are strugging with this for the past three days without much direction.
    Any help is greatly appreciated.
    Thanks.

    Hi,
    I guess your DataDirect Driver which gets registered during Database Configuration has some problems.
    Can you check whether the DSN is using the proper Driver?
    Also, the username through which you are logging in to start Siebel Services must have proper rights.
    Many times on Windows platform i have noticied this error in ODBC due to improper user rights. If the rights are not proper, the DataDirect Driver fails to get loaded & throws similar error.
    Regards,
    Shalabhsneha

  • Invalid API Key Error in Ecosign API

    I'm using the sample soap code(Developer kit) given by echosign api for testping, but it always show invalid api key error while i'm executing from terminal. Please give the solution as soon as possible, and i'm not able to get solution from google also.
    This is my API Key:
    Client Secret:
    6IaJHev8N48JbsZcM4Itggzt0pAHF0iS
    I tried with this comment in terminal:
    php demo.php https://secure.echosign.com/services/EchoSignDocumentService20?wsdl 6IaJHev8N48JbsZcM4Itggzt0pAHF0iS test
    This is demo.php file:
    <?php
    // get input
    array_shift($_SERVER['argv']);
    $Url = array_shift($_SERVER['argv']);
    $ApiKey = array_shift($_SERVER['argv']);
    $cmd = array_shift($_SERVER['argv']);
    $params = $_SERVER['argv'];
    if (!$cmd) print_usage();
    $S = new SOAPClient($Url);
    call_user_func("cmd_$cmd", $params);
    function cmd_test() {
        global $Url, $ApiKey, $S;
        print "Testing basic connectivity...\n";
        $r = $S->testPing(array('apiKey' => $ApiKey));
        print "Message from server: {$r->documentKey->message}\n";
        print "Testing file transfer...\n";
        $text = file_get_contents('../test.pdf');
        $r = $S->testEchoFile(array('apiKey' => $ApiKey, 'file' => base64_encode($text)))->outFile;
        if (base64_decode($r) === $text) {
            print "Woohoo! Everything seems to work.\n";
        else {
            die("ERROR: Some kind of problem with file transfer, it seems.\n");
    function cmd_send() {
        global $Url, $ApiKey, $S;
        list($filename, $recipient) = reset(func_get_args());
        $r = $S->sendDocument(array(
            'apiKey' => $ApiKey,
            'documentCreationInfo' => array(
                    'fileInfos' => array(
                        'FileInfo' => array(
                            'file'     => file_get_contents($filename),
                            'fileName' => $filename,
                    'message' => "This is neat.",
                    'name'    => "Test from SOAP-Lite: $filename",
                    'signatureFlow' => "SENDER_SIGNATURE_NOT_REQUIRED",
                    'signatureType' => "ESIGN",
                    'tos' => array( $recipient ),
        print "Document key is: {$r->documentKeys->DocumentKey->documentKey}\n";
    function cmd_info() {
        global $Url, $ApiKey, $S;
        list($doc_key) = reset(func_get_args());
        $r = $S->getDocumentInfo(array('apiKey' => $ApiKey, 'documentKey' => $doc_key))->documentInfo;
        print "Document is in status: {$r->status}\n";
        print "Document History: ";
        foreach($r->events->DocumentHistoryEvent as $_) {
            $keytext =
              $_->documentVersionKey
              ? " (versionKey: {$_->documentVersionKey})"
            print "{$_->description} on {$_->date}$keytext\n";
        print "Latest versionKey: {$r->latestDocumentKey}\n";
    function cmd_latest() {
        global $Url, $ApiKey, $S;
        list ($doc_key, $filename) = reset(func_get_args());
        $r = $S->getLatestDocument(array('apiKey' => $ApiKey, 'documentKey' => $doc_key))->pdf;
        //$r = base64_decode($r);
        file_put_contents($filename, $r);
    function print_usage() {
        die(<<<__USAGE__
    Usage:
      demo.php <URL> <API key> <function> [parameters]
    where the function is one of:
      test
      send <filename> <recipient_email>
      info <documentKey>
      latest <documentKey> <filename>
    test will run basic tests to make sure you can communicate with the web service
    send will create a new agreement in the EchoSign system, and returns a documentKey
    info returns the current status and all the history events for a given documentKey
    latest saves the latest version of the document as a PDF with the given filename
    __USAGE__
    --------------------------  End of file ---------------------------------------------------------------

    This is my API Key:
    Client Secret:
    6IaJHev8N48JbsZcM4Itggzt0pAHF0iS
    Client secret is not the same as an api key!
    in addition to the above, integration key or access codes can be had by going to personal preferences>access code and clicking the plus sign.

  • "ODBC Error= [17] [] "[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]SQ

    Hi,
    I am getting the above error when trying to connect to a database located on remote database. if the database is on same system no problem.
    any clue???????pls help me.

    The full error msg is as follows and the back ground of the problem is decribed below...pls help me out.
    I have written some perl programs to be called by java to execute some database related tasks. My database located at a remote win2K server and database is MSSql and my programs are executing on WIN2k server. The problem is with perl talking to remote database...the following error is displaying...
    "ODBC Error= [17] [] "[Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]SQL Server does not exist or access denied."

  • ODBC error checking in a data model

    At my client we're using PD 16.5.0 build 3982, and we're trying to check in a LDM that was originally generated from a PDM. When we try and check the LDM in to the repository, we get an ODBC error:
    ODBC driver for Oracle
    ORA-12899: value too large for column "PMTEXT"."TDAT" (actual: 2002, maximum: 2000)
    SQLSTATE = NA000
    I have an old (PD 16.1) PDM for the repository, which shows the column as having a length of 30,000, not 2,000. On my own laptop, the 16.5.3 (Sybase SQL Anywhere) repository also shows the column as varchar(30,000). However, the client's 16.5.0 Oracle database shows the column as varchar2(2000).
    Has anyone else had this problem with an Oracle repository?

    Check your settings for MaxBytePerChar  in your ODBC connection details. If you have a  multi byte database this helps to correctly store chars that are represented by more than 1 byte, e.g. the EUR sign in a comment field.

  • ODBC error in BI Launch pad

    hi,
    am very new to SAP BI/BW/BO
    i am getting error while running the query in BI launch pad, which i imported from the UDT
    in UDT the values are being displayed and all the parameters were clearly defined
    the query is being running perfectly in RICH CLIENT but the same query unv file is not been running in BI launchpad
    where would be the actual problem ????
    NOTE:
    its showing ODBC error and no default drivers specified.
    but as i mentioned above , its displaying the values in UDT and Rich client ( Enterprise ) mode but not in BI Launchpad.
    please help me out..?
    specifications:
    SAP business intelligence 4.1
    32 bit windows home premium

    Santosh,
    Create the same ODBC connection in server also, so that you will be able to view in BI Launchpad also.

Maybe you are looking for