How to design a simple quiz...

Hi everybody
Can anybody help me out with constructing a simple quiz within Edge animate, I don't need it to randomize anything, I just want 10 questions that tally up the answers and send the results in a email to the user
Any help would be appreciated
Regards
George

You could for example do it like this:
import java.io.*;
class Quiz
public static void main (String [] args)
BufferedReader in = new BufferedReader (new InputStreamReader(System.in));
System.out.println("SUPERQUIZ");
System.out.println("How many legs does a horse have?");
System.out.println();
System.out.println("1");
System.out.println("2");
System.out.println("3");
System.out.println("4");
int answer = Integer.parseInt(in.readLine());
if (answer == 4)
System.out.println("The answer is correct");
else
System.out.println("The answer is incorrect");
This is just a basic program, hope you understand it (hopefully it works).
�sbj�rn

Similar Messages

  • How to make a simple Quiz?

    Could anyone help me with some hints and maybe sample code (or tutorial :)) how to make a simple quiz, with multiple
    answers choices, and a score function.
    //D

    You could for example do it like this:
    import java.io.*;
    class Quiz
    public static void main (String [] args)
    BufferedReader in = new BufferedReader (new InputStreamReader(System.in));
    System.out.println("SUPERQUIZ");
    System.out.println("How many legs does a horse have?");
    System.out.println();
    System.out.println("1");
    System.out.println("2");
    System.out.println("3");
    System.out.println("4");
    int answer = Integer.parseInt(in.readLine());
    if (answer == 4)
    System.out.println("The answer is correct");
    else
    System.out.println("The answer is incorrect");
    This is just a basic program, hope you understand it (hopefully it works).
    �sbj�rn

  • How to design a simple game?

    my programming skills are pretty much limited and as most beginners i was coding simple things by build and fix method, but wanna try to do it properly so i'm looking for help. i've been trying to design simple Connect4 game and as i'm coding in java i taken oo aproach. i'll explain exactly steps i've taken and i'd really appreciate if someone familiar with oo design and software engineering in all would point out what i'm douing wrong and if theres is anything ok with my approach.
    1. i've started with use-case modelling and created first scenario
    scenario created:
    1. user clicks start button
    2. player1 is presented with empty board and asked to insert token in column of his choice
    3. player1 clicks on column where he wants to insert token. token drops (appears) in chosen column
    4. player2 is asked to insert token into column
    5. player2 clicks on column where he wants to insert token
    token drops (appears) in chosen column
    6. steps 2-5 are repeated
    7. player1 connects 4 in a row and information is displayed player1 has won
    i know scenarios should include every possible way of utilizing the software but it gives countless possbilities and i was wonder if scenario for every single way of utilizing the product should be created or maybe not? i suppose that number of scenarios depends on how the product is complicated but in case of very simple game like connect4 aproximately how many scenarios would be expected?
    2. having above scenario ready i've used noun extraction method to extract candidate classes and so i have:
    players inserts tokens into the board consisting of 7 rows and 6 columns. players trying to connect their four tokens in a row (horizontally, vertically or diagonally) to win.
    classes extracted:
    player
    token
    board
    row
    column
    assuming that state of token, row, column will not change, i skipped those and left only two classes board and player. after a while i also noticed that another class named connect4 would be needed to put it all together.
    3. having one scenario ready and classes extracted i went directly to drawing sequence state diagram which i've put here
    4. next i draw detailed class diagram (here) and more or less decided on methods for every class
    5. then i started writing pseudocode but while writing i'm finding myself adding additional methods, variables etc and keep changing design while coding, what dosent seem to be a good practice. i was wonder how it works in real life and what is the chance to get application designed correctly for the first time, i mean extract the classes with methods etc.
    to be honest i got lost a little cause according to shach's book i missed state diagram and few other things and dont know how important those bit are in real life and designing real software. as i said i'm real beginner in software engineering and any help would be much appreciated. than you very much in advance for any comments regarding my design and help

    i know scenarios should include every possible way of
    utilizing the software but it gives countless
    possbilities and i was wonder if scenario for every
    single way of utilizing the product should be created
    or maybe not? i suppose that number of scenarios
    depends on how the product is complicated but in case
    of very simple game like connect4 aproximately how
    many scenarios would be expected?Very few. This program is small and the interaction
    with the user is minimal.
    2. having above scenario ready i've used noun
    extraction method to extract candidate classes and so
    i have:
    player
    token
    board
    row
    column
    assuming that state of token, row, column will not
    change, i skipped those and left only two classes
    board and player. after a while i also noticed that
    another class named connect4 would be needed to put it
    all together.Things like "player" or "person" are rarely if ever real classes.
    Imagine you were designing the control program for an
    elevator. Just because a person clicks on the button for
    a floor doesn't mean you make them a class in your design.
    Likewise, just because a player clicks on a column doesn't
    mean you make them a class.
    In reality, this program is small enough for one major class,
    the gameboard itself. You may have an enum for the token
    color but that's about it.
    What can you do with this gameboard? Not much:
    1. Add a token to column X.
    2. Check for a win.
    3. Obtain a copy of the board.
    Your gameboard only has to maintain the state of the
    board and allow you to add a token or check for a win.
    Your class to display the gameboard and accept user
    input will probably be larger than anything else.
    You can write this program with only two classes. The
    gameboard and the display.
    3. having one scenario ready and classes extracted i
    went directly to drawing sequence state diagram which
    i've put hereOverkill for a program of this size.
    4. next i draw detailed class diagram (here) and more
    or less decided on methods for every classAlso overkill for a program of this size. Unless this is
    an assignment at work or school, all of these documents
    are unnecessary and likely to be several times larger than
    your entire program.
    5. then i started writing pseudocode but while writing
    i'm finding myself adding additional methods,
    variables etc and keep changing design while coding,
    what dosent seem to be a good practice. i was wonder
    how it works in real life and what is the chance to
    get application designed correctly for the first time,
    i mean extract the classes with methods etc.If you find your design doesn't work while writing code
    then yes, you should go back and change your design
    document. This isn't too big of a sign of disaster unless
    you need to step back another step and change the
    requirements document. That's usually a sign you
    really messed up.
    By all means, go back and change the design document
    if you need to before you finish coding.
    In this case however, its probably overkill.
    to be honest i got lost a little cause according to
    shach's book i missed state diagram and few other
    things and dont know how important those bit are in
    real life and designing real software. as i said i'm
    real beginner in software engineering and any help
    would be much appreciated. than you very much in
    advance for any comments regarding my design and helpIts next to impossible to go through a structured design
    process on a project this small while working by yourself.
    You really need a bigger project with multiple team members
    to see how its all supposed to play out.
    Projects of this size are written almost as soon as you start
    thinking about them and any documentation you generate will
    dwarf your source code printout.

  • How to design a simple menu midlet in j2me?

    I'm new to j2me and trying to make a simple menu midlet without using polish (css). Please help... Thank you

    You need to use
    Class javax.microedition.lcdui.List
    Interface javax.microedition.lcdui.CommandListener
    Lots of MIDP Technical Articles and Tips at
    http://developers.sun.com/mobility/midp/reference/techart/index.html
    For future needs, please post on the CLDC and MIDP forum
    http://forum.java.sun.com/forum.jspa?forumID=76
    db

  • How to design a simple binary one-shot

    I need a simple binary one-shot that when a signal becomes true, a new value goes True for one evaluation and does not get re-triggered until the original signal becomes false and then true again. I have tried many ways and either the wait for the signal to go false again locks up the loop or the trigger remains true and causes the logic to keep on processing.
    Solved!
    Go to Solution.

    Can you post an image of what you have tried, preferably in .png format? Or attach your code attempts, ID'ing what version of LabVIEW. 
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • Create a simple quiz for Muse?

    I've discovered how to create a simple quiz with Flash and import this into Muse. It works well enough, although I need to recolour the stage (background) of .swf when on my Muse page.
    The quiz has multiple choice radio button, a timer, a running and final total. Works fine as an interactive Flash file, put I know it will have limitations.
    If I want to create an alternate layout for tablet, I suppose the .swf won't play in iOS. I've used the CreateJS toolbox within Flash, but the result when Published (in Flash) plays in the browser immediately from the first to last frame, even though there is a stop on frame 1. Also, I wouldn't know how to import this code into Muse. I've tried opening the .js file in Dreamweaver and copying and pasting the code into Muse, but this just copies the text and has no functionality.
    I've also considered Adobe Captivate as a means to creating a simple e-Learning site.
    Any suggestions would be greatly appreciated.
    Thanks, Jerry

    Hey Jerry,
    Adobe Captivate isn't offered on the current version cloud (I hope it will be soon though)
    I am also searching for a way to make a quiz and place it on a muse website.
    I am thinking about using the form functionality to create a simple test.  Also maybe creating a something in edge.
    Rob

  • From a Technical Architect point of view, how to design a web application?

    Hi to all,
    I am writing this issue here because I this question is not related on how to program, but on how to design a web application. That is, this question is not related to how to program with the technologies in J2EE, but how to use them correctly to achieve a desired outcome.
    Basically I know how to develop a simple web application. I like to use SpringFramework with AcegiSecurity and Hibernate Framework to persist my data. I usually use JBoss to deploy my web applications, however I could easily use Tomcat or Jetty (Since I am not using EJB�s).
    However I have no idea on how to develop (or a better word would be �design�) a website which is divided into different modules.
    Usually when you develop a website, you have certain areas that are public, and other areas that are not. For example, a company would want anyone on the Internet to download information about the products they are selling, however they would only want their employees to download certain restricted information.
    Personally I try to categorise this scenario in to common words; Extranet and Intranet.
    But � (and here starts the confusion in my mind) should I treat these two as two projects, or as one project? The content to be displayed on the Extranet is much different then the content to be displayed on the Intranet and definitely clients should not be allowed to the Intranet.
    First approach would be to treat them as the same project. This would be perfect, since if the company (one day) decides to change the layout of the website, then the design would change for both the Intranet and the Extranet version. Also the system has a common login screen, that is I would only need to have employees to have a certain Role so that they have access to the intranet, while clients would not have a certain Role and thus they would not be allowed in. But what about performance and scalability? What if the Intranet and Extranet have to be deployed on the different Hardware!?
    The second approach is to threat them as two separate projects. To keep the same layout you just copy & paste the layout from one project to another. However we would not want to have two different databases to store our users, one for the employees and the other one for the clients. Therefore we would build a CAS server for authentication purposes. Both the Intranet and the Extranet would use the same CAS server to login however they could be deployed on different hardware. However what if we want to change the design. Do we really want to have to just copy and paste elements from one project to another? We all know how these things finish! �We do not have time for that � just change the Extranet and leave the Intranet as it is!�
    The third approach (and this is the one I like most) is to have a single project built into different WAR files. The common elements would be placed in all WAR files. However in development you would only need to change once and the effects would show in the different war files. The problem with this approach is that the project will be very big. Also, you will still need to define configuration files for each one of them (2 Web.config, 2 Spring-Servlet.config, 2 acegi-security.config, etc).
    Basically I would like something in the middle of approach 2 and approach 3! However I can identify what this approach is. Also I can not understand if there is even a better approach then these three! I always keep in mind that there can always be more then two modules (that is not only Intranet and Extranet).
    Anyways, it is already too long this post. Any comments are more then welcome and appreciated.
    Thanks & Regards,
    Sim085

    Hi to all,
    First of all thanks for the interest shown and for the replies. I do know what MVC or Multi-layered design is and I develop all my websites in that way.
    Basically I have read a lot of books about Domain-Driven Design. I divide my web applications into 4 layers. The first layer is the presentation layer. Then I have the Facade layer and after that I have a Service layer (Sometimes I join these two together if the web application is small enough). Finally I have the Data Access layer where lately I use Hibernate to persist my object in the database.
    I do not have problems to understand how layering a web application works and why it is required. My problem is how to design and develop web applications with different concerns that use same resources. Let me give an example:
    Imagine a Supermarket. The owner of the Supermarket want to sell products from the website, however he wants to also be able to insert new products from the website itself. This means that we have two different websites that make use of the same resources.
    The first website is for the Supermarket clients. The clients can create an account. Then they can view products and order them. From the above description we can see that in our domain model we will have definitely an object Account and an object Product (I am not mentioning all of them). In the Data Access layer we will have repository objects that will be used to persist the Account and Products.
    The second website is for the Supermarket employees. The employees still need to have an account. Also there is still a product object. This means that Account and Product objects are common to the two websites.
    Also important to mention is the style (CSS). The Supermarket owner would like to have the same style for both websites.
    Now I would not like to just copy & paste the objects and elements that are common to both websites into the two different projects since this would mean that I have to always repeat the changes I make in one website, inside the other one.
    Having a single WAR file with both websites is not an option either because I would not like to have to deploy both websites on the same server because of performance and scalability issues.
    Basically so far I have tought of putting the common elements in a Jar File which would be found on the two different servers. However I am not sure if this is the best approach.
    As you can see my problem is not about layering. I know what layering is and agree with both of you on its importance.
    My question is: What is the best approach to have the same resources available for different websites? This includes Class Files, CSS Files, JavaScript Files, etc.
    Thanks & Regards,
    Sim085

  • How to make a simple Plugin system?

    hey guys, first let me say I see very much hostility here, and I'm not here to annoy anyone, so if you don't feel like answering then simply don't.
    I want to design a simple Plugin System for my application. I think what I need is a bit of reassurance and redirection if I'm making wrong assumptions.
    here is the stages I see:
    1. the system has a HashMap<String,PluginTypeData> that holds types of plugins, and the folder of the application that hold the libraries files for the plugins among other details.
    (this would be saved in the application configuration file)
    2. once the application starts/on request the system would load the libraries into the memory.
    3. in each library there should be a file that holds the textual fully qualified name of the classes that this plugin would require to operate properly.
    4. the objects in the library would have to be familiar to the application, therefore they must implement or extend a known base object from the application, and once loaded a reference to that known base object is assigned to the new object.
    5. and then if I want to load a GUI component from the plugin I just get it from the reference.
    lets start with how does that sound? I would like to get a feed back, just a serious one please, that may help me understand any mistakes I might be doing, and not just to understand that I'm wrong....
    Thanks in advance,
    Adam Zehavi.
    Edited by: Adam-Z. on Dec 19, 2009 12:34 AM

    well, English is not my native, so I find it hard to describe, sometimes I feel the lack of words to describe what I want, and I have to take a break, and use a dictionary to find the right word to use, and sometimes these are basic words that I miss so I'm sorry if I'm not clear.
    And this will be required for every single plugin in exactly the same way? If not then each plugin should include a factory.Yes, they are all saved the save way, every plugin has a method that create an instance of a basic class J2MeDataChunk.
    The types of the data chunks are defined on the J2Me platform and only there.
    The reason that they are defined on the J2Me platform is because of the first limitation of the J2Me platform.
    1. I cannot import into the build path of the project any external libraries.Therefore in the future when I would like to add more chunk types, I would have to add them into the J2Me project as classes, and not as a jar in the build path, but the plugin would have to refer to the J2Me project and to know which chunk type it is going to edit.
    Each plugin knows how to edit a different type of J2MeDataChunk, the data chunks saves them selfs into a data output stream using a serialize method in each of them, and the serialize method is invoked from the plugin itself when the user (me) press the save button.
    "produce"? You mean a factory?No, I meant that the object I posted earlier (J2MeDataChunkType) is an object that represent the type of the data chunk for each of the data chunk types, and that there can only be one instance of the object that represent the type of the data chunk, and that single instance of the object that represent the type of the data chunk is the one that can create new instances of that data chunk type, it can create an empty data chunk,or to deserialize the data chunk type using a DataInputStream, and it has an abstract method, that returns Swing component only on the J2Se platform (a class that extends the J2MeDataChunkType object on the J2Se platform that overrides the abstract method for the editing Frame/Panel).
    What do you mean "external" libraries? Your code doesn't count right?I mean that a J2Me project cannot import other jar files into its build path, only the classes files that are in the project are known to the complier.
    The other two limitations are not limitations at all as far as I can see.well the third one might not be a limitation but it is a pain in the .. S since I have to implement every object I want to serialize myself
    but the second one, well, if you don't use the full strength of the 1.5 then you might not miss it, but there are so many elements I miss when programming on J2Me platform... like this one, I don't know how it is called:
    class A {
    class B  extends A {
    class C {
          A getA() {
    //  return instance of A
    class D extends C{
          B getA() {    // this is not implementable on J2Me, and I miss this for better implementation of things since I try to integrate my J2Me platform I'm building with J2Se application.
    //  return instance of B
    }moreover I miss enumeration, god I love using the
    for(Object o: objectList)very useful very efficient to use...
    and how could I leave generics out... wow no generics... terrible oh, and enums, no enums... hell if there were enums on J2Me... life would have been less gray.
    so yes I see all this as limitations, it slows me down allot, and it makes my code less readable.
    well since I try to build a bridge between the J2Me and J2Se platforms, and since there are some limitation to the J2Me platform* I needed to
    define a few things in a few objects, it was possible to make all the data to fit into one object, but it would make that object too heavy for the
    J2Me platform (besides I rather having two objects it felt more OOD right way to do), where one is a type definer that can produce only one
    instance of this object although it is inheritable,
    Memory in terms of the class or the instance? If the instance then it doesn't have much to do with this discussion. If the class then that impacts >your design because with a limited memory size and large impact then unloading might come up - and that requires a class loader.well this design actually adds an extra class for each type I decide to add to my platform although at the end I intend to join all the objects that represent the type of the data chunk into one object only on the J2Me platform which would actually add only one class to the memory on the phone, it is just easier for me to see things clearer now as I design this bridge application between the platforms, besides it allows maximum flexibility to create new types of chunks, and that was my main aim, to make as many types to be saved on files that I can transfer via a wireless onto the phone and the platform on the phone would know exactly what to use them the data chunks for with out any user intervention.
    as for instances, this way I reduce the memory each of the chunks would use and in the total calculation it would improve memory usage while creating objects from these chunks.
    Presumably you are managing the data items because the base class is going to provide functionality relevant to them.Right, the base class is the most common ground I could find for all the chunks together.
    Presuming that each "type" really is a type (say you have 4 interfaces any of which might be implemented) then you would need the following in
    a configuration file for each entry.
    1. Type of the implemented class.
    2. Full name of the implemented class
    3. Full name of the GUI dialog object.
    4. Optional Name of this entry. I suggest this as it allows you to report errors using this name rather than plugin class names
    Per your requirements there is no path nor jar is needed nor can be specified.well I hope that by now you did get that I generalized all the data chunk types that I created into one basic object which I posted earlier, this object handles everything, and the plugin main object would be design on the J2Se platform and would extend that J2MeDataChunkType class and it would return the Swing frame/panel when the J2Se application calls the getPanel method and an empty chunk on the getDataChunk() method.
    well, in my case it would extend an abstract class from the J2Me platform, maybe two object I'm still thinking about a better implementation >> so the plugin would be more simple, consist of only one object, that needs to be loaded.It shouldn't matter to you how the class is implemented.But of course it does, I want to make my life as simple as possible when I implement new plugins, having one object with abstract method, that when I extend it Eclipse would automatically add the abstract method for me to implement, and just a short glimpse at another implementation of the plugin would let me design another plugin in seconds.(with out making the GUI for the data chunk editing obviously).
    I think I got my head around this, especially now that it feels like I could explain what I'm making better in words.
    Thank you for taking the time to respond to my posts, I see you currently have 37k post so I guess you are a very quick typer, yet you take the time to try and understand my design. Thank you.
    Adam Zehavi.

  • How to design HTML Table in ADF

    I am new to ADF Tech,
    I would like to know, how to design the HTML Table Rows and Columns in ADF
    Ex:
    <TABLE width="100%" border="1">
    <TR>
         <TD>GUID</TD>
         <TD>123</TD>
         <TD>Name</TD>
         <TD>Mark Antony</TD>
         <TD>Version</TD>
         <TD>1.0</TD>
    </TR>
    <TR>
    <TD>Created</TD>
         <TD>Oracle</TD>
         <TD>Modified</TD>
         <TD>Oracle User</TD>
         <TD>Placements</TD>
         <TD>20</TD>
    </TR>
    </TABLE>
    Thanks in Advance

    Balaji,
    With JSF in general (and ADF Faces too), you should not think in terms of HTML output, but in terms of JSF components. ADF has an af:table component that renders things in rows-and-columns, but emits HTML that is much more complex than just a simple HTML table.
    John

  • How to design the URL?

    How to design the URL?i know that the Google  will take down the good URL.such as the staticize URL Google will like more..

    A site's URL structure should be as simple as possible. Consider organizing your content so that URLs are constructed logically and in a manner that is most intelligible to humans (when possible, readable words rather than long ID numbers). For example, if you're searching for information about aviation, a URL like http://en.wikipedia.org/wiki/Aviation will help you decide whether to click that link. A URL like http://www.example.com/index.php?id_sezione=360&sid=3a5ebc944f41daa6f849f730f1, is much less appealing to users.
    Consider using punctuation in your URLs. The URL http://www.example.com/green-dress.html is much more useful to us than http://www.example.com/greendress.html. Google recommends that you use hyphens (-) instead of underscores (_) in your URLs.
    Overly complex URLs, especially those containing multiple parameters, can cause a problems for crawlers by creating unnecessarily high numbers of URLs that point to identical or similar content on your site. As a result, Googlebot may consume much more bandwidth than necessary, or may be unable to completely index all the content on your site.

  • How to design a GUI Python app properly?

    Hi guys. As motivation to actually learn Python, I want to carry out a fairly simple application that's been brewing in my head for months; a "game manager" that a gamer can use to keep track of the games he owns, the games he's beaten, and any specific challenges he's completed in said games.
    The problem is that I can't seem to wrap my head around Python. I look through its docs to solve problems but I almost always end up lost. I come from PHP, which is supposedly sloppy, but it's also very easy to get almost anything done quickly. In my frustration, I proved that I could get more progress in 15 minutes in PHP than I had gotten in 2 hours in Python. I was right, but I know that PHP isn't the right tool for the job. I want to make an actual desktop application that relies on an sqlite db.
    With my frivolous backstory out of the way, could anyone offer any enlightenment on Python? I've tried the tutorials, I've tried the docs... where can I go to learn not only how to code my app, but how to design it? Design is more important than syntax, imo, because it relies on concepts which form the foundation of whatever app you're building.
    I can post an overview of how I want the app to behave, if that would help others advise me on how to build it in Python. I'd really like to pick the language up, but it's being anything but "easy to learn".

    Are you sure you've read the helpful tutorial? If you can't grasp it, perhaps PHP has finally penetrated the shell of coding sense surrounding your brain and started eating. (I used to be close to that point. Now I believe Python is god.)
    Oh, and never start with something as big as a full-blown graphical application. Trust me, it is never as simple as it first seems when you conceive the idea. Start with small, one-file utilities and work your way up from there. Consider downloading the full documentation so you always have a local copy.
    And remember: If your code seems ugly, it probably is. There is almost always a better way in Python.
    Last edited by Peasantoid (2010-02-06 05:14:43)

  • How to design LabVIEW programmin​g for temperatur​e monitoring using 4 thermocoup​les

    Hi all.
    Sorry if this seems a simple question but I really sorry for the troubles. I'm a new user with LabVIEW and currently using LabVIEW 8.6 for a final year project of mine. I’m trying to monitor the temperature reading in 4 different depth of pavement for every 1 hour interval continuously for 1 month duration. Basically I’ll be using 4 separate thermocouples type J and NI 9219 device. My problems are:
    I’m not sure how to design the LabVIEW programming for my application.
    How to get the temperature reading data in Excel spread sheet.
    How to set the min, max and average daily temperature for each thermocouple.
     Thank You.
    Regards,
    Amanus
    Thermocouples Layout:
    Solved!
    Go to Solution.

    Introduction to LabVIEW
    Follow that link to some getting started tutorials. There should be all you need in there to get you going with both the software and hardware
    - Cheers, Ed

  • How to design a client object???

    hello,Michael Wooten
    thank for your help, now I know the list of Java data types for the parameters
    and return values, and their corresponding SOAP data types.
    but how to design a client object, f.e: this object is value Object in ejb, their
    have some gets and sets methods, these set methods, their return type is void
    in java, but now in web service,how to deal with these prolem?
    like ejb, we have ejb's design pattern, for web service, do we have their design
    pattern also?
    thanks :-)

    Hi littlehill,
    In general, you want to think of the input parameters (and return values) for
    a web service method as "hierarchical state", not objects :-)
    The main motivation for taking this approach is to reduce the likelihood of interoperability
    issues with other (noteably non-Java) SOAP packages. The JavaBean model provides
    a simple, easy to implement mechanism for creating "hierarchical state", because
    it allows nesting. Using this nested JavaBean approach, you should be able to
    create an object graph that represents your "value object", but again the key
    here is to not thinking of them (the value objects) as objects, but state ;-)
    Each SOAP (or Web Services) toolkit will have a different approach and API for
    writing SOAP clients, unless it supports JAX-RPC. This being the case, it is a
    bit difficult to come up with an "across the board" design for a web service client
    ;-) In the case of Java-based SOAP toolkits, most developers prefer to "stay in
    the object world" as opposed to dealing with XML parsing APIs. To accommodate
    this desire, most Java-based SOAP toolkits have a "XML-to-Java, Java-to-XML" type
    mapping mechanism to handle the complexities of this task. If you don't want to
    muck around with type mappings, you should look around for a product that can
    generate Java classes from XML Schema, and vis-versa. WLS 7.0 does a better good
    of this than WLS 6.1, so you might want to check it out. I've also had a fair
    amount of success with the Exolab Castor data binding package (http://castor.exolab.org/sourcegen.html).
    It has a very comprehensive implementation of "XML Schema Part 1: Structures"
    and "XML Schema Part 2: Datatypes", is open-source, and works quite well. When
    you get down to it, a good XML Schema processor is key to saving yourself lots
    of frustration and coding.
    Regards,
    Mike Wooten
    "littlehill lee" <[email protected]> wrote:
    >
    hello,Michael Wooten
    thank for your help, now I know the list of Java data types for the parameters
    and return values, and their corresponding SOAP data types.
    but how to design a client object, f.e: this object is value Object in
    ejb, their
    have some gets and sets methods, these set methods, their return type
    is void
    in java, but now in web service,how to deal with these prolem?
    like ejb, we have ejb's design pattern, for web service, do we have their
    design
    pattern also?
    thanks :-)

  • How to design a digital switch in order to modulate an analogue carrier?

    Hi,
    I am struggling with something that, I think, might be simple. I am programming a digital modulator. It multiplies an analogue waveform (carrier) by 1 or -1 according with the value in the digital signal.
    Thus, how to design a digital switch using a digital waveform? 
    I have tried to use Numeric and Boolean functions, but I am getting constant errors due to data type incompatibilities (broken wire).
    Many thanks,
    Dave

    MInd showing us your code?
    You might have to use a FOR loop to process your data.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • [iPhone] How to design a newspaper app?

    Hello,
    I have been asked to develop a kind of "newspaper" app for the iPhone, such as the NY Times app for example (http://www.nytimes.com/services/mobile/iphone.html).
    I wonder how this kind of app is designed and how it is linked to the "main" website. Technically speaking, how would you display a list of articles of the sport section for instance? HTML parsing? RSS based? And then when you choose an article in that list, would it be a UIWebview displaying the actual article of the main website?
    Well, if you have any ideas you would like to share.
    Thanks !

    Why not build the parent 'news' website to detect a mobile interface and present a formatted view of existing content, instead of reformatting the content for two platforms.
    Write once...use twice (or more).
    If you must build yet-another-newsreader, I'd consider RSS.
    http://theappleblog.com/2008/08/04/tutorial-build-a-simple-rss-reader-for-iphone /
    http://dblog.com.au/general/iphone-sdk-tutorial-building-an-advanced-rss-reader- using-touchxml-part-1/
    http://www.mobileorchard.com/how-to-build-a-simple-rss-reader-iphone-app/

Maybe you are looking for

  • Adobe Premiere Pro CS4 crashes on load with project

    When I try to load my CS4 projects the application crashes with the error: "Sorry, a serious error has occurred that requires Adobe Premiere Pro to shut down. We will attempt to save your current project." I have my hard drive partitioned: C drive fo

  • Import/Place .odt files in Indesign CS6

    Hi, Can we place/import .odt files in Indesign CS6? If yes, how? Or do we need to convert them into other specific word formats so that the content & styles remain the same. Thanks.

  • Medias for Adobe CS3 Design Standard/Premium (Windows) Volume License

    Hello, We have volume licenses for CS3 Design Standard /Design Premium but no media kit for Windows, unfortunately. All attempts at finding this or buying it have failed. I've spoken direct to Adobe and the official solution is to upgrade to CS6 or A

  • PDF exported from Numbers on Ipad cannot be seen on PC's

    Hello, I have an Ipad and just bought Numbers. When I send files by mail, as pdf, the file can be read only on Mac computers. When opened on a PC, looks like every font is replaced with a bullet. What can I do to correct this? Thanks

  • Upgrade CUCM 6.1.2.1121-1 to CUCM 6.1.3.1000

    I  want to migrate to version 7.1.3 to CUCM, I'm in 6.1.2.1121-1 version, release  special, but I noticed that to go to 7.1.3 must first be version 6.1.3, was  wondering if being in a particular release can have any problem in  upgrading to 6.1.3. Th