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

Similar Messages

  • How to use cfmail without specifying username and password??

    Hi pp,
    i have been trying to use the cfmail functionality to send and receive e-mails connecting to the smtp server of <MyUniversity>
    i am creating a page where, at the end a e-mail has to be sent from <[email protected]> to <[email protected]>
    i am connecting with the univ server from the cf server to test whether the e-mails are delivered.
    the e-mails are sent only if i mention the <Username> and <Password> fields belonging to the <[email protected]>
    for my test case i used my own id and the if i set the username and pwd, the e mails are sent, otherwise the emails are not getting delivered.
    can someone suggest why this is happening and i have to make sure that at the end of launching the site, i dont have to get the username and password, because i will not be given access to it as a developer.
    Please suggest me wat to do.
    i am using the simple cfmail function.
    <cfmail
                server="smtp.<univ>.edu"
                port="25"
                from="[email protected]"
                username="[email protected]"
                password="**********"
                to="[email protected]"
                subject="testing testing">
                       <testing the mail functionalities>
    </cfmail>

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

  • 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

  • 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

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

  • HT4530 I just purchased an iMac and developed a user name and password.  I'm trying to install a program but can't because I forgot that information and didn't write it down.  How do I reissue a new username and password

    I just purchased an iMac and upon setting it up I initiated an username and a password.  Unfortunately I didn't write it down and now I'm trying to add software and the system won't let me because I forget that info.  How do I reissue a new usernam and password?

    Boot from your recovery partition by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the recovery desktop appears, select Utilities ▹ Terminal from the menu bar.
    In the Terminal window, enter “resetpassword” and press return. A Reset Password window opens.
    Select your boot volume if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Follow the prompts to reset the password.
    Select  ▹ Restart from the menu bar.
    You should now be able to log in with the new password, but you won't be able to unlock the Keychain. If you've forgotten the Keychain password (which is ordinarily the same as your login password), there's no way to recover it. You’ll need to reset your keychain in the preferences of the Keychain Access application.

  • How to get to see the usernames and passwords for wifi logins on iPad

    How to get to see the usernames and passwords for wifi logins on iPad. 

    You can't access that on an iPad. The iPad does not have a Keychain Access type app like the Mac has. Maybe an application like iExplorer on your Mac will let you see them, but you can't see them on the iPad itself.

  • How can I changed the system username and password

    How can I changed the system username and password
    Need help urgent

    Paolo,
    If I understand his requirement good (to have system user but must be called xxxx) then that's the option.
    Well, that's obvious...Sure, but sometimes we see complicated thing but not something what is obvious...
    Also your demonstration to OP how to change user password indicate that OP-level of knowing Oracle user management is such that OP maybe need help for something what is for you or me obvious...
    Cheers!
    Message was edited by:
    Faust

  • How do I pass username and password to the Citrix client via netlet

    I have managed to call a Citrix managed application from the portal via netlet (via InitialProgram within citrix_start.html) - thankyou William Geurts.
    How do I use the Portal's single sign-on functionality to pass the username and password through to Citrix via netlet?

    Hi,
    This can be done by writing a small application that will pull session/user info from Portal and then pass it on to another app as needed.
    Thanks,
    Raj_indts
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support

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

  • Passing username and password through the URL (SharePoint integration)

    Dear friends
    I have a requirement to integrate MS SharePoint with Jsp application site. user has to login to the Sharepoint first then from link (URL) i want to pass the username and password from
    that link to login into the jsp site without showing the login page !!

    SharePoint with Jsp application site. user has to login to the Sharepoint first then from link (URL) i want to pass the username
    and password from that link to login into the jsp site without showing the login page

  • 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

Maybe you are looking for

  • 'bobj.crv.params.FlexParameterUI' is null or not an object

    I'm having a problem getting my report to display in the DHTML viewer.<br> <br> My test environment:<br> - Windows XP SP3<br> - Tomcat 5.5 with JDK 1.6.0_17<br> - PostgreSQL 8.4 (Windows version)<br> - Report designed using JDBC driver - postgresql-8

  • Show all days in a  month select

    hello i have a ckeckin - checkout table as id number pk, emp_id number fk, checkin date , -- user date enters checkout date -- user logsout totalhours number , totalminutes number, state varchar2(3) default 'in' it keeps totalhours and mins of an emp

  • Should we create new sales order type for Brazil

    Hi, We are having SAP Global templete environment & going for Brazil rollout. My question is whether we can have exitsing sales order type or should we create a new one so as to capture complicated Nota fiscal requirements. What SAP recemmends Thanks

  • BW Objects inactive in DEV system

    Hi All, In Our BW DEV System ,All objectu2019s have become inactive and in revised mode, we cant figure out what happened, bcoz of this we are facing a lot of problem to initiate transport or to install or activate again anyhting. Is there any Functi

  • Solaris 9: Xsun process using over 47% of CPU

    Anyone else having this problem? The /usr/openwin/bin/Xsun process is consistently using over 47% of the CPU on a Sun Fire V240 running Solaris 9. This system was just built last week with all recommended patches. In the past 24 hours it has accumula