How to pass login credentials dynamically to secured partnerlink in a BPEL

Hi,
I am trying to invoke a secured web service from a BPEL.And requirement is to dynamically pass the username and password . I have done the following steps to pass the login credentials to the partner link.
Infact I have followed one of the oracle forums.BUT ITS NOT WORKING.
====================================================================================================
1. Imported the xml schema "oasis-200401-wss-wssecurity-secext-1.0.xsd"
2. Created a variable "SecurityContext"
<variable name="SecurityContext" element="ns2:Security"/>
3.Created a copy rule.
<copy>
<from>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:Username>myusername</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">mypassword</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</from>
<to variable="SecurityHeader"/>
</copy>
4. Added the following xml to the invoke operation.
<invoke name="Invoke_1" partnerLink="UnitHealthService"
portType="ns1:UnitHealth" operation="queryUnitHealthInfo"
inputVariable="Invoke_1_queryUnitHealthInfo_InputVariable"
outputVariable="Invoke_1_queryUnitHealthInfo_OutputVariable"
bpelx:inputHeaderVariable="SecurityContext"/>
5. Deployed the BPEL sucessfully.
6. Output message given by BPEL console is
<Faulthttp://schemas.xmlsoap.org/soap/envelope/>
<faultcode>env:Server</faultcode>
<faultstring>com.oracle.bpel.client.delivery.ReceiveTimeOutException: Waiting for response has timed out. The conversation id is a28500bf6f4d1dc9:- 488f4503:1215f79430f:-7d71. Please check the process instance for detail.</faultstring>
</Fault>
7. In the VISUAL flow diagram , message generated by the Invoke activity is as below:
<summary>exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 401 Unauthorized</summary>
So FINALLY ITS NOT CONNECTING.
====================================================================================================
When I created the properties and hardcoded the username and password like below, its worked.
<property name="basicHeaders">credentials</property>
<property name="basicUsername">myusername</property>
<property name="basicPassword">mypassword</property>
Can anyone suggest HOW CAN I DYNAMICALLY PASS USERNAME AND PASSWORD to the secured web service via partner link??
Thanks,
Kumar

I have tried it but itwas not working..
I am not able to set exactly the copy rules given in that blog as that blog has wsse:password king of assignments where as when I try to assign , I have the asignment like /ns2:password .
Am I mising something here?
I have imported only oasis-200401-wss-wssecurity-secext-1.0.xsd.
Thanks,
Kumar
Edited by: GenuineOracle on Jun 2, 2009 5:38 PM

