How to create an IdM session

I am writing a standalone Java program to login to IdM, then export some objects. However I fail to create a user session. Here is my code and the error I got.
String host = "http://localhost:8181/idm";
URL localurl = new URL (host);
String User = "myconfig";
EncryptedData ed = new EncryptedData("password");
I failed in both
Session mySession = SessionFactory.getSession(host, User,ed);
And
RemoteSession mySession = new RemoteSession(localurl, User, ed);
with error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/soap/SOAPException

Hi,
import com.waveset.session.Session;
import com.waveset.session.SessionFactory;
import com.waveset.util.EncryptedData;
public class Test {
  public static void main(String[] args) throws Exception {
    EncryptedData ed = new EncryptedData("configurator");
    Object o = SessionFactory.getSession("http://localhost:8088/idm/servlet/rpcrouter2","Configurator",ed);
    System.out.println(o);
}printed
com.waveset.session.RemoteSession@18f729c
for me.
The error you get implies that you do not have soap.jar in the classpath of your custom application. But even if you had the url you are using should point to the rpcrouter2 servlet of your installation.
The jars i needed to put in the classpath of my testapp
in order for it to get a session in IDM7 were:
activation.jar
idm.jar
idmclient.jar
idmcommon.jar
mail.jar
soap.jar
I think that activation, mail and possibly idm.jar should not
be needed to get a remote session but obviously they are.
Regards,
Patrick

Similar Messages

  • How to create a new session in JSP file

    Usually a child IE window uses same session with parent window. Dose someone know how to create a new session when creating a new IE window by clicking a URL in parent window? The web page is writen by jsp file.

    I am not sure of your question. Are you wanting to have 2 Session objects (one for the parent window and another for the child)?
    A session is usually created once per client and is stored on the server the session id is carried around in a cookie or a URL rewrite so that everytime the user submits a page you will be able to store/access information.
    // this will create a new session object if one doesn't already exist.
    HttpServletRequest.getSession( true );
    Hope this helps

  • How to create a new session by ABAP?

    Good afternoon everyone:
    This is my first question in the forum, can anybody tell me how to create a new session to display report output in a ALV program? Which function or method can used? I'm freshman.
    Thx.
    Edited by: Joshua Lee on Nov 21, 2008 10:04 AM

    Hi Joshua,
    Welcome To SDN.
    I am not clear about your queestion.
    if u r doing an ALV report if u give selection screen inputs if press execute buttom or F8 u wil get the report.
    if u want the out put in the next screen. you can develop the screen in the module pool
    Regards
    Rasheed
    Edited by: Rasheed salman on Nov 21, 2008 10:25 AM

  • Kdebase4-svn: How to create an X-Session?

    I've successfully built kdebase4-svn from AUR in the meantime, but now I'm wondering how to create an X-Session for it. Normally you create a kde4.desktop file which runs /opt/kde4/bin/startkde... But this file (startkde) does not exist in kdebase4-svn.. Can anyone help?
    Thanks

