TES API Authentication error

I'm using Microsoft Visual Studio and able to import the teswebservice?wsdl and schema. However, when I try to connect using the user ClientCredential.   I receive an authentication error below. Any idea?? See attachment..     
Web Service :        http://10.3.0.70:8080/api/tes-6.0/webservice/teswebservice?wsdl  
We tried connecting to this API by creating an object and respective properties – but it is failed to authorize the services. Here the following Error
The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Basic realm="Tidal Application Realm"'.

Can you try setting the domain name separately, similar to how you have set Password ? I think setting domain\username is the culprit. For example:
_client.ClientCredentials.Windows.ClientCredential.Domain = "warzone42";
_client.ClientCredentials.Windows.ClientCredential.UserName = "user1428798";
_client.ClientCredentials.Windows.ClientCredential.Password = "p@ssw0rd";
Can you also try accessing the same webservice from a tool like SOAPUI ? Once done, you can see the request and response messages to troubleshoot. Such tools(SOAPUI) are Java based and will behave correctly as compared to when called from Visual Studio/.Net

Similar Messages

  • Oracle Webcenter REST API Authentication

    Hi All,
    I am getting authentication error while consuming the Webcenter REST API url http://webcenter.us.oracle.com/rest/api/resourceIndex.In Jdeveloper (URL Datacontrol)
    So please help me where to Provide the authentication details.
    Thanks.

    Hi.
    You need to add Authentication to your REST requests. Using Oracle WebCenter Portal REST APIs - 11g Release 1 (11.1.1.6.3)
    From my experience, I always used REST API from a REST Java Wrapper done by a mate: Oracle Webcenter Portal & Content Tips: Using WebCenter REST API from Java
    - Samples snippet of authentication:
    When executing code inside of the domain use OIT:
    b64EncodedToken = WCSecurityUtility.issueTrustServiceSecurityToken();
    String auth = "OIT " + b64EncodedToken;
    connection.setRequestProperty(AUTH_PROPERTY, auth);
    When executing code for testing in your JUnit or outside, use directly BASIC authentication:
    String userpass = "weblogic:weblogic1";
    BASE64Encoder encoder = new BASE64Encoder();
    b64EncodedToken = encoder.encode(userpass.getBytes());
    String auth = "Basic " + b64EncodedToken;
    Create a DataControl manually create an instance of the connection depending of the environment.
    Take a look in the official documentation and in the blog entry links.
    Regards.

  • How to fix authentic error in game centre of iPad mini?

    How to fix authentic error in game centre of iPad mini?

    Following further research, this keyboard lag issue appears to be related to the (botched) iOS 7.1 update. It's good to know I am not the only user who had his iPad mini rendered unusuable by the iOS 7.1 update, however that does not solve my problem.
    Anyone out there who has further suggestions (except doing a factory reset via iTunes)?

  • Remote Desktop Connection - Authentication error

    Hello,
    I wish to connect to my work PC from my laptop. The remote desktop connection was working fine till yesterday, but today i receive the following error when i try to connect - 
    "An authentication error has occurred. The Local Security Authority cannot be contacted. Remote Computer: <name>."
    I have Win 7 ultimate installed on my 32 bit system, and have tried solutions proposed in the other threads. I do not require a NLA check for connection, i have always used the remote desktop with this option unchecked. Could anyone help me with this please?
    Is this a error on my Laptop, or do i need to contact the network administrators for this?

    Hi!
    It could be as easy as you need to change your password on your domain accout.
    Are both computers connected to the same domian or is your work computer connected to a domain and your laptop connected to a workgroup?
    If your password has expired, this error can occur, so I would start to check that since it stoped working over night.
    Best regards
    Andreas Molin

  • 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

  • Query: Authentication Error while consuming a web service

    Hi All,
    I've generted a WSDL file by using the following steps.
    1.Created a RFC enabled ABAP pgm
    2.Created a web service out of it (using webservice creation wizard - default virtual host. so my port is 8100)3.Released the web service (WSCONFIG)
    4.Generated the WSDL file (WSADMIN + CTRL F1).
    Then I wanted to consume it from a .Net program. But am getting authentication error in .Net.
    Do I need to configure anything for Authentication (username and password) from R/3 side?..
    How Do I pass the credential info from .Net?.
    Should I take care of any setup other than what I've specified?.
    Any Blogs or response would be appreciated.
    Thanks,
    Joe.

    Usually like this:
    WSReference1.WSPProxy proxy = new WSReference1.WSPProxy();
    proxy.Credentials = new System.Net.NetworkCredentials("Username", "Password");
    proxy.PreAuthenticate = true;
    proxy.CallMethod();

  • Client Authentication error while invoking portal web service.

    Hi All,
    I have created a java portal web service from portal service using NWDS, I am getting client authentication error while invoking the service.
    Please tell me where to enter client authenticity details.
    regards
    Santosh

    hi,
      check whether you have the UME permissions for accessing this webservice.
    Rdgs,
    Guru

  • Authentication Error while  Configue SOA in JDev 11g TP4

    Hi everyone.
    I'm trying to configure SOA suite 11g in my local system. I have done the schema creation and already created a App server connection in JDev->Tools-> Java EE Runtime Preferences.
    When I start the configue SOA, it failes to start or stop the oc4j instance as below phase:
    [echo] Changing oc4j ports with following values:
    HTTP Port : 8988 -> 8888
    RMI Port : 23891 -> 12401
    RMI SSL Port: 24043 -> 24043
    JMS Port : 9227 -> 12601
    [echo] Create jms queues/topics from new oc4j jms template
    [echo] Changing jms.xml to use port : 12601
    [echo]
    * Configuring SOA Infrastructure. This will take 5-10 minutes. *
    * Summary of SOA configuration parameters: *
    ** Oracle Home = F:\jdeveloper11g\
    ** Oracle Instance = F:\jdevinstance\system11.1.1.0.22.49.49
    ** SOA Database = localhost:1521:XE
    ** SOA Database User = jdev_soainfra
    ** HTTP Port = 8888
    ** RMI Port = 12401
    ** JMS Port = 12601
    ** Component Type = o.j2ee
    ** Component Name = embedded-oc4j
    ** Configure OWSM = false
    ** Configure SOA Console = true
    ** Configure B2B UI = false
    ** Configure XEngine = false
    [echo] ==Stopping oc4j standalone...
    [exec] Result: 1
    [echo] ==Waiting max 240 second(s) for shutdown of URL http://ESFANDIYAR:8888...
    BUILD FAILED
    F:\jdeveloper11g\install\bpel\build.xml:10: The following error occurred while executing this line:
    F:\jdeveloper11g\install\bpel\soa-infra-config.xml:48: The following error occurred while executing this line:
    F:\jdeveloper11g\install\bpel\soa-infra-config.xml:89: ***************************************************
    * Configuring SOA Infrastructure has FAILED.
    * If following log files exists, please check them for possible cause:
    * F:\jdevinstance\system11.1.1.0.22.49.49\o.j2ee\embedded-oc4j\install\tmp\soa-infra-java.log
    * F:\jdevinstance\system11.1.1.0.22.49.49\o.j2ee\embedded-oc4j\log\startsoa.log
    Total time: 4 minutes 23 seconds
    I checked the log file and it says it is encountered an authentication error. I'm wondering which user name and password it is referring and where shall I set the correct values. During the app server connection, I have entered the proper value for oc4jadmin/password.
    Aug 30, 2008 11:37:00 PM oracle.j2ee.util.AnnotatedLogger logWithThrowable
    WARNING: J2EE JNDI-00005
    Authentication failed when trying to connect to the server. You need to provide a valid username and password.
    Caused by:class javax.naming.AuthenticationException: Not authorized
    oracle.oc4j.admin.deploy.cmdline.AdminCommandException:
    Failed to connect to the server with deployment URI (deployer:oc4j:ESFANDIYAR:12401). Please refer to the exception trace from server above to identify the cause.
         at oracle.oc4j.admin.deploy.cmdline.AdminCommandBase.execute(AdminCommandBase.java:54)
         at oracle.oc4j.admin.deploy.cmdline.Oc4jAdminCmdline.executeCommand(Oc4jAdminCmdline.java:107)
         at oracle.oc4j.admin.deploy.cmdline.Oc4jAdminCmdline.main(Oc4jAdminCmdline.java:71)
    Thanks for any help.
    Esfand

    Hi Heidi,
    I tried once again to install a fresh instance of Oracle soa suite 10.1.3.0 and upgraded it to 10.1.3.4 successfully. I did all the JDeveloper 11g installation and configure SOA process all successfully. I can create a connection to OC4J using 12401 RMI port successfully but none of my applications are deployed to server.
    This message is repeatedly displaying in messages tab:
    Exception returned by remote server: com.evermind.server.rmi.RMIConnectionException: Disconnected: oracle.oc4j.admin.management.shared.SharedModuleType. local class incompatible during deploy ...
    The default OC4J RMI port is 23791 but in my installation it is set to 12401 when I checked the Runtime Port option of Oracle Application Server and the connection is fine with this port but applications can not be deployed with this configuration.
    I can deploy applications on separate standalone OC4J instance successfully but not able to do it with my SOA application server.
    Any comments will be appreciated.
    Thanks again
    Esfand
    Edited by: user3788199 on Sep 8, 2008 6:50 AM

  • Authentication Error while Sending Email from SMTP server.

    Authentication Error while Sending Email from SMTP server.  Can receive emails but cannot send emails from this account. 

    no email account was setup on the phone unless it was issued by your company.
    gmail is required but no server address ports to enter.
    my gmail account was setup before i took delivery of the phone but could have been done when phone was activated.
    i added cox pop3 email and had to manually enter both pop3 and smtp servers with both boxes checked on both servers.
    i doubt if it's a verizon issue.

  • Remote Desktop Connection Authentication Error from Windows 8.1 Pro to Windows 7 Pro

    I keep trying to connect to my server running Windows 7 Pro from my laptop running Windows 8.1 Pro, but I get the following message after providing
    my credentials:
    "An authentication error has occurred (Code: 0x8007001f)"
    I can't find any reference to this error code being associated with using remote desktop.

    Hello,
    Are you connecting to a server as part of a domain ? if so confirm you are using adequate credentials for remote desktop for example: username: domain\administrator 
    if not you can try connecting to the localhost using:
    username: .\administrator   - for example
    also you can try running your remote connection in admin mode:
    Win + R - bring up run then type:
    mstsc /admin
    hope that helps.
    Cheers,
    Harry

  • Oracle BI Portlet -Authentication Error  in WebSphere Portal

    We have deployed the oracle BI Portlet in WebSphere Portal Server.
    We have made necessary changes in the portlet.xml and created the credential vault to store user information as well .
    Our WebSpere Portal is integrated with LDAP Server .
    When the Portal Admin logs in he can see the reports in Oracle BI Portlet ......however a non admin user gets the following error message.
    Authentication error. Details: An invalid User Name or Password was entered.
    Can someone plz help.

    Hi
    I am trying to integrate OBIEE 10.1.3.4.1 with Websphere Portal.
    I perform following steps :
    1. Installed OBIEE and created a report at url "http://punitp63969d:9704/analytics/saw.dll?Dashboard"
    2. Modified portlet.xml of sawjsr168portlets.war as follows
    <preference>
    <name>oracle.bi.presentation.sawserver.URL</name>
    <value>http://punitp63969d:9704/analytics/saw.dll?Dashboard</value>
    <read-only>false</read-only>
    </preference>
    <preference>
    <name>oracle.bi.presentation.portlets.jsr168.reportui.AdminUserName</name>
    <value>Administrator</value>
    <read-only>false</read-only>
    </preference>
    <preference>
    <name>oracle.bi.presentation.portlets.jsr168.reportui.AdminPwd</name>
    <value>Administrator</value>
    <read-only>false</read-only>
    </preference>
    <preference>
    <name>oracle.bi.presentation.portlets.websphere.SuperuserSlotId</name>
    <value>sawseveradmin</value>
    <read-only>false</read-only>
    </preference>
    where Administrator/Administrator is user-id/password for OBIEE and
    sawseveradmin is name of credential vault in WebSphere-Portal.
    3. Deployed the war on WebSphere Portal and got portlet disable with following error in log :
    WSVR0200I: Starting application: PA_SAWReport
    9/4/09 18:42:52:067 IST 000001ff ApplicationMg A WSVR0204I: Application: PA_SAWReport Application build level: Unknown
    9/4/09 18:42:52:708 IST 000001ff WebGroup A SRVE0169I: Loading Web Module: SAWReport.
    9/4/09 18:42:52:973 IST 000001ff VirtualHost I SRVE0250I: Web Module SAWReport has been bound to default_host:10000,:80,:10002,:10015,:10016,:443,:10023,:10026,:10040,:10035.
    9/4/09 18:42:53:130 IST 000001ff ApplicationMg A WSVR0221I: Application started: PA_SAWReport
    9/4/09 18:42:59:692 IST 00000037 WebContainer E SRVE0255E: A WebGroup/Virtual Host to handle /searchfeed/myserver/scopes has not been defined.
    9/4/09 18:43:26:458 IST 00000037 WebContainer E SRVE0255E: A WebGroup/Virtual Host to handle /searchfeed/myserver/scopes has not been defined.
    9/4/09 18:43:50:318 IST 000000a5 ServletWrappe I SRVE0242I: PA_SAWReport [wps/PA_SAWReport] Oracle_Business_Intelligence_Report_View_Portlet: Initialization successful.
    9/4/09 18:43:50:521 IST 000000a5 MimeResponseI E com.ibm.ws.portletcontainer.core.impl.MimeResponseImpl getWriter EJPPC0176W: Invalid content type
    9/4/09 18:43:50:661 IST 000000a5 ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: Oracle_Business_Intelligence_Report_View_Portlet. Exception thrown : javax.servlet.ServletException: java.lang.IllegalStateException: No content type set.
    at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doDispatch(PortletServlet.java:369)
    Caused by: java.lang.IllegalStateException: No content type set.
         at com.ibm.ws.portletcontainer.core.impl.MimeResponseImpl.getWriter(MimeResponseImpl.java:114)
         at com.siebel.analytics.web.portlets.jsr168.ReportUI.checkUser(ReportUI.java:852)
         at com.siebel.analytics.web.portlets.jsr168.ReportUI.doView(ReportUI.java:167)
         at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
         at com.siebel.analytics.web.portlets.jsr168.ReportUI.doDispatch(ReportUI.java:1058)
         at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
         at com.ibm.ws.portletcontainer.invoker.impl.PortletFilterChainImpl.doFilter(PortletFilterChainImpl.java:128)
         at com.ibm.wps.propertybroker.standard.filter.C2APortletFilter.doFilter(C2APortletFilter.java:185)
         at com.ibm.ws.portletcontainer.invoker.impl.PortletFilterChainImpl.doFilter(PortletFilterChainImpl.java:120)
         at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doDispatch(PortletServlet.java:573)
         at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:114)
         at com.ibm.isclite.container.collaborator.PortletServletCollaborator.doRender(PortletServletCollaborator.java:68)
         at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:105)
         at com.ibm.ws.portletcontainer.rrd.RRDServerPortletServletCollaborator.doRender(RRDServerPortletServletCollaborator.java:123)
         at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:105)
         at com.ibm.ws.portletcontainer.cache.CacheCollaborator.doRender(CacheCollaborator.java:92)
         at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:105)
         at com.ibm.wps.pe.pc.waspc.core.impl.PortletServletCollaboratorImpl.doRender(PortletServletCollaboratorImpl.java:156)
         at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:105)
         at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doDispatch(PortletServlet.java:273)
         ... 219 more
    Please help me resolve this issue.Thanks in advance.

  • AS2 - Authentication Error

    Hi,
    We are setting up a EDI Customer in our development system and they tried to connect with us by sending a test order.  We have loaded the certificate given by them into our channels.
    Unfortunately, in the seeburger message monitor, It mentioned authentication error.  When i checked the comms., log, it said that it could not find the alias name.
    Is it because we had renamed the certificate while loading into visual admin. What else can be wrong?
    Regards
    Krish

    Hi Krish
    This links should be useful to you
    How to import Third ParSecurity Certificate into PI
    Regards
    Ramesh

  • HTTP XML Data Source authentication error

    Morning All,
    I have just started playing around with using XML as a data source for my CR4Ev2.0.1 reports.
    I have managed to create the local inline reports and change their data source loacation with no current
    issues.
    I am now trying to create the HTTPXML reports using code from Ted's BLOG.
    I manage to create a new report, and can open it in design, I can see the data source structure but as
    soon as I try browse the data or preview my report I get the following error
    Cannot Open file
    Server returned HTTP response code: 407 for URL:
    http://myserver/httpxml.xml
    I had a quick look up the 407 error and it seems to be a Proxy authentication error, we do have a proxy
    server setup which requires a username and password.
    Before I go through what I have tried I want to confess that for this httpxml.xml file all I did was take my
    inline.xml file and rename it and make it avaliable via a URL. So this might be the whole problem but I
    am sure this is ok.
    So I have tried turning off the proxy server as this URL is local so I dont need to go through the proxy.
    If I go to the URL in my browser it works fine and I do not need to enter any proxy details.
    Thats the problem with my HTTP XML attempt.
    If I use the code as is, from Ted's BLOG, for
    Crystal Reports off of HTTP XML data URL
    and try use the following 2 URLs
    propertyBag.put(
    "Http(s) XML URL", "http://resources.businessobjects.com/support/downloads/samples/cr/customer_db/orders.xml");
    propertyBag.put(
    "Http(s) Schema URL", "http://resources.businessobjects.com/support/downloads/samples/cr/customer_db/orders.xsd");
    propertyBag.put(
    "Http(s) XML URL", "http://resources.businessobjects.com/support/downloads/samples/cr/customer_db/customer.xml");
    propertyBag.put(
    "Http(s) Schema URL", "http://resources.businessobjects.com/support/downloads/samples/cr/customer_db/customer.xsd");
    But I get the following errors
    Exception in thread "main" com.crystaldecisions.sdk.occa.report.lib.ReportSDKLogonException: Logon
    Error: {0}---- Error code:-2147217393 Error code name:dbLogonFailed
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.byte(Unknown
    Source)
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.addTable(Unknown
    Source)
         at com.businessobjects.samples.CreateHttpXML.main(CreateHttpXML.java:90)
    Caused by: com.crystaldecisions.reports.common.LogonFailureException: Logon Error:{0}
         at com.crystaldecisions.reports.queryengine.Connection.br(Unknown Source)
         at com.crystaldecisions.reports.queryengine.Connection.bs(Unknown Source)
    Any ideas as to what my issues are or what I am missing.
    Thanks in advance.
    Darren
    Edited by: Darren Jackson on Apr 28, 2009 2:12 PM
    Is there any documentation as to what entries I can use in the property bag.
    Like is there a ("ProxySet", false) or something along those lines?
    Edited by: Darren Jackson on Apr 28, 2009 5:28 PM
    I have made a little more head way.
    I saved the Orders.xml and Orders.xsd files onto my webserver and editied the code to only worry about
    the Orders and ignore the Customer files.
    I now create my reports, open them in Eclipse to design them, but when I try preview the data it is now
    asking me for a username and password. I have tried all combinations that I can think of for our systems
    but none work.
    Grrrrrrrrrrrrrrr

    I have subsequently determined that my main problem was my "cached" proxy settings within Eclipse.
    Even though I removed the proxy settings in Eclipse, it still required me to restart Eclipse after which it
    all started working ok.
    That was my main problem, but I am still interested in the Property Bag options that I mentioned before.
    If proxy settings are needed, how would one go about setting these details?
    Thanks
    Darren

  • Every time I launch Mail.app my server gets STMP authentication error

    From my server STMP log file:
    2015-02-23 15:48:57 plain authenticator failed for 77-173-xxx-xxx.ip.telfort.nl (mbp.home) [77.173.xxx.xxx]: 535 Incorrect authentication data (set_id=username)
    For some reason Mail.app tries to connect to the STMP server but doesn't properly authenticate. It does seem to set the username but not a valid password so the log files on my SMTP server are filled with these errors. Even worse brute force detection automatically blocks the ip address in the firewall because of this after 10 attempts. It's not just me, many other customers that use a mac have the same problem (I notice this because they call me for not being able to connect because of the blacklisting by the brute force scanner)
    How can I fix this? Why does Mail.app try to connect without proper authentication?

    No. You said to Change the authentication setting for the account on the client to one that the server supports. But I already have that. Sending mail works just fine, but for some reason Mail.app still causes authentication errors on launch and periodically about every 10 minutes

  • 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.

