Passing username and password while calling the simple HTTP API

Hi,
I want to execute a graph by calling the http api from a java code. However, this gives me a 401 unauthorized http error as I am not passing the username and password to the clover http url.
The following is the format of the constructed url. - http://<host>:<port>/clover/simpleHttpApi/graph_run?sandbox=<sandboxname>&graphID=graph/Baseline.grf&verbose=FULL
Can anyone suggest how to pass user credentials to this url.
Thanks

Brett,
Thanks for the response.
The idea is to run the baseline graph using the simple http api and get the run id of the job. Then I plan to call
this url - http://<host>:<port>/clover/simpleHttpApi/graph_status?runID=1310924&returnType=STATUS_TEXT&waitForStatus=FINISHED_OK by passing the obtained run ID of the previous job dynamically to this url. This status has to be read and printed on the screen. Now all this is easy to write using java and executing the java class using the JAVA EXECUTE component of Integrator ETL 3.1. My only problem is how do I pass the user credentials.
Thanks

Similar Messages

  • How to pass username and password while invoking a web service through wsdl

    Hello All,
    i am calling a web service through wsdl, but it is giving error 401. i want to know how to pass userid and password when i am invoking webservice?
    i am using NetBeans 6.1.
    i did following thing:
    First i created one web application, then i right clicked on project new->web service client, and gave the url for my wsdl.
    after that i create one main class and try to call my required operation by that wsdl.
    Thanks in advance

    Thanks dumchikov, i tried the same thing what ever you told but there is no option for security.
    when i right clicked on web service reference its open 1 window which have 2 tab one is quality of service and second is wsdl customization, then i clicked on wsdl customization. which contain Global Customization, Port Types, Port Type Operations, Port Type Faults, Binding, Binding Operations, Services, Ports and External Binding Files. it don't have security option.

  • Username and Password while starting the weblogic

    Hi All,
    Whenever I call the start script to start weblogic the script asks for the username and password I tried changing the script many times with and without the values but it always requests for the username and password.Is there anything which needs to be set in the admin cosole.
    Let me know.
    Thanks
    sandhya

    Hello Sandhya,
    You need to specify boot up credentials in boot.properties files ,so at startup server doesn't prompts for them. Refer this link for more informaition. Once you bring the server up, these credential will get encrypted and thus seucured also.
    http://e-docs.bea.com/wls/docs81/ConsoleHelp/startstop.html#BootIdentityFiles
    Regards,
    Kuldeep Singh.

  • Hide username and password while calling Oracle reports from  forms11g

    Is there any other methods to hide the username and password other than define keymapping in CGICMD.DAT file in oracle forms 11g.

    Hope fully following code of procedure will eliminate the username and password.
    PROCEDURE RUN_REPORT_OBJECT_PROC(
    report_format                VARCHAR2,
    report_destype_name     NUMBER,
    report_file_name           VARCHAR2,
    report_otherparam          VARCHAR2) IS
    report_message           VARCHAR2(1000):='';     
    rep_status           VARCHAR2(1000):='';
    vjob_id                               VARCHAR2(4000):='';
    hidden_action               VARCHAR2(7000):='';
    v_report_other               VARCHAR2(4000):='';
    i                                                  number;
    c                                                  char;
    c_old                                        char;
    c_new char;
    report_id REPORT_OBJECT;
    report_server_name      VARCHAR2(100); --Report Server Name
    report_dest                         VARCHAR2(100); --Report Destination
    reports_servlet               VARCHAR2(100); --Report URL
    report_path                         varchar2(100);
    v_port                                   varchar2(10);
    BEGIN
         reports_servlet := 'http://localhost:7778'/reports/rwservlet';
         report_path := report_dest||report_file_name;
         report_id:= find_report_object('rep_obj');
         SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME,report_path);
         SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,report_server_name);
         SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,report_destype_name);
         SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESFORMAT,report_format);
         hidden_action := hidden_action ||'&report=' ||GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME);
         hidden_action     := hidden_action ||'&destype=' ||GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE);
         hidden_action     := hidden_action ||'&desformat='||GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESFORMAT);
         hidden_action     := hidden_action ||'&userid='     ||GET_APPLICATION_PROPERTY(username)||'/'||
                                       GET_APPLICATION_PROPERTY(password)||'@'||
                                       GET_APPLICATION_PROPERTY(connect_string);
         c_old :='@';
         FOR i IN 1..LENGTH(report_otherparam) LOOP
              c_new:= substr(report_otherparam,i,1);
              IF (c_new =' ') THEN
                   c:='&';
              ELSE
                   c:= c_new;
              END IF;
              -- eliminate multiple blanks
              IF (c_old =' ' and c_new = ' ') THEN
                   null;
              ELSE
                   v_report_other     := v_report_other||c;
              END IF;
              -- save current value as old value
              c_old := c_new;
         END LOOP;
         hidden_action := hidden_action ||'&'||v_report_other;
         hidden_action := reports_servlet||'?_server='||report_server_name||hidden_action;
         SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'pfaction='||hidden_action||' '||report_otherparam);
         report_message     := run_report_object(report_id);
    rep_status      := report_object_status(report_message);               
         IF rep_status='FINISHED' THEN
              vjob_id :=substr(report_message,length(report_server_name)+2,length(report_message));           
              WEB.SHOW_DOCUMENT(reports_servlet||'/getjobid'||vjob_id||'?server='||report_server_name,' _blank');
         ELSE
              null;
         END IF;
    END;

  • How can I pass username and password in a client bean to call a webservice?

    Hi,
    I have created a Client Java Bean for a web service (an automatically created Service from a Bapi) that requires username and password. How can I pass username and password in the code?
    Thank you!
    Julia
    This is my code:
    public Z_FlightGetlist port;
    Business Method.
    public String test1234() {
    try{
    BAPI_FLIGHT_GETLIST list = new BAPI_FLIGHT_GETLIST();
    list.setAIRLINE("KLM");
    port.BAPI_FLIGHT_GETLIST(list);
    return "ok";
    catch(Throwable e){
    return "error"+e;
    public void ejbCreate() throws CreateException {
    try{
    InitialContext ic = new InitialContext();
    Z_FlightGetlistService s = (Z_FlightGetlistService)ic.lookup ("java:comp/env/FlightProxy");
    Z_FlightGetlist vi = (Z_FlightGetlist)s.getLogicalPort(Z_FlightGetlist.class);
    this.port = vi;
    catch(Throwable e)

    Hello Julia,
    Check this document
    http://help.sap.com/saphelp_nw04/helpdata/en/50/a5d13f83a14d21e10000000a1550b0/frameset.htm
    Best regards, Maksim Rashchynski.

  • How to pass username and password with the portal url

    i want to access portal from my web site. i have created username and password fields in my web page. when submited , my portal page should open. so how to pass username and password with the portal url.

    This is not straightforward; but it is doable.
    First tell us about your portal version; portal 10.1.4 has a slightly different method of doing it and the pre-10g portals were completely different animals.
    And if you are in AS Rel 2, then the most important document for you would probably be the following:
    [Creating Deployment Specific Pages| http://download-west.oracle.com/docs/cd/B14099_19/idmanage.1012/b14078/custom.htm#i1015535]
    You might want to use it in conjunction with some metalink notes about your portal version and such a login page.
    hope that helps!
    AMN

  • Pass username and password adfs without using query string

    pass username and password ADFS without using query string, Please help.
    I used query string , but it is unsecured to pass credentials over url, with simple tool like httpwatch , anyone can easily get the password and decrypt it.

    Hello MohitJainMJ,
    You're not in the right forum. Here it's for FIM topics!
    Regards,
    Sylvain

  • Pass username and password ADFS without using query string, Please help.

    pass username and password ADFS without using query string, Please help.
    I used query string , but it is unsecured to pass credentials over url, with simple tool like httpwatch , anyone can easily get the password and decrypt it.

    Hi,
    According to your post, my understanding is that you had an issue about the ADFS.
    As this issue is related to ADFS, I recommend you post your issue to the forum for ADFS.
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=Geneva
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
    Thank you for your understanding and support.
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • Passing username and password question

    I am using the following to run an external crystal reports viewer:
    DECLARE
          v_username VARCHAR2(255) := NULL ;
          v_password VARCHAR2(255) := NULL ;
    BEGIN
          v_username := GET_APPLICATION_PROPERTY(username) ;
          v_password := GET_APPLICATION_PROPERTY(password) ;
       CLIENT_HOST('cmd /c "C:\Program Files\Jeff-Net Report Runner Viewer\JNRRE.EXE" jnReport=H:\OC\Computer Services\Oracle Database\DFACrystalReports\EPA_PTS\TAMS_SITES_LIST.rpt jnID='||v_username||' jnPassword='||v_password||'') ;     
    END ;Is the username and password going over the network as clear text? If so, how can I change it to non-clear text (for lack of a better term).
    Regards,
    Bill Chadbourne

    as its just a command sent to the client, i guess its send in clear-text.
    If you want it to be somehow encrypted, you could write your own java bean. A client call is just like
    Runtime rt=Runtime.getRuntime();
    Process p=rt.exec("theStatement");

  • JMS Adapter (for DI) does not allow passing username and password to JMS connection

    Post Author: PLed76
    CA Forum: Data Integration
    JMS Adapter (for DI) does not allow passing username and password to JMS connection. It has those fields only for MSMQ. Our Production environment does not allow us to connect to JMS (we use Tibco EMS) anonymously, so it prevents us from use of Data Integrator. Is there any way to pass those params, or obtain the correct version of JMS Adapter, or obtain source codes of the JMS Adapter so we can correct them ourselves (we can send you the corrected sources back) ? Thanks in advance for any help. (PL)ed76 Renaissance Capital

    Bump - Were having the same issue.
    Has anyone found a way to connect to Tibco with a user/pwd?
    Version 14.0.297.

  • How to retrieve WorkflowContext without passing username and password ?

    Hi,
    I have created a dynamic ApprovalGroup and inside this class i have the following private method.
    private IWorkflowContext fetchWorkflowContext() {
              IWorkflowServiceClient wfSvcClient =
                   WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.LOCAL_CLIENT);
              ITaskQueryService queryService = wfSvcClient.getTaskQueryService();
              IWorkflowContext workflowContext;
              try {
                   workflowContext =queryService.authenticate("weblogic", "weblogic1".toCharArray(), null);
                   } catch (WorkflowException e) {
                   e.printStackTrace();
    But when i retrieve workflowContext, I have to pass username and password.As this dynamic ApprovalGroup class will be deployed on the same SOA server under D:\Oracle\Middleware111150\Oracle_SOA1\soa\modules\oracle.soa.ext_11.1.1
    I have kept wf_client_config.xml under D:\Oracle\Middleware111150\Oracle_SOA1\soa\modules\oracle.soa.ext_11.1.1\classes.
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <workflowServicesClientConfiguration
    xmlns="http://xmlns.oracle.com/bpel/services/client">
         <server name="default" default="true" excludeFromFederatedList="true">
         <localClient>
              <participateInClientTransaction>false</participateInClientTransaction>
         </localClient>
         <remoteClient>
              <serverURL>t3://localhost:8001</serverURL>
              <userName>weblogic</userName>
    <password>weblogic1</password>
              <initialContextFactory>weblogic.jndi.WLInitialContextFactory</initialContextFactory>
              <participateInClientTransaction>false</participateInClientTransaction>
         </remoteClient>
         <soapClient>
              <rootEndPointURL>t3://localhost:8001</rootEndPointURL>
              <identityPropagation mode="dynamic" type="saml">
                   <policy-references>
                   <policy-reference enabled="true" category="security" uri="oracle/wss10_saml_token_client_policy"/>
                   </policy-references>
              </identityPropagation>
         </soapClient>
         </server>
    </workflowServicesClientConfiguration>
    How to retrieve WorkflowContext without passing username and password ?
    ============================
    workflowContext =queryService.authenticate("weblogic", "weblogic1".toCharArray(), null);
    ============================
    regards.
    Edited by: user10303338 on Oct 5, 2011 1:51 AM

    Use :
    Properties prop = System.getProperties();
    prop.put("proxySet","true");
    prop.put("http.proxyHost","yourProxy");
    prop.put("http.proxyPort","8080"); // change the port
    //prop.put("https.proxyHost","yourProxy");
    //prop.put("https.proxyPort","8080"); // change the port
    Denis

  • How to pass Username and password using Invoke to a webservice

    Hi Guys,
    Please tell me how can I pass Username and password using Invoke to a webservice, I am using SOA 11G.
    Thanks
    Yatan

    Hi Yatan
    I suppose you want to use basic HTTP authentication.
    Try to lookup in the SOA docs this property
    oracle/wss_http_token_client_policy
    http://download.oracle.com/docs/cd/E17904_01/web.1111/b32511/configuring.htm#WSSEC2261
    Regards
    Mihai

  • HT201303 I know my username and password but forgot the answers to the security questions and my recover email address is no longer valid.

    I know my username and password but forgot the answers to the security questions and my recover email address is no longer valid.  What to do?

    Basically, none; if desired, you can fill out and submit this form, but will probably be told to call.
    (122649)

  • Provide developer a username and password to access the weblogic

    Hi,
    we have a weblogic server with a domain name soa_domain and a managed server instance name soa_server1.
    we have 5 developer working. Our aim is to give each developer a username and password to access the weblogic for developing and deploying the applications so that they will not be able to access or tamper other developers work.
    how to accomplish this in weblogic 11g
    Thanks in Advance
    user3560574

    GO to Security Realms > myrealm > Users n Groups > Create a new user (say 'developer') > Click on 'developer' user > Click on Groups > Make it a member of the groups you want your developer to be depending on what kind of previledges you want to give them.
    -Faisal
    http://www.weblogic-wonders.com

  • I forgot my Firefox Sync username and password but have the sync code. Will that allow me to recover my bookmarks? I don't have access to the original computer in sync.

    I forgot my Firefox Sync username and password but have the sync code. Will that allow me to recover my bookmarks? I don't have access to the original computer in sync.

    You need at least the email address that you used to create that account to reset the password.
    *https://services.mozilla.com/

Maybe you are looking for