How to serialize collections (language builtins) in ValueObjects?

I use the weblogic ant tasks servicegen and clientgen to generate webservices. I'd like to use the same ValueObject for the client as for the server. The ValueObject exchanged over the webservice contains a field "addresses" of type ArrayList. clientgen generates a field "addresses" of type Object[] in the client ValueObject. Does anybody know how to tell the clientgen task to generate a field "addresses" of Type List (or ArrayList) instead of Object[] in the client valueobject?
Here's the ValueObject on the server (i'd expect the same ValueObject on the client side):
public class Employee implements Serializable
private ArrayList addresses;
public Employee() { }
public ArrayList getAddresses() {
return addresses
public void setAddresses(ArrayList aobj[]) {
addresses = aobj;
In the WSDL everything still looks fine (field "addresses" has type ArrayList):
<xsd:element xmlns:tp="java:language_builtins.util" type="tp:ArrayList" name="addresses" minOccurs="1" nillable="true" maxOccurs="1"></xsd:element>
The generated client ValueObject:
public class Employee implements Serializable
private Object addresses[];
public Employee() { }
public Object[] getAddresses() {
return addresses
public void setAddresses(Object aobj[]) {
addresses = aobj;
Here the standard clientgen task I use (as a additional informaiton):
<clientgen ear="${build}/${ear_file}" warName="${war_file}" packageName="${package_name}" clientJar="${build}/${client_jar_file}" />

useServerTypes="true" helps indeed! Now the generated client ValueObject contains a field "addresses" of Type ArrayList. Thanks!
<clientgen
ear="${build}/${ear_file}"
warName="${war_file}"
packageName="${package_name}"
clientJar="${build}/${client_jar_file}"
useServerTypes="true" />

Similar Messages

  • Webservice: serialize collections (language builtins)

    I use the weblogic ant tasks servicegen and clientgen to generate webservices. I'd like to use about the same valueobject for the client as for the server. Yet a value of type "List" in the server valueobject is generated as type Object[] in the client valueobject.
    In the WSDL everything still looks fine:
    <xsd:element xmlns:tp="java:language_builtins.util" type="tp:ArrayList" name="addresses" minOccurs="1" nillable="true" maxOccurs="1"></xsd:element>
    How can I tell the clientgen task to generate a field "addresses" of Type List (or ArrayList) also in the client valueobject? Instead clientgen generates a field "addresses" of type Object[].

    Option useServerTypes="True" in clientgen helps ..
    see http://forums.bea.com/bea/message.jspa?messageID=600008880

  • How to change Marketplace Language. I don't want M...

    When I 1st use Lumia 800. the Marketplace language I saw is English.After I sign in Window Live ID and select the marketplace country to Malaysia .The marketplace language change to Malay. Who know how to change back. How to change Marketplace Language. I don't want Malay Language~~~.. I check from nokie FAQ , there say can;t to change back. Malaysia country is using Malay only... How can like that, it much put two  language in Malaysia Marketplace .( Malay and English ), like this people just can choose/ select language which they want .
    Solved!
    Go to Solution.

    reason for the malay language is because the email you are linking with is default to malaysia as your location, and msia marketplace doesnt have full apps collection.
    so two things i did:-
    (1) Reset your phone to default setting, start all setting all over
    (2) Create a new window live account, and not choosing malaysia as base country
    (3) Same goes to market place,choose an english spoken country (like U.S) as your default country when you click into market place for the first time.
    and Voila, everything is now in english. Sweet.

  • How can I watch movies in germany with native tone, english? Any one knows how to switch the language when renting a movie?

    How can I watch movies in germany with native tone, english? Any one knows how to switch the language when renting a movie?

    I wonder the Format Tables macros on my site could be adapted?
    http://www.grainge.org/pages/authoring/word/word_macros.htm
    If not, I have used Macro Express to format tables in Rh. No reason it could not be used in Word.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How to Use the language function for assignment and validation

    Hi All,
    If anyone can explain me in details with example ,how to use the language function for assignments and validations?
    Thanks
    Arnab

    Hi Arnab,
    The expression is checked only for the current MDM session.
    If u login with the ABC language it will always show the ABC language no matter how many times u execute it.
    Try connecting to the DM with the XYZ language.
    It should go to the if part rather than else.
    Hope it helps.
    Thanks,
    Minaz

  • How can i change language on apple tv?

    the film I bought is running correclty in German on my computer. But on apple tv it's still in English. Audio settings on apple tv are correctly in German). No idea why it works on my comupter and doesn't work on apple TV
    can someone help?
    Thanks
    Martin

    Hello martin toth,
    You may need to change the Apple TV's language to German in Settings -> General.
    Apple TV: How to change the language
    http://support.apple.com/kb/HT5907
    Cheers,
    Allen

  • How to change the language in smartform?

    hi
    how to change the language in smartform?

    Hi,
    U can't change the language in the smartform, the main language of the smartform is the language used to create it (so the language used for SAP log on.
    But u can translate it (by trx SE63) and if u need to print in a new language u have to indicate it when the smartform is called.
    U can transfer the language to be used for the print in the parameter CONTROL_PARAMETERS, like structure SSFCTRLOP, here u can indicate the language in the field LANGU.
    see this..
    Use transaction SE63, after activate your smartform, to translate.
    In the First Page of your Smart Forms click on Global Settings under that click Form Attributes
    now in the Right side screen Go to Subscreen Language Attributes.
    select the Radiobutton Translate To all Languages
    from the Translate subscreen out of three radio buttons.
    rewaards if useful
    regards,
    nazeer

  • I have recently had my hard drive replaced due to a fault whilst in Germany working. Happy with the replacement, however when i go to log on as a user that screen is in German? Any idea how to change the language?

    i have recently had my hard drive replaced due to a fault whilst in Germany working. Happy with the replacement, however when i go to log on as a user that screen is in German? Any idea how to change the language?

    Greetings Lex,
    Kind of you to comment ... but you are also adding years to my signature!   I know I'm 76 but I don't want to think about it. 
    Regards  71.

  • How to change the language of the document in Pages 5.0.1

    Does anyone have an idea about how to change the language of a document in the new version of Pages (version 5.0 or later) without having to restart the computer?

    Edit > Spelling and Grammar > Show Spelling and Grammar

  • How to identify german language in a program

    Hi All,
    i have one requirement. that is how to identify german language in a program.(suppose text elements, data elements are in german language our program should identify that german language). Anybody have solution for this, pls send me as soon as possible.
    Thanks for all in advance.
    Thanks & Regards,
    Nagarjuna.

    Hi Nagarjuna,
    2 possible approaches:
    1. Source language: Every program is initially created with source language = logon language. Sored in TRDIR-RLOAD.
    2. Try to read program texts in specific language (DE).
        READ TEXTPOOL pv_repid INTO lt_textpool LANGUAGE 'D'.
        IF sy-subrc                           = 0.
          MESSAGE s000(R1)
            WITH 'German texts present in' pv_repid '' ''.
        ELSE.
    Regards,
    Clemens

  • How to add norwegian language to my ipa-file in Adobe Flash Professional and Settings for AIR

    Hi,
    How to add Norwegian languages to my ipa-file in Adobe Flash Professional and Settings for AIR?
    The Norwegian users get my apps in english instead of Norweigan. Desperate for help!
    Regards Ylva

    Sorry but you will not get help here for that problem. This forum is about AIR Help, an online help format produced using AIR, it is not about AIR itself.
    I'll see if I can move it.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How To import collections from Bridge cs6 To Bridge CC

    How To import collection from Bridge cs6 To Bridge CC??
    thx

    How To import collection from Bridge cs6 To Bridge CC??
    A collection is a bunch of aliases to the original files in their original place. If you have upgraded to CC on the same machine you can use the same collection, on a different machine it will possible not find the correct location again.
    On a Mac the path for the saved collections is : User / library/ application Support / Adobe/ BridgeCS6 / collections. Inhere are the saved collections showing the names you gave them. You can copy these collection files to the same location in Bridge CC.
    If you have a different machine you best first choose the collection and add a keyword with the name of the collection to all the files in this particular collection so you can use the find command to easily recreate the collection on your new machine.
    Maybe someone with more knowledge of Windows can show you the correct path but it should be something similar as on a Mac.

  • In Po, How to call different language form ?

    Hi Experts
      For our Japan/China Po form, it has different language. When we create Po and get the output type, How to control which language form it will call?  Since on different language form, some words language is different .
    THanks
    ALice

    Hi greetings
    In general, the Purchase order from will br triggered in the Vendor communication language. ( Maintained in vendor master-General date-Address) provided the Form has been maintained in the specified language in the configuration of output type.
    Gobinathan G

  • I cannot find how to change the language for labels in a quiz

    I cannot find how to change the language for labels in a quiz

    You have to be aware that this will only change labels if you edit before adding quiz slides: Preferences, Quiz, Default Labels. You will have to edit the labels, choosing another language will not change them automatically.

  • How to display the 'language code' for language dependent 'Short text' ?

    Hi,
    I am new to BW.
    Can somebody help me with the following issue?
    I have an attribute 'Material category description'  and I chose short text exists and made it language dependent. I had loaded the master data successfully.
    Now I want to know how to check the 'language code' for this material category description. When I display the data, will the language code display by defalult?
    I had checked the text table using SE11
    It displays the following fields over there.
    /BIC/TS1_MCT_DS   [  /BIC/TS1(InfoObject name)  ]
    LANGU
    TXTSH
    I appreciate your help!
    Thank you
    Sekhar

    Dinesh,
    I went to RSD1 -> info-object -> Master Data/text tab. It shows my language selections there (Short text selected, language time dependent etc.) with everything grayed out.
    In SE16, I could display the data in the following format.
    /BIC/ST_PRID                TXTSH                 TXTMD
    P01                                   umbrella                 rainyday
    P02                                  tent                         waterproof
    etc.
    I want to see the 'language code' as one of the columns in this table.
    Can you help me do that?
    Thank you,
    Sekhar

Maybe you are looking for

  • Comments on 2014 X1 Carbon

    I am thinking of upgrading from a very reliable X201 to the new X1 Carbon (2014).  If I order it, it will be with the WQHD screen (non-touch). I've perused through some of the problems people have had, but would any owner of the new X1 Carbon mind ad

  • FP9 vs. FP10 Drawing API

    Hey all, I created a program that uses the drawing API to draw a graph of some river level data downloaded from the web. Basically, it will download a TAB delimited file, parse it, and draw a graph of the past 7 days using solid rectangles. The graph

  • PSE 8 organizer has photo with lock and message editor is busy

    I want to edit a picture from my gallery.  I click on fix and try to open full edit and I get message that the editor is busy.   There is one picture in my gallery that has a lock across it and states edit in progress.  I have exited and restarted PS

  • Storage Tek 6140 to Apple Mac OS-X

    Is it possible to map a LUN on StroageTek 6140 FC SAN directly to Apple Mac OS-X 10 operating system? Thanks RodP.

  • Get error ORA-12500 : TNS Listener

    I keep getting this ORA-12500 ODBC error, TNS listener could not be resolved. What does it mean? What is causing it? The error comes and goes by itself within a few seconds. Any help is appreciated. Thanks.