Maybe you are looking for

  • Help!! Can't install Photoshop CS4 in Windows XP SP2

    Adobe Photoshop CS4 错误: Error 1612. 这个产品的安装来源无法使用.请验证来源是否存在,是否可以访问. Adobe Photoshop CS4 错误: Error 1612. 这个产品的安装来源无法使用.请验证来源是否存在,是否可以访问. Adobe Bridge CS4 错误: Error 1612. 这个产品的安装来源无法使用.请验证来源是否存在,是否可以访问. Adobe Color EU Extra Settings CS4 错误: Error 1624.

  • Duplicates being imported on iPhoto version 9.5.1 help!!

    Hi, I am using version 9.5.1 of iPhoto for mac and in the previous version I was able to check the box that stated to not import duplicates any time I connected my iphone. With the new version I am not able to have that option. I have used a 3rd part

  • Expected yield variance in production order

    Hello, The issue is when we confirm the order operation wise, an error Message no. RU139 is coming, however the production order "expected yield variance" field is 4 and the order quantity is 1. GR is not taken place, hence delivered qty field is 0.

  • IPhone & JVC DAB Car Radio - advice

    Hi Guys & Gals, Can I seek your advice please? I have a JVC DAB car radio which has a USB connection for my iPod. Works fine when I connect my iPod, but I now have an iPhone 3GS. When I connect this to the head unit via the USB the iPhone doesn't rec

  • HT5312 security questions

    I no longer have access to my rescue email account and I don't remember the answers to my security questions so how do I access and change the security questions?