Similar Messages

  • How to pass the arguments dynamically to a Oracle procedure.

    Hi all..
    How to pass the arguments dynamically to a procedure.
    Thanks in Advance.

    I have a concurremt program which has 5 parameters right now. The user can add more parameters from front end as per their requirement.
    So that time.. the 6th parameter has to add to my procedure dynamically.
    Thanks.

  • How to pass Stages Guid dynamically in declarative workflow

    hello,
    How to pass Stages Guid dynamically in declarative workflow.
    Example For List we used to pass guid like this 
    System.Guid.Parse("{$ListId:Lists/Testlist;}")
    help me out to pass stage guid...
    any help would be appreciated!!!!
    Thanks regards, Vignesh.

    You need to make use of command line arguments. You can go through this link for example.
    http://www.freeos.com/guides/lsst/ch02sec14.html
    In your shell script(say test.sh) you can have
    exp fas/xxxxxx@fasbd001 file=audit_grn_28aug.dmp tables=audit_grn query=\"where org_grp_i=$1 \"$1 indicates it accepts the first argument from command line. if you want to pass 19, add that next to the script you're executing.
    From command line you can call this shell script say test.sh 19

  • How to save the credentials in windows security when opening a report?

    How to save the credentials in windows security when opening a report?
    in Silverlight program, user click a link to SQL server report services link, it pops up a new IE window and ask for windows security.
    Type the user name password in and check save password. reports showed and close IE. user click again, the same windows security popup dialog showed up. how to really remember the credentials?
    If keep the IE open, reports shows in second tab of the same IE window for the second click, and it didn't ask for the windows security.

    Hi Lascorpion,
    According to your description, users need to type username and password before they can open the SSRS report when reopening IE, right? If I have anything misunderstood, please point it out.
    Base on my research, this issue offten occurs on IE9 which ships with Windows 7 operating systems. In this case, to avoid this issue we can add the report URL to the trust site, for the detail information, please refer to the link below.
    SSRS Prompt for username and password in IE
    Regards,
    Charlie Liao
    TechNet Community Support

  • Bypassing login credentials--OS X security questions

    I just ran across this article from OS X Daily in 2010. It describes three methods to unlock a Mac without a password and with all user files remaining intact.
    1. Assuming that those techniques work--particularly engaging a new setup procedure--and the comments suggest that they do, why wouldn't OS X login credentials become essentially security by obfuscation instead of security by a strong passphrase?
    2. What happens if File Vault 2 has been enabled?

    Very helpful info! Thank you.
    I also found this, which asserts that File Vault inserts an authentication process before the availability of the keyboard procedures described in the article above.

  • How to pass concurrent request_id dynamically into workflow Business event subscription.

    Hi All,
    I created a workflow to send notification to user with the details in the message body of the workflow.
    Attached the same workflow to the subscription created under the seeded Business event 'oracle.apps.fnd.concurrent.request.completed'.
    Enabled the Business event for the concurrent program 'XXTEST' for 'request completed.'
    Workflow flow is:  Event>FUNCTION>Notification>END.
    In my workflow there are 4 attributes, 1 attribute is input (request id) for the function(procedure) attached in the workflow, based on that 1 input attribute (request id) the rest of 3 attributes are derived.
    Presently I have given constant value for the Attribute (request id) under its properties. I need to pass it dynamically as soon as the conc request is submitted.
    As I said its working perfectly, i.e., user (EG_AFZAL) receives notification after conc request is completed.
    Kindly suggest how to pass request id in the workflow.
    Regards,
    Afzal.

    Hi SamK,
    I applied as u suggested above in the procedure, but it is giving compilation errors.
    Below is my procedure which is attached to function in the workflow.
    CREATE OR REPLACE PROCEDURE APPS.XXWF_EMP_DETAILS
    ( ITEM_TYPE IN VARCHAR2,
      ITEM_KEY IN VARCHAR2,
      ACT_ID IN NUMBER,
      FUNC_MODE IN VARCHAR2,
      RESULT_OUT OUT VARCHAR2)
      AS
      V_REQUEST_ID NUMBER;
      V_USER_NAME VARCHAR2(240);
      V_PAYROLL_NAME VARCHAR2(40);
      V_CREATION_DATE DATE;
       BEGIN
      IF FUNC_MODE = 'RUN' THEN
        --  V_REQUEST_ID := getvalueforparameter('REQUEST_ID') ;
      SELECT REQUEST_ID INTO V_REQUEST_ID
    FROM PAY_PAYROLL_ACTIONS
    WHERE CREATION_DATE IN (SELECT MAX(CREATION_DATE) FROM PAY_PAYROLL_ACTIONS);
    select pap.payroll_name, fu.user_name, paa.creation_date
    INTO V_PAYROLL_NAME, V_USER_NAME,V_CREATION_DATE
      from
    pay_payroll_actions paa,
    pay_all_payrolls_f pap,
    fnd_user fu
    WHERE PAA.REQUEST_ID =V_PERSON_ID-- 44345723
    and paa.payroll_id = pap.payroll_id
    and fu.user_id = paa.created_by;
      --ASSIGNING VALUES TO THE ATTRIBUTES IN THE WORKLOW
      WF_ENGINE.SETITEMATTRTEXT(ITEM_TYPE,ITEM_KEY,'EMP_NUMBER',  V_PAYROLL_NAME);
      WF_ENGINE.SETITEMATTRTEXT(ITEM_TYPE,ITEM_KEY,'FULL_NAME', V_USER_NAME);
      WF_ENGINE.SETITEMATTRDATE(ITEM_TYPE,ITEM_KEY,'HIRE_DATE',V_CREATION_DATE);
      END IF;
        RESULT_OUT := 'COMPLETE';
      END;
    Kindly suggest.
    Regards,
    Afzal.

  • Pass login credentials into a test-path cmdlet

    Here is the scenario. I'm creating a SQL Server Job that will use Powershell to test if a session could be made to a remote server before creating one. I was able to successfully create a cmdlet that will test a path that connects to a remote shared server
    on the same domain. The remote server I'm trying to connect to is on a different domain so I need to pass along the login credentials. I'm stuck in finding the correct way to perform this. Is there a way to pass the login information without a prompt? Below
    is my test-path command I want to use.
    If(Test-Path -path \\IPADDRESS\Folder\subfolder)
        write-error "Remote connection test passed successfully"
    else {Write-Error "Could not connect successfully to "\\IPADDRESS\Folder\subfolder" -EA Stop}
    Also I was trying to use PSCredential to achieve this but was unsuccessful and received an error. Below is the powershell commands and error message.
    $SecurePassword = Read-Host -Prompt "Enter password" -AsSecureString
    $UserName = "DOMAIN\User"
    $Credentials = New-Object System.Management.Automation.PSCredential -ArgumentList $UserName, $SecurePassword
    PS C:\Windows\system32>  If(Test-Path -path \\IPADDRESS\Folder\subfolder $Credentials)
    >>   {
    >>
    >>     write-error "Remote connection test passed successfully"
    >>
    >>
    >>   }
    >> else {Write-Error "Could not connect successfully to "\\IPADDRESS\Folder\subfolder" -EA
    Stop}
    >>
    Test-Path : A positional parameter cannot be found that accepts argument 'System.Management.Automation.PSCredential'.
    At line:1 char:14
    +  If(Test-Path <<<<  -path \\IPADDRESS\Folder\subfolder $Credentials)
        + CategoryInfo          : InvalidArgument: (:) [Test-Path], ParameterBindingException
        + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.TestPathCommand
    Thank you in advance

    Hi DBA_attack,
    Thanks for your posting.
    If there also occurred error after add the parameter -Credential, please also note: This parameter -Credential in test-path is not supported by any providers installed with Windows PowerShell.
    You can also try to use Invoke-Command with the credential who has the permission to access the tested file path.
    I hope this helps.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • How to pass DB link dynamically

    Hi,
    I need to pass DB link dynamically to SQL i.e, if I run in stage DB then I wanted to pass @DBSTAGE , if I run in prod DB then I wanted to pass @DBPROD to my report SQL. How can I achieve this?
    Thanks in advance for your help.

    You may have a stored proc returning a ref cursor. And, in that stored proc, you will have something like open r_cursor for 'select ... from '||p_db_link_name||'... '
    Or, you may as well create or replace a view, changing the db link.
    When I have to do with a DB link i generally use synonyms (or views) and do not write the stored procs, nor forms that reference directly the DB link.

  • -Inquiry on how to set login credentials for Oracle management server?

    Dear All
    I am on my Oracle Enterprise Manager console. Can you please let me know how can I set its login credentials so other users can login to it via network?
    Thank you

    Thank you very much. I found my super administrator credentials set as 'SYSMAN/oem_temp' and it got through.

  • How to pass the "path" dynamically to KM navigation iView ?

    HI Experts.
    This is my issue:
    I have a WD Java iView, with a data table.
    In the same page, I have a KM navigation iview too.
    Conceptually, each row in this table, have some documents in a CM Repository asociated.
    This repository has subfolders for each master data in the table.
    (example: imagine a table with material master data, and a repository with a subfolder for each material,
    and inside of it, several unstructure documents about this material.
    Then, I need to call a KM Navigation iview when click a table row, passing parameters, in special the "path".
    I am using this code in my action (triggered from webdynpro iview)
         WDPortalNavigation.navigateAbsolute("ROLES://portal_content/com.stk.demos.folders.zz_demos/com.stk.demo.ch.TEST_CH/com.stk.demo.ch.Listar_Docs",
         WDPortalNavigationMode.SHOW_EXTERNAL, (String)null, (String)null,
         WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS, "test",
         (String)null, (String)null );
    Partially it works, the window open and show the navigation iview, but...
    in the root directory (or directory indicated in iView harcoded properties);
    But I need pass the path !
    How can I call that iView, dinamically using a parameter, the path (property ID: path)
    to the KM navigation iView, in order to open initially in a indicated path?)
    I have read this link
    http://help.sap.com/saphelp_nw04s/helpdata/en/c3/235a428a1e9041e10000000a1550b0/frameset.htm
    but, I still can't understand how to use this parameters.
    Thanks in Advance.
    Leandro.

    Hi Leandro,
    You can create your own proxy IView and then redirect it to KM Navigation IView.
    This way you can dynamically change the path.
    Check this to know about proxy IView:
    KM Document Iview Source Code
    /thread/190600 [original link is broken]
    Regards,
    Praveen Gudapati

  • How to pass the value dynamically in exp/imp utilities of oracle

    I want to pass the value of org_grp_i dynamically,instead of passing the value
    19.Can you please tell how to write the script to this
    exp fas/xxxxxx@fasbd001 file=audit_grn_28aug.dmp tables=audit_grn query=\"where org_grp_i=19 \"
    where xxxxxx is the password
    Thanks

    You need to make use of command line arguments. You can go through this link for example.
    http://www.freeos.com/guides/lsst/ch02sec14.html
    In your shell script(say test.sh) you can have
    exp fas/xxxxxx@fasbd001 file=audit_grn_28aug.dmp tables=audit_grn query=\"where org_grp_i=$1 \"$1 indicates it accepts the first argument from command line. if you want to pass 19, add that next to the script you're executing.
    From command line you can call this shell script say test.sh 19

  • How to pass login name and password

    Hi all,
    If this question has been asked before, please let me know, and I am sorry for duplicate the question raising.
    I want to use the login name and password which are entered from the left frame(topic frame) in the right frame ( the content frame).
    I have 3 jsp programs, "A.jsp" is for validate the login (name and password), "B.jsp" contains a form-submit to add the records to a database. "C.jsp" is the actual one which does the updating to the database.
    Q1, how can I re-use the login name and password for "B.jsp" and "C.jsp"?
    Q2, is there any security problem to do so?
    your useful reply will give me a great help.
    ths

    or try here:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=308840
    http://forum.java.sun.com/thread.jsp?forum=31&thread=295349

  • How to pass Proxy user dynamically in Toplink proxy authentication?

    Hi,
    I'm using Toplink Proxy Authentication with my ADF JSF application and want to pass the Proxy user dynamically to the preLogin(..) method of mySessionEventListener (Currently proxy user is hard coded).
    This is to make my application user as the Proxy user.
    I have tried to do this in two ways:
    1) In my Login screen Backing Bean, I retrieve the session as
    session = sessionFactory.acquireSession(); and set the application user in it as
    session.setProperty("proxyUser1", inputText1.getValue());
    But,
    session.getProperty("proxyUser1") returns null in the preLogin(..) method
    2) I add a loginUser property to the mySessionEventListener class and create a constructor to set it.
    Then I call the constructor from my Login Backing Bean as
    mySessionEventListener eventMgr = new mySessionEventListener(<proxy_user>);
    session.getEventManager().addListener( eventMgr );
    But, the loginUser property seeems to be transient and does not retain value when retrieved in preLogin(..) method.
    Please indicate if anything is wrong. Also, is there any other way to get this done?
    Thanks in advance.
    Vikas

    Hi Vikas,
    Probably your sessions.xml defines a ServerSession, and acquireSession method returns a ClientSession. ServerSession is the object that connects to the database, it may have any number of ClientSessions associated with it - all of them use connections provided by ServerSession's connection pools.
    So if you'd like to alter the serverSession before login, acquireSession is too late - it triggers login of the ServerSession and returns a ClientSession.
    To get the ServerSession before login:
    // the first param indicates that the session shouldn't be connected
    Session serverSession = sessionFactory.getSharedSession(false, false);Now you have a serverSession on which login hasn't been called yet.
    You can set the property into the session, or directly into its login.
    In fact you may choose to do whatever you wanted to do in preLogin right here - in this case no preLogin event would be required of course.
    Finally to get a ClientSession, call the same api did:
    // the first param indicates that the session shouldn't be connected
    Session clientSession = sessionFactory.getSession();On the first such call the ServerSession will be connected.
    Note that because all the ClientSessions will connect through the connections provided by the same ServerSession they will all use proxyUser1.
    If you are interested in using different proxy users for different ClientSessions http://www.oracle.com/technology/products/ias/toplink/doc/1013/main/_html/dblgcfg008.htm#BABDABCF lists several scenarios for that.
    Andrei

  • How to pass id to dynamically

    Hi,
    I created one button..after clicking that button need to go to some other page..here I am giving destination URI
    like this
    OA.jsp?page=/oracle/apps/eam/toolbelt/webui/WorkOrderDetailsPG&addBreadCrumb=Y&OA_SubTabIdx=0&WipEntityId=1234567
    here wip entity id i need to pass dynamically ..how to give that one
    Thanks in Advance,
    Hanim Reddy
    Edited by: Hanimi on Sep 26, 2010 3:13 AM

    Hanimi
    You can Pass the entity id as &EntityID={@vo attibute name}
    For e.g
    OA.jsp?page=/<yourname>/oracle/apps/ak/employee/webui/EmpDetailsPG&employeeNumber={@EmployeeId}&retainAM=Y&addBreadCrumb=YAt runtime, the OA Framework substitutes the current row's view instance attribute values for the tokens inside
    the curly braces. So, for example, &employeeNumber={@EmployeeId} becomes &emloyeeNumber=1234.
    Thanks
    --Anil
    oracleanil.blogspot.com

  • How to Pass printer details dynamically for bursting query in BI Publisher

    Hi All,
    We are splitting our invoice details by bursting option but we want to print the invoices based on printer selection of the user.
    can any one explain me how can we pass the printer details dynamically for bursting query in BI publisher.
    Thanks & Regards,
    Manohar Reddy

    Hi Saurabh,
    we can do it, ultimately u will end of changing the product code, which wont be supported :)

