How do we do TypeMapping for Vector, Hashtable, or any java data structure in RPC?

I tried to implement a dynamic Client (RPC) however I got the following Error
when I ran the program.
Exception in thread "main" java.lang.ClassCastException
Here is my part of code
//create service
Service service = factory.createService( serviceName );
TypeMappingRegistry registry = service.getTypeMappingRegistry();
TypeMapping mapping = registry.getTypeMapping(
SOAPConstants.URI_NS_SOAP_ENCODING );
mapping.register( Vector.class,                          
          new QName( targetNamespace, "Vector" ),      
          new language_builtins.util.VectorCodec(),                         new language_builtins.util.VectorCodec()
//create call
Call call = service.createCall();
//set port and operation name
call.setPortTypeName( portName );
call.setOperationName( operationName );
call.addParameter( "string",new QName( "http://www.w3.org/2001/XMLSchema","string"
ParameterMode.IN);
call.addParameter( "intVal",new QName( "http://www.w3.org/2001/XMLSchema","int"
ParameterMode.IN);
call.setReturnType( new QName( targetNamespace, "Vector" ) );
Vector v = (Vector) call.invoke(new Object[] {"Hi", new Integer(1) });
Any help on this will be greatly appreciated.
december

Hey December,
I looked at your WSDL, but it doesn't give any hint of what you are putting in
the LinkedList or Vector. All it says is that an "array of anything" (basically,
an array of java.lang.Object) is returned from the buy and sell web service operations.
Surely there is some complexType (i.e. TradeResults, TransactionResults, etc.)
that you want to return here. A java.util.LinkedList object is not a complexType.
It's a generic container object which is specific to the Java programming language.
Same with the java.util.Vector. Web services are programming language independent,
so a .NET client (written in C# or VB code) wouldn't really know how to deal with
a java.util.LinkedList, right? Web services do not transfer objects back and forth,
just XML. This means that the buy web service operation doesn't really return
a java.util.Vector over an HTTP connection. It returns an XML representation of
the "hierarchical state" associated with the complexTypes you put in the Vector,
inside the "service implementation" code on the server side.
What you want to do is use the WSDL "to describe" the data types your web services
accepts and returns. To do this, you'll need to define complexTypes to put in
the array of complex types that is returned. If you leave things as they are,
I don't think you'll ever be able to determine what's in "the Vector". Again,
this is because web services don't transfer objects back and forth, just the state
that is used to instanciate them :-)
HTH,
Mike Wooten
"december_i" <[email protected]> wrote:
>
>
>
Hi Michael Wooten,
When I printed out the Object class name, it returned this "[Ljava.lang.Object;"
So I tried this way again.
Object[] obj = (Object[])call.invoke(new Object[] {"Hi", new Integer(1)});
System.out.println("obj[0].getClass().getName()=" + obj[0].getClass().getName());
At this time, it printed this "java.lang.String".
I guess web services is not returning Vector.
I attached my WSDL file.
I really appreciated your help.
best wishes,
December
"Michael Wooten" <[email protected]> wrote:
If you are still getting a class cast exception, maybe it's becausethe
web service
isn't returning a Vector.
Change the following line in your client code:
Vector v = (Vector) call.invoke(new Object[] {"Hi", new Integer(1)});
to:
Object obj = call.invoke(new Object[] {"Hi", new Integer(1)});
System.out.println("obj.getClass().getName()=" + obj.getClass().getName());
That way you can see what the return type is :-)
You might want to post the WSDL and remote interface of the web service
you are
trying to call also.
Regards,
Mike Wooten
"december_i" <[email protected]> wrote:
Hi Mike Wooten,
Thanks for pointing out my mistake.
However I'm still getting same error. I know i'm gettting this error
because of
return type "Vector". But I don't know what I did wrong.
Does anybody have any sample example about TypeMapping for any datastructures?
Any help on this will be greatly appreciated.
December
"Michael Wooten" <[email protected]> wrote:
Hi December_i,
Your code is saying that the "Vector" type is in the target namespace
for your
web service. I don't think this is correct. Try this:
mapping.register(
java.util.Vector.class,                          
new QName("java:language_builtins.util", "Vector" ),      
new language_builtins.util.VectorCodec(),
new language_builtins.util.VectorCodec()
call.setReturnType( new QName("java:language_builtins.util", "Vector"
HTH,
Mike Wooten
"december_i" <[email protected]> wrote:
I tried to implement a dynamic Client (RPC) however I got the following
Error
when I ran the program.
Exception in thread "main" java.lang.ClassCastException
Here is my part of code
//create service
Service service = factory.createService( serviceName );
TypeMappingRegistry registry = service.getTypeMappingRegistry();
TypeMapping mapping = registry.getTypeMapping(
SOAPConstants.URI_NS_SOAP_ENCODING
mapping.register( Vector.class,                          
          new QName( targetNamespace, "Vector" ),      
          new language_builtins.util.VectorCodec(),                         new language_builtins.util.VectorCodec()
//create call
Call call = service.createCall();
//set port and operation name
call.setPortTypeName( portName );
call.setOperationName( operationName );
call.addParameter( "string",new QName( "http://www.w3.org/2001/XMLSchema","string"
ParameterMode.IN);
call.addParameter( "intVal",new QName( "http://www.w3.org/2001/XMLSchema","int"
ParameterMode.IN);
call.setReturnType( new QName( targetNamespace, "Vector" ) );
Vector v = (Vector) call.invoke(new Object[] {"Hi", new Integer(1)
Any help on this will be greatly appreciated.
december

Similar Messages

  • How to Display the ColumnName for the Text of any Master Data Object in BEx

    Hi Experts,
    In Bex Analyzer While Displaying the Key and text of any Master data object it shows column name for master data key but not for the text, here client requirement is he wants to see the Text column name as Description  for any master data text.
    say Customer Number is a master data object , while displaying key and text of CustomerNumber - column names should look  like as below
    CustomerNumber    Description
    C11111                     Pepco
    C11112                     Coke
    but usually in Bex Analyzer it displys as following(Text without  column Name)                      
    CustomerNumber   
    C11111                     Pepco
    C11112                     Coke
    Please suggest how can we achive this requirement, thanks in advance.
    Regards,
    Chandra

    Hi Chandra,
    I suggest you to enhance your datasource with text feild, by adding text feild to your datasource in ECC side and replicate it ti BI side.
    For this you have to write code at CMOD.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/302d4b15-5847-2a10-93bb-9c45d9f06b16?QuickLink=index&overridelayout=true
    Better this doc will help you.
    Regards,
    rvc

  • IN NUMBERS HOW DO YOU FILL IN FOR A SERIES OF NUMBERS OR DATES

    In numbers how do you fill in for a series of numbers or dates without doing it manually

    You can enter a value in two cells that establishes a pattern, then select the two cells, then click (and hold) on the little circle at the bottom right corner of the selection and drag to fill as needed.
    A Number sequence:
    A Date sequence:

  • How to deal with credentials for external applications using a Java Client/

    Hi Guys,
    This is the case. I am integrating an external application with an ADF Application. I have implemented some programmatic ViewObjects that are being filled up by a REST Java Client Wrapper. Everything is working fine but the issue is that the credentials the wrapper is using are hard coded inside the java class. I am thinking to ask for the credentials at the beginning of my taskflow and then store them somewhere and use them then to create my client wrapper (passing them in the constructor).
    However, I don't know if my approach is good and I would like you to share your experiences or how to deal with this.
    Regards

    You can use Credential Store Framework to store the credentials securely in the weblogic server instead of hardcoding in the java class.
    The Credential Store Framework:
    - enables you to manage credentials securely
    - provides an API for storage, retrieval, and maintenance of credentials in different back-end repositories
    Check the documentation on CSF API -
    http://docs.oracle.com/cd/E29505_01/core.1111/e10043/devcsf.htm
    Major Steps -
    1. Create a credential map and key in em console to store the password (http://docs.oracle.com/cd/E25054_01/core.1111/e10043/csfadmin.htm)
    2. Use CSF API to retrieve the stored password
    3. In jazn-data.xml give permissions to access CSF key and map

  • How to create a measure for COUNT and compare year-to-date/last year?

    Hello expert,
    I have gone through the Oracle by example tutorial for creating the repository. However, I can't find out how to create a measure to display the COUNT (sequence ID). I tried the Aggregation function on the sequence ID on the Fact table but the report on Answer listed out all the sequence IDs in the database. And did not give me the count of the transaction for the period quarter. If I used the sequence ID on Dim table, the SQL failed.
    And also I want to have two counts, one is for the count of transactions by quarter. Another is for count of transaction for the same period quarter.
    Please help.
    Thanks.....

    If you use count (or count distinct ) as the aggregation rule in the dropdown in the repository column, it should work. Or you can post the generated logical and physical sql here.

  • How 2 implement keyboard controls for 2 players simultaneusly in java game?

    I ' m making this fighting game . 2 players can fight at a time. I got my 2 characters on the screen at the same time. The 1st player should be controlled with Arrow keys and number key pad.
    The 2nd player should be controlled with Z for left C for RIGHT , S for UP( jump), X for duck. and then use BNM, GHJ and TYU to do the same as the number keys for the first player
    When i tried this , it worked if i performed moves from player 1 , then trie d player 2,, but i noticed when i pushed buttons at the same time ( i pushed one key from player 1 's side of the keyboard and one key from player 2's side) it did't work because no move was executed. And i know it's because i'm pushing 2 keys at once . so one character sees that i'm pushing 2 keys, but he doesn't know what to do cause i didn't make a case of pushing 2 keys that would move him and another character.
    So i have this in keyDown()
    //THIS IS FOR 1 PLAYER MODE : you against enemy
    switch( key){
    case Even.UP:
    if( player1 is michaelCharacter ){
    michaelCharacter.jump()
    else if( player1 is johnsonCharacter){
    johnsonCharacter.jump();
    break;
    etcc... all player 1 keys in this way, acconrding to which character he chose to play with
    //then i have this swich that supposedly is used if there is a second player
    if( gameType = 2Player mode ){
    switch( key ){
    case 's':
    if( player2 = michaelChacter)
    michaelCharacter.jump():
    if( player2 = johnsonCharacter)
    johnsoncharacter.jump();
    break;
    //etc
    So that works if each character does his move But there is no overlap of moves, that is you don't have player1 and player2 executing a move at the same time.
    well, how would i do it? Is it possible ?

    Hi,
    It's bit tricky to do check keyboard simultaneously...
    you need to check KeyPressed() and KeyReleased(), and do a "log key-event history" to find out what keys are still in pressed.
    alternatively,
    If you don't mind, you can use Fly game library...
    initialisation part:
    // initialisation & make game screen resolution to 800x600
    Game g = new Game();
    g.init(800,600,false);
    ...and then on your key trapping logic, just do a standard logic. I'm surely it will works:
    if (g.getKeyboard().isKeyPressed(KeyEvent.VK_UP)) {
    if (g.getKeyboard().isKeyPressed(KeyEvent.VK_DOWN)) {
    }the library can be downloaded here:
    [Fly Game Engine|http://fly.engine.googlepages.com]
    Just follow the tutorial / download example for more info....
    good luck

  • How can I batch Save For Web and maintain a multilevel folder structure?

    First... I am using an old version of Photoshop.... 6.0 to be exact.  If your answer is to buy the newer versions, I respectfully say I know that's AN answer, but I'm looking for something that will work with my setup.  The version we have works just fine for the very few things we need it for, and we use new versions of InDesign and Acrobat for all else. 
    So here's the challenge:
    We have a weekly magazine featuring 1,200 plus photos of cars for sale, each saved in a folder named for the sales rep, week and day.  I must maintain these folder structure throughout the process, as the files names are duplicated by cameras and across reps.  So I cannot dump all batch converted pics into one single folder, yet I need to reduce the Quality setting which I find when completing a Save As in Photoshop.
    So I want to batch convert all the photos in multiple folders, some 3 folders deep, all at once....  reduce to 8 inches across, change to 72dpi, and reduce the quality slider to 5, which creates a nice 60-90K file.  BUT.... it wants to save all of them in a particular folder.  I need to just overwrite the original file with the new smaller one.... or save the new small version into the same folder the big one is in, but have it work with the "include all sub-folders" option in batch. 
    A sample File system .... 4513 Photos - Color <day of week> (3 folders) - <disk number><rep>Color (20 folders) - actual photos.
    After converting, we push up the final level of folder to our website and that organization allows us to use them there the way we need.  The uploading to the site and batch functions are done 3 to 4 times per week.... on different days.
    Is there a way to reduce the quality (compression) of the jpgs that does not require the creation of a new file in a particular folder, or is there a way to have the resulting file just drop back into the folders and subfolders during a batch function?  I just can't figure this out!
    As an alternative, what other programs might do this?

    You should be able to just use the html output of the Export for Web function and, if the video's converted correctly, just swap the file names at the appropriate places. Have you tried renaming VisualHub's output to what the Export for Web html wants, then placing it in the proper location?
    I'm not aware of a way to batch create the html files, but if I had to, I'd probably look at automator to see if I could figure out it's text manipulation options.

  • How to set different colors for even odd rows in a data table

    hi,
    In my project i hav a data table. i am using jsf. i want the rows of the data table different colors for even, odd rows. can i do it just setting the row class property ? or there should be there some other way? please help.
    sailajoy

    Hope this helps
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-loose.dtd">
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
    <title></title>
    <style type='text/css'>
    .scrollContent {
    height:100px;
    overflow-x:hidden;
    overflow-y:auto;
    .scrollContent tr {
    height: auto;
    white-space: nowrap;
    .scrollContent tr td:last-child {
    padding-right: 20px;
    .fixedHeader tr {
    position: relative;
    height: auto;
    top: expression( this.parentNode.parentNode.parentNode.scrollTop + 'px' );
    div.TableContainer {
    border: 1px solid #7DA87D;
    .headerFormat {
    background-color: white;
    color: #C8D7B5;
    margin: 3px;
    padding: 1px;
    white-space: nowrap;
    font-family: Helvetica;
    font-size: 16px;
    text-decoration: none;
    font-weight: bold;
    .headerFormat tr td {
    border: 1px solid #C8D7B5;
    background-color: #666633;
    .bodyFormat tr td {
         color: #000000;
         margin: 3px;
         padding: 1px;
         border: 0px none;
         font-family: Helvetica;
         font-size: 12px;
    .alternateRow {
    background-color: #C8D7B5;
    </style>
    <style type="text/css">
    div.TableContainer {
    height: 121px;
    overflow-x:hidden;
    overflow-y:auto;
    </style>
    </head>
    <body>
    <table cellpadding="0" cellspacing="0" border="0"><tr><td><div id="TableContainer" class="TableContainer" style="height:230px;">
    <table class="scrollTable">
    <thead class="fixedHeader headerFormat">
    <tr class="title">
    <td title="Sort" align="center"><b>NAME</b> </td>
    <td title="Sort" align="center"><b>Amt</b> </td>
    <td title="Sort" align="center"><b>Lvl</b> </td>
    <td title="Sort" align="center"><b>Rank</b> </td>
    <td title="Sort" align="center"><b>Position</b> </td>
    <td title="Sort" align="center"><b>Date</b></td>
    </tr>
    </thead>
    <tbody class="scrollContent bodyFormat" style="height:200px;">
    <tr class="alternateRow">
    <td>Maha</td>
    <td>
    <input type="text" name="textfield" size="7" />
    </td>
    <td align="right"><input type="text" name="textfield2" size="7" /></td>
    <td align="right"><input type="text" name="textfield3" size="7" /></td>
    <td><input type="text" name="textfield4" size="7" /></td>
    <td align="right"><input type="text" name="textfield5" size="7" /></td>
    </tr>
    <tr>
    <td>Thrawl</td>
    <td align="right">$9,550</td>
    <td align="right">159</td>
    <td align="right">100%</td>
    <td>Co-Owner</td>
    <td align="right">11/07/2003</td>
    </tr>
    <tr class="alternateRow">
    <td>Marhanen</td>
    <td align="right">$223.04</td>
    <td align="right">83</td>
    <td align="right">99%</td>
    <td>Banker</td>
    <td align="right">06/27/2006</td>
    </tr>
    <tr>
    <td>Peter</td>
    <td align="right">$121</td>
    <td align="right">567</td>
    <td align="right">23423%</td>
    <td>FishHead</td>
    <td align="right">06/06/2006</td>
    </tr>
    <tr class="alternateRow">
    <td>Jones</td>
    <td align="right">$15</td>
    <td align="right">11</td>
    <td align="right">15%</td>
    <td>Bubba</td>
    <td align="right">10/27/2005</td>
    </tr>
    <tr>
    <td>Supa-De-Dupa</td>
    <td align="right">$145</td>
    <td align="right">91</td>
    <td align="right">32%</td>
    <td>momma</td>
    <td align="right">12/15/1996</td>
    </tr>
    <tr class="alternateRow">
    <td>ClickClock</td>
    <td align="right">$1,213</td>
    <td align="right">23</td>
    <td align="right">1%</td>
    <td>Dada</td>
    <td align="right">1/30/1998</td>
    </tr>
    <tr>
    <td>Mrs. Robinson</td>
    <td align="right">$99</td>
    <td align="right">99</td>
    <td align="right">99%</td>
    <td>Wife</td>
    <td align="right">07/04/1963</td>
    </tr>
    <tr class="alternateRow">
    <td>Maha</td>
    <td align="right">$19,923.19</td>
    <td align="right">100</td>
    <td align="right">100%</td>
    <td>Owner</td>
    <td align="right">01/02/2001</td>
    </tr>
    <tr>
    <td>Thrawl</td>
    <td align="right">$9,550</td>
    <td align="right">159</td>
    <td align="right">100%</td>
    <td>Co-Owner</td>
    <td align="right">11/07/2003</td>
    </tr>
    <tr class="alternateRow">
    <td>Marhanen</td>
    <td align="right">$223.04</td>
    <td align="right">83</td>
    <td align="right">59%</td>
    <td>Banker</td>
    <td align="right">06/27/2006</td>
    </tr>
    <tr>
    <td>Peter</td>
    <td align="right">$121</td>
    <td align="right">567</td>
    <td align="right">534.23%</td>
    <td>FishHead</td>
    <td align="right">06/06/2006</td>
    </tr>
    <tr class="alternateRow">
    <td>Jones</td>
    <td align="right">$15</td>
    <td align="right">11</td>
    <td align="right">15%</td>
    <td>Bubba</td>
    <td align="right">10/27/2005</td>
    </tr>
    <tr>
    <td>Supa-De-Dupa</td>
    <td align="right">$145</td>
    <td align="right">91</td>
    <td align="right">42%</td>
    <td>momma</td>
    <td align="right">12/15/1996</td>
    </tr>
    <tr class="alternateRow">
    <td>ClickClock</td>
    <td align="right">$1,213</td>
    <td align="right">23</td>
    <td align="right">2%</td>
    <td>Dada</td>
    <td align="right">1/30/1998</td>
    </tr>
    <tr>
    <td>Mrs. Robinson</td>
    <td align="right">$99</td>
    <td align="right">99</td>
    <td align="right">(-10.42%)</td>
    <td>Wife</td>
    <td align="right">07/04/1963</td>
    </tr>
    <tr class="alternateRow">
    <td>Maha</td>
    <td align="right">-$19,923.19</td>
    <td align="right">100</td>
    <td align="right">(-10.01%)</td>
    <td>Owner</td>
    <td align="right">01/02/2001</td>
    </tr>
    <tr >
    <td>Thrawl</td>
    <td align="right">$9,550</td>
    <td align="right">159</td>
    <td align="right">-10.20%</td>
    <td>Co-Owner</td>
    <td align="right">11/07/2003</td>
    </tr>
    <tr class="alternateRow" >
    <td><strong>TOTAL</strong>:</td>
    <td align="right"><strong>999999</strong></td>
    <td align="right"><strong>9999999</strong></td>
    <td align="right"><strong>99</strong></td>
    <td > </td>
    <td align="right"> </td>
    </tr>
    </tbody>
    </table>
    </div></td></tr></table>
    </body>
    </html>

  • How could the customer support for Adobe LR be any less adequate - impossible to get person on phone, no response to chat.  Unbelievably shoddy and customer-hostile.

    I can't download my ordered LR because my order is still being "processed".  There are a thousand places to purchase things on the web where one's order is essentially processed at the time it is entered.  I've never had something like this wait for "processing" happen before, anywhere.  Could something be wrong?  Is a third party doing something to me?
    Why is there no way to talk to a person at Adobe?

    Thanks Henry to report this problem.  We will look into this.
    At the same time, it sounds you got the activation code now by arbitrary selecting a US state.
    I hope the activation code works out for you and you successfully register and activate the service.
    Regards,
    Richard

  • How to Create a Button for Reader Users to Save XML Data File?

    The "Submit via Email" tries to launching the local email software, like outlook express. But public computer tends to use internet emails.
    I am thinking of creating a button, allowing the reader users to save xml data filled in the form (same as the "submit via email" produces) somewhere.
    anyone has a clue?
    Thanks a lot!

    You could create the shortcut at one machine, then copy it to the target as part of the logon script. Note also that this line contains an error:
    "C:\Users\%userprofile%\Desktop\Org_chart_test.lnk"
    It should read:
    "%userprofile%\Desktop\Org_chart_test.lnk"

  • I am OCP forms 6i , pls tell me how long is it valid for ?

    I have done OCP in developers track in 2005 for oracle SQL,PLSQL, FORMS 6i and would like to know how long its valid. I mean is there any end date for this certification?
    Thanks

    Congratulations: then you are Oracle Internet Application Developer Rel. 6i OCP for life (unless Oracle changes it rules or you were to break an agreement and get decertified ... hopefully both are unlikley). Unfortunately there will undoubtably be less and less Forms 6i about, so it will become less relevant.
    However ... I believe 1z0-140 may be able to upgrade you if you like.

  • If I bought Adobe Photoshop Elements 8 for my Mac, how do I download it for my PC?

    A while ago, I bought Photoshop Elements 8 for my Mac which I don't use anymore and I was wondering how I could download it for my PC. Any help would be appreciated.

    You will need to upgrade to Photoshop Elements 10 and choose the Windows version.  You will still qualify for the upgrade pricing.  For more details please visit http://www.adobe.com/products/photoshop-elements.html.

  • How to desighn a table for below logic

    Hi all,
    Could  any body help me , how to design a table for below requirements
    Ticketing Status
    Departure Date/Time
    Domestic Point of Sale
    International Point of Sale
    Yes
    Outside of 24 hours
    Immediate
    Immediate
    Yes
    Inside of 24 hours
    Immediate
    Immediate
    No
    Outside of 24 hours
    24 hours after Project review or 20 hours prior to departure, whichever is earlier
    72 hours after Projectreview or 20 hours prior to departure, whichever is earlier
    No
    Inside of 24 hours
    4 hours after Projectreview or 4 hours before departure, whichever is earlier; Immediate if within 4 hours
    4 hours after Projectreview or 4 hours before departure, whichever is earlier; Immediate if within 4 hours

    CREATE TABLE [dbo].[POS_Table](
    [POSID] [int] IDENTITY(1,1) NOT NULL,
    [Ticketing Status] [varchar](3) NULL,
    [Departure Type] [varchar](7) NULL,
    [Departure DateTime Hr] [int] NULL,
    [POSType] [varchar](15) NULL,
    [POSAfterProject Review Hr] [int] NULL,
    [PriorToDeparture Hr] [int] NULL,
    [Immediate Hr] [int] NULL,
    CONSTRAINT [PK_POS_Table] PRIMARY KEY CLUSTERED
    [POSID] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    The rows will look like as below,
    POSID
    Ticketing Status
    Departure Type
    Departure DateTime Hr
    POSType
    POSAfterProject Review Hr
    PriorToDeparture Hr
    Immediate Hr
    1
    Yes
    Outside
    24
    Domestic
    0
    0
    0
    2
    Yes
    Inside
    24
    Domestic
    0
    0
    0
    3
    Yes
    Outside
    24
    International
    0
    0
    0
    4
    Yes
    Inside
    24
    International
    0
    0
    0
    5
    No
    Outside
    24
    Domestic
    24
    20
    0
    6
    No
    Outside
    24
    International
    72
    20
    0
    7
    No
    Inside
    24
    Domestic
    4
    4
    4
    8
    No
    Inside
    24
    International
    4
    4
    4
    Regards, RSingh

  • How to write professional documentation for java

    Hi, I have few application I need to write documentation for. Im ok with the user and serwer technical stuff. But how to write proper documentation for source code? Any tutorial or howto?
    Best regards.

    Phenom7 wrote:
    Hi, I have few application I need to write documentation for. Im ok with the user and serwer technical stuff. But how to write proper documentation for source code? Any tutorial or howto?A pointer: be explicit and specific when writing Javadocs. If your method never returns null, make sure you say so. If it can't accept null as a parameter, be sure to say what the consequence will be if it happens (but it's OK to say the result is undefined!). A well-written method Javadoc will make users of any API you make a lot more happy, rather than keeping them guessing or making them inspect your source code.
    It's expected that while the implementation of a method will change, its pre and post-conditions will not. Therefore, having a good method-level Javadoc is critical to both the people counting on your code and the people maintaining your code.

  • How to reduce download time for intial swf?

    How to reduce download time for intial swf?
    There are a number of RPC calls but most of the data is cached at server end but still swf takes a lot of time to download completely.
    What all are the ways by which i can reuce the inital load time of my application?

    Reduce the size of the SWF by moving code and assets not needed for the
    first screen out into modules.

Maybe you are looking for