How to add more than one input arguments to the tpcall

Hi
Can any one know how to add more than one input arguments in the tpcall using WTC (Jatmi)?
Par example, I have un service Tuxedo getConsoClient(char* cli_id, char* type)
To call this service, I'm using tpcall("getConsoClient", dataIn, 0);
here, I did't know how to add two parameters in the TypedBuffer object. I'm new to WTC.
Any hints will be greatly appreaciated.
Advanced thanks

Thanks for you help. But in java Jatmi, I have lot of problem to convert array into TypedBuffer or TypedString. See below code, I'm tried using vector or tableau etc..
But I have always same erreur. :(
public void getClientInfo() {
     Context ctx;
     TuxedoConnection myTux;
     TypedString numinst = new TypedString("1");
     TypedString idClient = new TypedString("1003");
     TypedString[] dataIn = {numinst,idClient};
     //TypedString dataIn = new TypedString(numinst+"\0"+idClient+"\0");
     Vector input = new Vector();
     input.add(0,numinst);
     input.add(1,idClient);
     Reply rpy = null;
     try{          
          System.out.println("getClientInfo called : " + dataIn);
          TuxedoConnectionFactory tcf;               
          ctx = new InitialContext();
          tcf = (TuxedoConnectionFactory) ctx.lookup("tuxedo.services.TuxedoConnection");
          myTux = tcf.getTuxedoConnection();          
          System.out.println("About to call tpcall cnx = "+myTux);
          rpy = myTux.tpcall("LireInfoCli_SE",(TypedBuffer)dataIn, 0);          
          System.out.println("tpcall successfull!");
          TypedFML32 typ = (TypedFML32) rpy.getReplyBuffer();
          System.out.println("Reply Type = "+rpy.getReplyBuffer().getType());
          System.out.println("Reply toString = "+typ.toString());
          while(typ.Fiterator().hasNext()){
               System.out.println("Reply toString = "+typ.Fiterator().next().toString());               
          myTux.tpterm(); // Closing the association with Tuxedo
     }catch (TPReplyException tpx) {
          // Could not get the tuxedo object, throw TPENOENT
          System.out.println("TPReplyException perrno = " + tpx.gettperrno()+" DETAILS "+tpx.gettperrordetail()+" getLocalizedMessage "+tpx.getLocalizedMessage()+" "+tpx.getCause());
          tpx.printStackTrace();
     }catch (TPException tpx1) {
          // Could not get the tuxedo object, throw TPENOENT
          System.out.println("TPReplyException perrno = " + tpx1.gettperrno()+" DETAILS "+tpx1.gettperrordetail()+" getLocalizedMessage "+tpx1.getLocalizedMessage()+" "+tpx1.getCause());
          tpx1.printStackTrace();
     }catch (NamingException ne) {
               // Could not get the tuxedo object, throw TPENOENT
               System.out.println("Could not get TuxedoConnectionFactory : " + ne.getMessage());
               ne.printStackTrace();
     }catch(Exception e){
               System.out.println("Exception in getClientInfo ->"+e.getMessage());
               e.printStackTrace();
     return;
}

Similar Messages

  • How to add more than one tabular region in a page?...

    How to add more than one tabular region in a page?
    i have a page, that page contain form and tabular region. when i trying to add another tabular region it showing error
    1 error has occurred
    Updatable SQL Query already exists on page 2. You can only add one updatable SQL query per page. Select a different page.
    but i have to add the tabular in that page.
    Is it possible?
    pls help...
    Thanks and regards,
    skud

    hi,
    even i am searching for some thing similar.
    i want to have 3 calendars in one page.
    getting same message calendar already exists on page 2. You can only add one calander per page. Select a different page.
    pls help.

  • How to add more than one clip to a drop zone?  New guy

    Hey all, I'm new to DVD studio and I'm trying to fiqure out how to add more than one clip to a Template drop zone. I'm using a 6 button template. I've named each button .. Football, Baseball, Hockey ...etc.
    How can put in MORE THAN ONE CLIP in the Football track/drop zone. So when someone clicks on Football they can see 3 examples.
    Do I need to create something to link to that Football button?
    Any replies appreciated

    You can edit the segments to be used in FCP or Motion so that the asset drop in has three examples
    Another way (if you want) is to make the entire menu outside of DVD SP so that the background layer is an m2v and the items are revealed/masked to some degree
    Take a look towards the bottom of this thread http://discussions.apple.com/thread.jspa?messageID=2951183&#2951183 where I discuss http://www.dvdstepbystep.com/Overmovies.zip
    Note that you can also use a basic overlay to do this. The overlay would be just solid black instead of the arrows/circles things I use in that example.
    For instance make the text one color and the box over the movie another (You can make it blue and the box red lets say) Draw a region over both for the button. Map blue for highlights/transparencies for normall/selected/activated and the same for the Box

  • How to add more than one datafile while creating tablespace

    how to add more than one datafile while creating tablespace. I know by using alter command i can add datafile but i want while creating tablespace

    Hi Dadivela,
    how to add more than one datafile while creating tablespace.Here is the syntax:
    !http://www.dba-oracle.com/images/create_tablespace.jpg!
    I do it like this:
    create tablespace myts
    datafile
    *'/u01/app/oracle/db1.dbf' size 100m,*
    *'/u02/app/oracle/db2.dbf' size 200m;*
    Here are my complete notes:
    http://www.dba-oracle.com/t_tablespace_create_alter.htm
    Hope this answers your question . . .
    Donald K. Burleosn
    Oracle Press author

  • How to add more than one phone number in imessage?

    How to add more than one phone number in imessage?

    If you mean sending to multiple phone numbers, place a comma between the numbers in the "To" box, or select the "+" to use numbers in your Contacts

  • Using more than one input device at the same time

    Is it possible to use more than one input device at the saem time in logic express. For example I have a fire wire input device and a usb input device can I get Express to recognize both of these at once and so have a total of 4 ins which would be great since Im transfering tracks off my ADAT and it would be less track to have to line up.
    Thanks

    Hi,
    yes, it should be possible by creating an aggregate device. Google for it or search this forum. There are many tutorials how to set it up.
    Have fun!
    Fox

  • How to make more than one person can access the database at one time

    how to make  more than one person can access the database at one time 

    Please post further f'up's in the Access forum.
    In short: for different reasons it is best practice that each user gets its own local copy of the database. This means that you need to split it into a front-end which only consists of the forms, queries, reports etc. Everything which doesn't need to be
    shared. And a back-end, which only stores the data.
    Take also a look at Allen Browne's article:
    Split your Access database into data and application.
    When you've splitted your database, you may often consider to use SQL Server as back-end. Here you may read Armen Stein's
    The Best of Both Worlds: Access-SQL Server Optimization.

  • How to include more than one input ready rows in analyzer

    Hi Gurus,
            I have a requirement that, I need to have more than one input ready rows at the end of the query output in analyzer.
       Normally it will show only one row as input ready at end of the query result in any manual planning analyzer., But my requirement is to have multiple input ready rows in analyzer. Is it possible in workbook/analyzer?.
    Thanks,
    V.Senthil

    Hi Senthil,
    Have a look at the below thread.
    How to add new rows for input ready query in BEx analyzer
    Regards,
    Venkatesh

  • How to add more than one server in emanager

    Hi All,
    In Java CAPS6, If I add more than one domain that is GlassFish server, how can I add these server in emanager. I am able to add only one server in eManager.
    Please let me know if any one knows.
    Thanks & Regards,
    B

    Hi,
    I have the same problem. I succeeded in adding the default domain (on the default port 4848) but when I try to add another domain on a different admin port, the connection cannot be established. Here is the manager log :
    2009-02-18 10:41:23,867 ERROR [http-15000-Processor24] com.stc.emanager.deployment.actions.AddNewServerAction - java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Bad response: (404Not Found due to Connection Failed. Please check the following: <br>   &nbsp - Server Type is correct. <br>   &nbsp - Server is running. <br>   &nbsp - Hostname and Port number(s) are correct. <br>   &nbsp - Server SSL configuration.
    The manager and appserver are on the same server.
    As someone resolved the problem ?

  • How can I add more than one song to fit the length of the slideshow

    I would like to add more than one song to my slideshow. I do not want to repeat the same song more than once. Is there a way to add more than one song to a slideshow?

    Great - unfortunately it is not intutative - but simple - once you know the secret - and at least in iphoto '08 it acts like you can select multiple songs using the command key but it only plays the first one
    LN

  • How do I add more than one photo albums to the Ipad2

    I have an Ipad2. I can transfer a photo album from my computer to the Ipad, but when I try to add another album, the first album gets wiped off the Ipad2. How can I install/copy/synch more than one photo album on Ipad2

    Sounds like you are a Windows user or if you are a Mac user, you are manually managing photo storage on your computer without using a photo management application like iPhoto.
    Create a parent folder which will contain the separate albums or folders of photos only that you want transferred to your iPad. Select the parent folder under the Photos tab for your iPad sync preferences with iTunes.
    To remove an entire album or folder of photos from your iPad, move the album or folder of photos out of the parent folder on your computer's hard drive followed by a sync. To remove an individual photo from your iPad without removing the entire album or folder of photos, move the photo from the album or folder of photos on your computer followed by a sync. To add another album or folder of photos to your iPad, place the album or folder of photos in the parent folder followed by a sync.

  • How to add more than one attachment in comment

    All my friends that visit my blog page ask me how can they add attach more than one item in their comments, I do not know how.. though I did suggest them to join all the image/item as one image/item.. that is ok so far, but the outcome is not as beautiful as original.

    Unfortunately only one attachment can be added per comment. Advise your friends to add multiple comments, one for each attachment, or combine the images in a photo editing program and upload as one composite image.

  • How to add more than one button control on import of skin?

    I am importing a skin from photoshop that I customized and exported.  For my particular project I need more than one button type with different sizes, dimensions, colors, etc.  In example the buttons for the navigation are going to be different than buttons to print, or email, and buttons that are bigger for the main custom component also need to be different.  I tried changing the naming convensions in the .PSD file but I can't get it to export more than one button type.  Is there a way to do this? 
    Thanks,
    Ryan

    hi,
    even i am searching for some thing similar.
    i want to have 3 calendars in one page.
    getting same message calendar already exists on page 2. You can only add one calander per page. Select a different page.
    pls help.

  • How to add more than one music track in iphoto slideshow

    how do i add a second music track to a slideshow in iphoto. When I have a slide show longer than one song I'd like to start a second music track rather than repeat the song. Thanks for any help...

    I shortened songs in the playlist by changing the end time but when I select for slideshow in iphoto, it plays the full length????
    I know that feature works with later versions of iPhoto but don't remember it it did with iPhoto 8 and 10.5.8.

  • How to add more than one paint method

    hi everyone
    I am doing a project in which i have already created a paint method but i find that there is necessity to create one more
    paint method within the same file in which i have a paint method pls tell me how to how to add a paint method how to call the repaint method
    please its very urgent

    By even suggesting that I can gather you have a horrible design of what ever you are doing--DON'T! And go back and refactor your application so you do not need or even want such a thing to happen.
    1 - paint is for use in AWT. If you are using AWT, then very well, you are at least using the right method to override. If you are using SWING, then you are totally messed up before you even arrived at this ill conceived plan of 2 paint methods.
    2 - your paint (AWT)/paintComponent (SWING) is a system called method driven by events you haven't any control over. You need to treat it as such.
    3 - your painting method should be very tight. I will bet your's is a horrid mess: overstuffed with attempted control and logic processes.
    4 - Even if you are using active rendering, your approach to 2 painting methods is horrible at best.
    If you need help in designing your process better, then post what you have and ask for help. IMO what you are doing can only lead to ugliness.

Maybe you are looking for