Maybe you are looking for

  • BP Communication Data ( telephone , email )

    Hello Friends, We have a BP, and when I go to tranasction bp, search of this business patner then, I found one record, so under communication TAB the telefone no and email of bp is mainted. Now I call the bapi BAPI_BUPA_CENTRAL_GETDETAIL to retrieve

  • PM order creation with refrence to internal order

    Hi all I want to create PM order with the refernce of Internal Order.PM order should also have the same number as that of Internal order. Please guide how it is to be done. Regards Anil

  • Data Acqusition and recording in Binary Format

    Hi Can anyone tell me how to perform buffered Data acquisition and write it in Binary format. I want to record data when it is streaming that is i would like to record data on a real time basis. I have started acquiring data and also graphed it, But

  • Unacceptable services from Bestbuy

    I am writing to let you know about bad services I received from the Bestbuy store and on the phone likewise. This started when I purchased a refrigerator on Apr 19th 2015. Product: Open Box - 26 CU. FT. FRENCH DOOR REFRIGERATOR SKU:  1618091Store: Be

  • Broken iphone screen

    Apple with all the knowledge and technology they have has done a very poor job on their crystal like screens. My family and I have 4 iphone4s and mine fell in an apple bumper from my hand and the screen got shattered. Apple store is asking $199 for r