    Maybe something is broken with that kdebase4-svn. If I'm not mistaken, there are 3 individual KDE4 4.1 Beta 1 distributions available for Arch (kdemod's, tanis' and devs'), try one of them.

  • How to create an apex session in e.g. SQL*Plus?

    I would like to establish an apex session using a tool different from SQL Workshop.
    How can I achieve this using e.g. SQL*Plus or SQL Developer?
    Is there some document on the internet which addresses this question? I couldn't find it yet.

    First and foremost you need to set the Security Group ID (SGID)
    begin
    APEX_UTIL.SET_SECURITY_GROUP_ID(APEX_UTIL.FIND_SECURITY_GROUP_ID('MY_WORKSPACE'));  -- replace MY_WORKSPACE with yours
    end;
    then you might need to set an application_id for certain features to work:
    select application_id
        into apex_application.g_flow_id
        from apex_applications
       where application_name = 'my_app_name';  -- replace my_app_name with yours
    If you need to create a session id, you can get a fresh one with
    DECLARE
      VAL NUMBER;
    BEGIN
      VAL := APEX_CUSTOM_AUTH.GET_NEXT_SESSION_ID;
    END;
    Flavio
    http://oraclequirks.blogspot.com
    http://www.yocoya.com

  • How to create a login session in flex?

    Hi there,
    I have a flex application with two states. One is a "login" state which is a screen with username and password. The other state is "loggedIn" state which is a screen with a small application. As soon as the user credentials are checked from the back end, based on it's success, I'm changing the state to "loggedIn", else there is a message to the user about login failure in "login" state itself.
    My problem is if I'm in "loggedIn" state and if I hit refresh button of the webpage(F5), it goes back to the login screen i.e., it just restarts the application..
    How can I control this? Is there something like login session which can do the trick?
    Appreciate your help...
    -Deepak

    Flex code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="getSession.send()">
        <mx:Script>
            <![CDATA[
                import mx.rpc.events.ResultEvent;
                public function getSessionStuff(evt:ResultEvent):void
                    saveInfo.text = evt.result.info;
            ]]>
        </mx:Script>
        <mx:HTTPService id="startSession" showBusyCursor="true" method="POST" url="http://localhost/startSession.php">
            <mx:request xmlns="">
                <stuffToSave>
                    {saveInfo.text}   
                </stuffToSave>
            </mx:request>
        </mx:HTTPService>
        <mx:HTTPService id="getSession" result="getSessionStuff(event)" showBusyCursor="true" method="POST" url="http://localhost/getSession.php"/>
        <mx:Button x="602" y="323" label="Start Session" enabled="{saveInfo.text != ''}" click="startSession.send()"/>
        <mx:TextInput id="saveInfo" x="563" y="293"/>
    </mx:Application>
    setSession.php code;
    <?php
        session_start();
        $_SESSION['loggedIn'] = $_POST["stuffToSave"];
    ?>
    getSession.php code;
    <?php
        session_start();
        if($_SESSION['loggedIn'])
            echo "<info>".$_SESSION['loggedIn']."</info>";
        else
            echo "<info>nothing has been saved</info>";
    ?>
    ta daa

  • How to create several DB sessions, in ApEx 3.0

    Hi, I need more than one DB session in ApEx 3.0.
    When I used ApEx 2.2 I can changed using dads parameter: PlsqlMaxRequestsPerSession.
    Now it doesn't work. I set it 1000, and when I test it in 3 computers, adding data in temporary table, i can see the same information in each computer.
    Best Regards, Kostya Proskudin.

    Hi gaja,
    I got a similar situation in my application.I dont know whether the solution was suitable for u.
    what i did was
    1.created a tabular form for the (master table) so that the user can create mutiple records.
    2.Created another tabular form for the (detail table).This one is a manual tabular form.And i made the (detail tabular form as a conditional display for the selected master tabular form).
    But in my case my tables has just 5-6 columns thats why i have managed with the tabular forms.If the table has more columns u cant do this using tabular forms.
    Thanks
    phani

  • How to create an IDM User without Password ?

    Hi ,
    I want to create an User in IDM without Password. If I remove the FieldRef for the Password field, it is throwing Password Voilation error.
    Is ther any way to create a User in IDM without password?
    If so please let me know.
    Thanks
    Message was edited by:
    Raja.Samy

    If you are using any other resource as Pass-through Authentication, then the password fields can be blank. In fact, if you enable pass-though authentication, the tabbed user form does not show the password fields.

  • How to create a WAR File for an IDM installation?

    I have a IDM 7.1.1 test instance installed on a server which uses a local mySQL.
    Is there a way I can create war file of the IDM installation? I would like to migrate the IDM to another server.
    I know how to create a IDM war through Netbean; this particulart instance is not hooked to NetBeans.

    i think it should be jar -cf /path/to/warfile/idm.war *Edited by: Amit_Bansal on Sep 30, 2008 9:49 AM

  • [SOLVED] Is It Possible to Create a Telnet Session in URXVT?

    Greetings-
    Just curious if anyone can tell me how to create a telnet session via rxvt. I saw a thread on here where someone said that it's possible, but I can't find any documentation on it. Just wanted to try it out to connect to my switch which I normally connect to from a tera term emulator.
    Thanks guys!
    Last edited by w201 (2013-10-03 23:57:02)

    ewaller wrote:
    Just run:
    telnet the_address_of_your_switch
    Or I missing something profound?
    Well it was profound to me until you just showed how easy it is. The magic of learning eh?
    Thanks.

  • How to create a different browser session within the same profile

    Internet Explorer 8 lets you create a new session within a new browser window but how can I do the same with Firefox? I know if you switch user profiles then you can have two browsers in different sessions but I would like to have two sessions using the same user profile.

    Sorry, that's not possible with Firefox. Firefox uses a single executable instance to run all windows and tabs, where IE starts another process for each window. Chrome uses a separate process for each tab (or window), which seems real nice until it sucks the life out of an older processor with the "overhead" of all those separate processes.
    Depending upon what you want a "different session" for, there are 3 extensions that allow for multiple cookie sessions which allow for multiple, simultaneous logins to the same server. That works to allow the user to log into multiple webmail accounts at the same service provider. <br />
    Multifox: <br />
    http://br.mozdev.org/multifox/ <br />
    Cookie Swap extension: <br />
    https://addons.mozilla.org/firefox/3255/ <br />
    Cookie Pie extension: <br />
    http://www.nektra.com/oss/firefox/extensions/cookiepie/

  • How to Create a Session variable in JSP?

    How to create a session variable and add attributes to it?
    For example i want to create a session variable called "name" and add value "user" to it? if i try to do it with setAttribute(), it is giving error as both is of type string? how to do it? kindly help me

    This is variable what is working in my aplication
    String variable;
    if(user == null){
                   user=new String("");
         }//if you don'y do this you will have null pointer exception
    session.setAttribute("user",user);//put value
              String name=(String)session.getAttribu("user");      //get value;
    I hope this will help

  • How to create a session variable in Apex?

    Hello colleagues,
    Is there someone do know how to create a session variable in Apex?
    How to get them?
    Thanks
    Best Regards

    Hello,
    What do you mean by 'session variable'? You mean something that stores the value int he users session state?
    I really recommend reading the 2-Day Developer guide documentation, there is a complete section on session state -
    http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/concept.htm#CIHCFHBD
    Hope this helps,
    John
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd

  • How to create a session by AppsLocalLogin.jsp

    first, in auth.jsp we check fnd_global.user_name against "ANONYMOUS" to see whether user is logged on.
    if not, we invoke AppsLocalLogin.jsp to create a session.
    http://server:port/OA_HTML/AppsLocalLogin.jsp?requestUrl=report.jsp%3Fparam1%3Dyyy
    the login page shows, page re-directed to report.jsp.
    however fnd_global.user_name doesn't work. it still returns "ANONYMOUS".
    if user logged on OA normally, then the whole thing worked. it seems fnd_global.user_name doesn't like the way we login.
    how should we invoke AppsLocalLogin.jsp so it'll create a proper session?
    part of report.jsp:
    WebAppsContext ctx =WebRequestUtil.validateContext(request, response);
    conn = ctx.getJDBCConnection();
    sql = "select fnd_global.user_name from dual";
    (we tried to invoke RF.jsp instead.
    doesn't work because we don't know how to pass the param1 to report.jsp thru RF.jsp)

    This is variable what is working in my aplication
    String variable;
    if(user == null){
                   user=new String("");
         }//if you don'y do this you will have null pointer exception
    session.setAttribute("user",user);//put value
              String name=(String)session.getAttribu("user");      //get value;
    I hope this will help

  • How can I create a stateful session bean?

    I created a stateless session bean. Now I want to make it be a stateful session bean. How can I do? Where can I find a session bean sample?
    Thanks
    Qing

    Look at this site. The tutorial explains it all.
    Well if you want to convert your stateless EJB to stateful, all you have to do is change the deployment descriptor and re-deploy the ejb. You should be ready to go.
    All the best.

Maybe you are looking for

  • Some of the images are not showing up on my Blogger blog even though the HTML is there. They do show up in Opera.

    Here is the link to the blog post - http://happyholidays-blog.blogspot.com/2010/09/welcome-to-trick-or-treat-street.html Three days ago I went to a post from last year and an image was gone. The code was there but not the image. It doesn't get rid of

  • Questions in APP

    HI GURU'S 1) why do we give next payment run day in APP can any body explain with examples 2)Suppose if there are 100 open items  for payment if i want to block 25-30 items where we can block in F110 , (one r two we can block it but if its huge what

  • Applications/documents not opening from Finder/Desktop

    iMac 17" 800. I returned home after 3 months away to find the iMac in a mess (it is used by my wife and daughter). I repaired preferences and then found the disk to be not repairable with Disk Utilities. I started as a Target Drive and repaired from

  • How to post stock and what transaction codes

    Hi gurus If I created new material how can I post stock in to the material to process. Ex:MMBE for stock checking. But what is the t -code to enter some stock at materila. also how what other transaction I can for stock posting at various scenarios.(

  • Can't deactivate elements

    I'va installed elemnts 9 on my 2 home PCs. Ican't deactivate the product on none of them (each time I try to enter the Elemnts the SW requires deactivating the copy on other's PC first....). How can I deactivate one of the copies?? Arik