Coding Style and format

Hello everyone,
For past few days, I am thinking that in java, format of writing a method is as follows:-
return_value method_name(){ //bracket starts here
//body
}Even any book on java specified this kind of formatting.
whereas, in c, c++ we use to write :-
return_value function_name()
{ //starting bracket in next line
//body
}But if you consider readability, then surely the second format is good, where the starting bracket starts at a new line. Isn't it so?
Even I asked this question to some IT people, who visited our campus few days back.. they said that java uses the old K&R style of writing methods, whereas VC++ i.e Microsoft uses the new technique i.e writing { on next line.
Why is there such difference. and moreover if you consider readability then in my opinion, obviously the second style is better as it distinguishes the starting and closing brackets. so scope can be easily understood.
Please put your views.
Thanking you.

Here's some of my real production code. I put everything on a new line....I used to do it the other way, but I like it much better like this.
    public void createJob(Job job)
        String jobName = job.getJobName();
        Job dbJob = null;
        try
            List jobs = super.executeNamedQuery( "getJobFromName", new String[]
            { jobName } );
            if ( !jobs.isEmpty() )
                dbJob = (Job) jobs.get( 0 );
                job.setJobId( dbJob.getJobId() );
                job.setJobDescription( dbJob.getJobDescription() );
            if ( dbJob == null )
                create( job );
        catch ( MaxNumOfResultsExceededException exp )
            throw new DaoException( "Max row number exceed.", exp );
    }

Similar Messages

  • Styles Dropdown in Formatting Toolbar vs Styles and Formatting Pod

    I'm new to RH8 and I notice that the Styles dropdown list in the Formatting Toolbar displays only Paragraph and Character Styles while the Styles and Formatting Pod displays Paragraph, Character, List, and Table Styles.
    How do I add List (LI) styles to the Styles dropdown list in the Formatting Toolbar?
    Is this a bug?

    Welcome to the forum.
    You don't add them and it is not a bug.
    The toolbar is the old way of selecting a paragraph style, the pod is the new way and contains the new style types that have been added.
    The toolbar has been left in as an easy way of selecting paragraph styles quickly.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • [svn:osmf:] 15581: Better coding style and some comments for the previous code submission.

    Revision: 15581
    Revision: 15581
    Author:   [email protected]
    Date:     2010-04-19 17:14:00 -0700 (Mon, 19 Apr 2010)
    Log Message:
    Better coding style and some comments for the previous code submission.
    Modified Paths:
        osmf/trunk/apps/samples/framework/OSMFPlayer/src/OSMFPlayer.as

    Revision: 15581
    Revision: 15581
    Author:   [email protected]
    Date:     2010-04-19 17:14:00 -0700 (Mon, 19 Apr 2010)
    Log Message:
    Better coding style and some comments for the previous code submission.
    Modified Paths:
        osmf/trunk/apps/samples/framework/OSMFPlayer/src/OSMFPlayer.as

  • Textarea which take style and formatting?

    hi,
    I am working on java and jsp.
    I am making One Report in which I have to show some predefine instructions given by the client.Currently I am showing this instructions in normal textarea hence the formatting and style of text is not there.
    So I want to know is any other control through which I can show text with formatting and style like in vb we have richtextbox..... and if so then how?
    thanks in advance..........
    regards,
    hitWin

    No. This has nothing to do with JSP and everything to do with HTML. HTML does not provide for a "control" for that. Only the plain textarea or text input field. JSP doesn't change what the browser is capable of. However, if IE supports some VB control or something in the browser, you could probably use that (it still has nothing to do with JSP). But that would likely only work on IE.
    The only other solution is to make the form an applet, then you would have the full Java GUI capabilities, but this isn't very simple.

  • Java style and coding conventions

    Hello All,
    Most of my programming experience is in Java, and as such, I try to conform to the style and coding conventions that are used in all of the Sun tutorials, and to my understanding, the specification. I'm enrolled in my final semester of a bachelor's of computer science and engineering, and one of my courses is "Software Engineering". Our course assignment is to make a website, written in PHP. I don't really care for PHP, so I volunteered for the Code Quality Assurance team, thinking, I'm fairly consistent when it comes to adhering to the Java conventions, it should be reasonable to determine similar conventions for this project, and give my classmates pointers on how to improve the readability and layout of their source listings.
    The problem is, my professor, absolutely, whole-heartedly hates Java. He despises everything about it. For example, I sent him a source listing that I felt was well written, readable, and adequately documented. Some of the things that I was "doing wrong" were:
    1. Naming Conventions
    All of the Classes were first-letter capitalized, subsequent first-letter of each word capitalized. FormLayoutManager was one particular example. All instance or primitive identifiers were first-letter lowercase, subsequent first-letter capitalized, so an instance of FormLayoutManager could be formLayoutManager, or menuLayoutManager, etc. All constants were all capitals, with underscores separating each word. MAXIMUM_POWER. All methods were first-letter lowercase, subsequent first-letter capitalized, showLoginComponents().
    My Professor insists that the convention I (and most of the Java community as far as I can see) is terribly unreadable, and that all instances variables and method names be first-letter capitalized. I tried explaining that this sacrifices the ability to easily distinguish between a class type or interface, and an instance, and was ignored.
    2. Declaration and Initialization
    Also, supposedly declaring a local identifier and initializing it in the same line is some sort of abomination of everything sacred in programming. So I found myself constantly doing things like
    public String info() {
      StringBuilder info;
      info = new StringBuilder(512);
      // append a bunch of information to info
      return info.toString();
    }3. 80 Character line widths
    He wants me to break any statement that is over 80 characters in width into multiple lines. I know a long statement wrapping around in your editor is a irritating, but 80 characters, seriously, who doesn't have an editor that can't handle more than 80 characters on a line?
    4. this and argument names
    In most of my constructors that accept arguments, I would usually do something like
    public Student(String name, int age) {
       this.name = name;
       this.age = age;
    }Which he thinks is horribly confusing, and should be
    public Student(String n, int a) {
      name = n;
      age = a;
    }5. singular collections / arrays identifiers
    I had something like:
    String[] keywords= new String[] { "new", "delete", "save", "quit" };
    for (int i = 0; i < keywords.length; i++) {
       System.out.println(keywords);
    And he insisted that "keywords" be renamed "keyword", as in, the i-th keyword, which I think is kind of stupid because the array is an array of keywords, and having a singular identifier makes that less obvious.
    It's driving me crazy. It's driving everyone else in the class crazy because they're all mostly used to Java style conventions as well. I've tried pleading my case and I can't even get him to acknowledge the benefits of the "alternative" styles that I've used in my programs up to this point.
    Have any of you had to deal with either professors or bosses who have this type of attitude, whether it be towards Java or any other language? This guy has been involved with computer science for a while. I think he's used to Pascal (which I know nearly nothing about).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    You will find people who will disagree about this stuff all the time. I had a similar course and we read "Code Complete" which offers some style suggestions. Fortunately, my professor was intelligent enough to allow a discussion of these styles and I had a chance to argue against the "bracket every if statement" idea and other little things I didn't agree with. It was insightful conversation, rather than a "I'm the professor, you're a student, so listen to me".
    Here's the important part: It doesn't matter what the standard is, only that there is one.
    Unless I misunderstand, he allowed you to take on the responsibility of QA, so it is ultimately your decision. If the project suffers because of poor quality of code, it will be on your head. If, on the other hand, you give in to him and use a style that makes no sense and the project suffers because of poor code, it will still be on your head.
    So he really has no position in this because he is not a stakeholder in this decision. Tell him that this is your responsibility and you need to make the choices that are right for your group, not right for him. If he's teaching you anything that can reasonably be called software engineering, he should understand that. Otherwise he's just teaching out of a book called "Software Engineering" and doesn't know anything (or so it seems from this small window you've given us).
    caveat: If he's reviewing the code and he's particularly snarky about his "styles", you might want to consider giving in to his demands for the sake of your grade. Sad reality.

  • Help improve my style and quality of LabVIEW coding

    Hello,
    I am thinking of doing the CLD certification for LabVIEW and have started preparing by reading some literature (code style guidelines, etc.) and also trying to implement the newfound knowledge into my coding habits. I have also read that local variables are bad, and that the best practice is to avoid them.
    However, I am having difficulty implementing all of the material I read about LabVIEW coding into my VIs - which are almost always coded in the same manner as the one I attached. Basically all of the LabVIEW applications I make at my company require reading DAQ inputs, processing the acquired data and doing some control algorithms, which send control signals to DAQ outputs, and writing all of the data to a file.
    I have attached a sample VI (with dummy DAQ subVIs). If you have the time - any ideas, comments, consideration or improvements on all areas of the VI are greatly appreciated and welcomed. I think this will be the best way for me to learn new LV tips and tricks.
    Thank you!
    Attachments:
    LabVIEW coding test.zip ‏375 KB

    Jeff Bohrer wrote:
    OK I've seen worse. (actually not too bad but...)
    Use wire labels especially when you have wires that don't fit on 1 screen
    You show a lack of understanding how timed loops differ from while loops  (event structure in TLoop with DT=0, Elapsed Timer in Timed Loop.   Someday you'll say WTH was I thinking spawing unique execution systems for those
    You could have saved a lot of locals and data duplication by enqueueing data from the DAQ loop to the Write File Loop instead of using a notifier
    Sometimes an Array of Clusters can be a good idea  clusters of clusters of same data type can often be harder to maintain- want to add a new element- maybe test a single point? just init the array of clusters (like from a file perhaps?)  Saves a lot of confusion
    Saving timestamps to file as strings is a pet peeve of mine.  Now how do you graph vs time?  Check out My Idea 
    There is no reason to avoid creating sub-vis and making the Main BD fit on one screen.  I fact it can help to show the code high level structure.
    Straighten them wires!
    Most of your issues would be solved by re-thinking your data structures- A good place to concentrate on to improve.
    Keep Slinging- you'll get there
    Ok, will do.
    Can you explain what the difference is? Or point me to some good literature on this topic? 
    How exactly can you do that? I tried sending data via notifier, but I could not send different data types.
    I do not quite understand what you mean.
    Also, I do not understand what the problem here is. The graph shows data vs time.
    Will try.
    Mark Yedinak wrote:
    OK, I did take a look at the code now. HEre are some additional points to consider.
    Document, document, document. None of your controls or indicators are documented. Also, document your code more to help someone looking at it to actually understand it better.
    Definitely avoid the use of all of the local variables. Thing of a design pattern that separates the processing tasks from the UI. If you have one task handling the UI you really don't need to use local variables.
    Avoid unnecessary bends in your wires.
    Definitely get your block diagram to fit on a smaller screen. These days it shouldn't be larger than 1600x1200 or close to that.
    Modularize your code. Use more subVIs
    You have a classic off by one error in your code. All of your loops use the stop button to exit. However you always check the value at the beginning of the loop iteration therefore you will execute the loop one more time than necessary.
    Avoid unnecessary frame structures. You have a frame structure in the second loop that does nothing for you. Everything down stream of it will execute in the correct order because of the data dependencies. The frame structure serves no purpose here.
    Try to avoid deeply nested case structures. Once I start to see that happening in my code I rethink my logic. At a minimum I would build an array of the various Boolean values and convert them into a number and use that to chose the appropriate case to execute rather than nesting three or more case structures.
    Will do.
    How can I accomplish all the tasks in my application without the use of local variables? I admit, this is the main reason I opened this thread ... because I have tried to imagine a design architecture that would work without local variable, but was unsuccessful. Can someone please explain in detail how to do this on this specific application.
    Will try to.
    I will try, but I make my block diagram to the width of my screen, but vertically I do not limit its size - so I can easily scroll up and down to move around.
    I try to create as many subVI as possible, but only on code that is reusable on other projects. Is also better to have a lot of single use subVIs with every project? Doesn't this add unnecessary overhead and slows the application?
    What would be the correct way to stop the application?
    Ok.
    Ok. I only do your proposed solution on nested case with a depth of at least 4. 3 nested structures were still acceptable for me, but I will listed to your proposal and try to improve on this.
    Thank you all for taking the time to look at the code and writing your comments.
    I already have the CLAD certification, but this was only a test. I think I will be able to try the CLD exam sometime next year, but I have to learn and implement different coding style in my everyday application (at work). With your help I am sure I will be able to accomplish this - reading literature is one thing, but actual projects are another.

  • I have a mac mini, and I need to be able to submit online documents that are format APA style and as a word document. Can I do this in pages?

    I have a mac mini, late 2012. I need to be able to submit online documents in APA style and as a MSWord document. Can I do this using pages or another app??

    In addition to what lllaass wrote, I would add that you keep it simple, that is, keep to APA 6 formatting requirements, but watch use of bullets, as well as insertion of figures or charts.  It also might help if you had access to MS Office for Windows to open up your file before uploading to confirm that what you wrote in Pages is what the 'reader' on the other sees.

  • Duplicating Object Style with Formatted Paragraph and Formatted Rectangle.

    Hey,
    I am trying to duplicate an object style but I am not sure if I set it up correctly.
    I have a rectangle object with strokes and applied fx effects to corners, gradient feather, transparency.
    I also have a text frame where there is a header paragraph format and a drop cap paragraph format for the main text.
    Rather than going through this process again, I thought creating a object style would save time but how do I group these two frames (rectangle shape and text frame) and apply an object style? I am only allowed to apply an object style individually to either the text frame or the rectangle object. It also doesn't help when I try to create a rectangle frame around the previous two items.

    Okay so I try to revise my process and used only one object style. I'm almost there but I'm still running into issues.
    1. I created a text frame and applied two paragraph styles to the text (header and drop cap). 
    2. Next, while selecting the text frame i applied a fill with transparency and corner option effects.
    3. Then with the text frame selected I created an object style and made sure the paragraph style is turned on, with the paragraph style set to "header" and checked the apply next style (so that the drop cap style will be applied as well).
    However, when I finish all these steps and try to apply it to a new text frame without any formatting, it sets all the text to "header" style without applying the dropcap style. I don't get why I can't apply multiple paragraph styles into the object style. I have to manually select the paragraph and apply the drop cap style which changes my default object style to become Object Style 1+ due to override (which is fine but even when I right click and choose redefine style, it does not nothing)

  • How to create a report in Form line Style and can display Image field?

    Hi,
    In Report builder 10g, I would like to create a Report with Form Line Style and this report included a Image field.
    I can choose this Style only when Select Report type is Paper Layout. Because, If I choose Create both Web & Paper Layout or Create Web Layout only then in the next Style tab 03 option Form, Form letter and Mailing Label be Disabled.
    But in Paper Layout, my report can not display Image field.
    I tried with Web layout and all the other Styles (Except 03 mentioned be Disabled) then all Styles are displayed Imager field OK.
    How to create a report in Form line Style and can display Image field?
    I was change File Format property of my Image field from text to Image already in Property Inspector. But report only showed MM for my Image field.
    Thanks & regards,
    BACH
    Message was edited by:
    bachnp

    Here you go..Just follow these steps blindly and you are done.
    1) Create a year prompt with presentation variable as pv_year
    2) Create a report say Mid report with year column selected 3 times
    - Put a filter of pv_year presentation variable on first year column with a default value say @{pv_year}{2008}
    - Rename the second time column say YEAR+1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)+1
    - Rename the second time column say YEAR-1 and change the fx to CAST(TIME_DIM."YEAR" AS INT)-1
    Now when you will run Mid Report, this will give you a records with value as 2008 2009 2007
    3) Create your main report with criteria as Year and Measure col
    - Change the fx for year column as CAST(TIME_DIM."YEAR" AS INT)
    - Now put a filter on year column with Filter based on results of another request and select these:
    Relationship = greater than or equal to any
    Saved Request = Browse Mid Report
    Use values in Column = YEAR-1
    - Again,put a filter on year column with Filter based on results of another request and select these:
    Relationship = less than or equal to any
    Saved Request = Browse Mid Report (incase it doesn't allow you to select then select any other request first and then select Mid Report)
    Use values in Column = YEAR+1
    This will select Year > = 2007 AND Year < = 2009. Hence the results will be for year 2007,2008,2009
    This will 100% work...
    http://i56.tinypic.com/wqosgw.jpg
    Cheers

  • Help needed with referencing single Excel cells and formatting resulting text

    In InDesign CS5 I am putting together a 20pp catalogue of about 200 products. The plan is to have the product information, SKU code, quantity etc fixed, but have the prices (there are two i.e. pack price and individual price) being linked to an Excel spreadsheet. This is so that the prices can be updated in the Excel file and the InDesign file will pull the new prices through. In case you are wondering why I don't pull the whole set of information through, this is because there are a lot of copywriting changes done to the information once it's in InDesign - it's only going to be the prices that will be updated.
    I am planning on having two single cell tables in their own text frame, duly formatted with cell style, table style and paragraph style for the two price variables. This I am then going to have to repeat 200 times making sure I link to the next row down in Excel. This is going to be a hideous task but I see know way of modifying the cell in InDesign to point it to the next row in Excel. That's my first problem.
    My second problem is this. In the Excel sheet, the prices are formatted as UK currency and are therefore like this...
    £2.00
    £0.40
    £1.43
    £9.99
    £0.99
    £0.09
    What I will require is once I import that data (and refresh the data via a newly saved Excel file) is that the prices end up like this...
    £2.00
    40p
    £1.43
    £9.99
    99p
    9p
    So if the value is lower than £1.00 it needs a trailing 'p' added  and the leading zero and '£' sign stripped off. If the value is lower than £0.10 it also needs the zero after the decimal point stripping off.
    Then formatting wise, the '£' sign needs to be superscripted and the same for the 'p'. This I am assuming could be done via GREP?
    In summary, can anyone help with the first task of referecing the Excel cells on a cell by cell basis, given that it is the same cell column each time, but the next row down, and also point me in the right direction of the price formattting issues.
    Any help will be gratefully received.

    I would do this:
    Create on line with the formatting.
    Export as InDesign tagged text (TXT)
    Read out these tags
    In Excel exists a function to connect text from several cells and predfined text, there connect the content from cells with the paragraph styling tags. Do it in a seperate sheet. (Better would be to use a database like Access, there you can link your Excel sheet).
    Export this sheet as txt file
    Place this sheet as tagged text (there is an option in one of the sialog boxes).
    In preferences  < file handling you can specify that Tablecalculation Sheets and text is not embedded but linked, turn it on.

  • How can I get the link not to override my style sheet formatting?

    I have an html page with text that has a style sheet applied
    to it. When I insert a link into parts of the formatted text, the
    style sheet formatting is lost in the linked text (the text for
    mylars, shapes and number shapes becomes smaller: see code below).
    How can I get the link not to override my style sheet
    formatting?
    Here is the html code I am referring to:
    <span class="bodyheader20pt">Fall into winter's biggest
    celebration with our New Year's Day <a href="
    http://www.usballoon.net/web/default.asp?pagename=mg_cls&mg=A9&mg2=&cl=A4&sc=184&PageNumbe r=1"
    style="text-decoration:none">mylars</a>, <a href="
    http://www.usballoon.net/web/default.asp?pagename=mg_cls&mg=A9&mg2=&cl=L2&sc=184&PageNumbe r=1"
    style="text-decoration:none">shapes</a>, and 2-0-0-9 <a
    href="
    http://www.usballoon.net/web/default.asp?pagename=mg_cls&mg=A9&mg2=&cl=L2&sc=166&PageNumbe r=1"
    style="text-decoration:none">number
    shapes</a>.</span>
    I am using Dreaweaver CS3 on a Mac running OSX
    10.4.11.

    Show us this rule --> bodyheader20pt?
    Also, having this in your three anchor tags -
    style="text-decoration:none" -
    will prevent your anchors from displaying any stylesheet
    style for
    text-decoration.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "ellfwar" <[email protected]> wrote in
    message
    news:geqiph$foq$[email protected]..
    >I have an html page with text that has a style sheet
    applied to it. When I
    > insert a link into parts of the formatted text, the
    style sheet formatting
    > is
    > lost in the linked text (the text for mylars, shapes and
    number shapes
    > becomes
    > smaller: see code below).
    >
    > How can I get the link not to override my style sheet
    formatting?
    >
    > Here is the html code I am referring to:
    > <span class="bodyheader20pt">Fall into winter's
    biggest celebration with
    > our
    > New Year's Day <a
    > href="
    http://www.usballoon.net/web/default.asp?pagename=mg_cls&mg=A9&mg2=&cl=A4&
    > sc=184&PageNumber=1"
    style="text-decoration:none">mylars</a>, <a
    > href="
    http://www.usballoon.net/web/default.asp?pagename=mg_cls&mg=A9&mg2=&cl=L2&
    > sc=184&PageNumber=1"
    style="text-decoration:none">shapes</a>, and 2-0-0-9
    > <a
    > href="
    http://www.usballoon.net/web/default.asp?pagename=mg_cls&mg=A9&mg2=&cl=L2&
    > sc=166&PageNumber=1"
    style="text-decoration:none">number
    > shapes</a>.</span>
    >
    > I am using Dreaweaver CS3 on a Mac running OSX 10.4.11.
    >

  • How do you have the bottom stroke of a table show up using Table Styles and Cell Styles only?

    I am using InDesign CS6, and I want to create a Table Style that has the bottom stroke show up, but does not have a table border, such as:
    However, whenever I try to change the Table or Cell strokes so that the last stroke shows up, I get the entire table border, or some strange combination of borders:
    Does anyone have any insight on how I can get the bottom stroke to show up while preserving my other stroke properties? Since I work with long documents, it's necessary to be able to control all of my tables through Table Styles and Cell Styles, and not by manually changing each and every table with the Stroke palette.
    For reference, here are the my current Table Style properties and the resulting table:

    Michael Murphy is the InDesign style-meister. He wrote "Adobe InDesign Styles" for Adobe Press, and did a great Lynda.com title on InDesign styling. Here's what he says in the book:
    "As mentioned at the beginning of this chapter, with all the power of table and cell styles, it is important to understand not only how they work and what they can do for you, but also to understand their limitations.
    "Two formatting features missing in table and cell styles have already been discussed: You will always have to set the column width and row height of cells when applying a table style for the first time, and you will always have to convert body rows to header and/or footer rows every time you apply a table style for first time or update the table's data....
    "But there's another kind of limitation that's important to keep in mind as you are designing tables: It is very easy to design a table that cannot be completely defined by a table style. In many cases, you'll need to define an extra cell style or two that lets you complete for formatting. [my emphasis]."
    So I think that's what you have to do: Apply another cell style on top of the cells at the bottom of the table after applying the table style.

  • Word template with web service - style and font not considered

    Hi experts.
    I'm using a word template with a web services.
    So i've added my xml tags in the template and i've tried to change the font and style but when i launch the document, what i have defined is never considered. For example if i set in a table that a line should be in Italic, when i edit the document no text is in italic ?
    Did you ever faced this kind of issue ?
    How did you manage to set you style to the xml tags ?
    Thanks in advance for your help.

    I also had similar problems but I didn't work on word template for quite a long time. But at that time I solved the problem with formating the word and not the xml tag directly.
    For example: I wrote the word lastname and formated it to for exampe, bold and italic like lastname. After thet I selected the word and applied the xml tag to that word and this worked just fine.
    Regards.

  • Style and encoding in XI SOAP Adapter

    Hello all,
    when describing a SOAP web service with WSDL using SOAP binding, there are two parameters affecting how SOAP messages are formatted:
    a.) style (may be 'document' or 'rpc')
    b.) encoding (may be 'literal' or 'encoded')
    Is there any information about what styles and encodings are supported by the XI SOAP Adapter? I looked in the help and in the FAQ OSS note, but didn't find it...
    I made some tests and could only get the combination document/literal to work. Is this the only supproted combination?
    Any help is appreciated.
    Regards,
    Matthias

    Hi
    There are other combinations also.
    A WSDL SOAP binding can be either a Remote Procedure Call (RPC) style binding or a document style binding. A SOAP binding can also have an encoded use or a literal use. This gives you four style/use models:
    1.RPC/encoded
    2.RPC/literal
    3.Document/encoded
    4.Document/literal
    Add to this collection a pattern which is commonly called the document/literal wrapped pattern and you have five binding styles to choose from when creating a WSDL file.
    Please go through the link:
    http://www-128.ibm.com/developerworks/webservices/library/ws-whichwsdl/
    This contains all the scenarios mentioned above.
    Hope this helps you out.
    regards
    Victoria

  • 'Clear Paragraph Style' and 'Clear Selection Style'

    In an old archived topic, someone wrote:
    quote:
    In DWMX, you could select text in the design view and in the
    "HTML Styles" window (which no longer exists in MX 2004) all you
    had to do was click "Clear Selection Style" and all HTML formatting
    (paragraph tags, font faces, colours, bold, italics etc) would be
    removed. This was marvellous for reformatting <font> tag
    based text with CSS. MX 2004 claims to be a CSS machine, but it
    seems to lack this very important feature which helps to re-inforce
    the use of CSS over font tags.
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=189&threadid=714513&arc tab=arc
    I absolutely agree, and none of the alternative methods
    people suggested in that thread matched this lost feature for speed
    and ease of use.
    I've not seen a replacement for these commands in Dreamweaver
    8 either (although I've often wished for one). Does anyone know of
    a hidden feature that exists in version 8 for removing all the HTML
    formatting in one fell swoop?

    I count 4 steps.
    1. Copy the entire line
    2. Paste into notepad
    3. Copy the entire line
    4. Paste into DW
    That does it nicely no matter how much presentational markup
    there is.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Kals" <[email protected]> wrote in message
    news:[email protected]...
    >
    quote:
    I think what the O/P is wanting is a quick and easy method to
    remove
    > all of
    > those presentational tags.
    >
    > Thanks Gary ? spot on! I'll use the term 'presentational
    markup' rather
    > than
    > 'HTML styles' from now on. (Excuse my ignorance, but
    what's an 'OP'?
    > Should I
    > like being called such a thing? :)
    >
    >
    quote:
    Murray: ? but you just cannot create predefined "HTML STYLES"
    any
    > longer.
    > It's no great loss....
    >
    > Agreed! Okay, we've established that no one's lamenting
    the loss of 'HTML
    > styles' in the sense of a style sheet that stores HTML
    presentational
    > markup.
    >
    >
    quote:
    And if "HTML STYLES" were not used in the first place, then
    even having
    > that feature available now wouldn't help OP, if your
    interpretation is
    > correct.
    >
    > Perhaps you are misinterpreting what those commands did.
    'Clear Paragraph
    > Style' was the equivalent of applying a predefined 'HTML
    style' with no
    > presentational markup ? making it as far as I know, the
    quickest, easiest
    > way
    > to strip all presentational markup out of your HTML
    (irrespective of
    > whether
    > the markup originated through the use of 'HTML styles').
    This could have
    > very
    > easily been replaced by a stand-alone command.
    >
    >
    quote:
    There are certainly quick and easy ways to remove many of
    them.
    > Okay then, here's the test. How many steps does it take
    you to clean up
    > the
    > following paragraph?
    >
    > <p align="center"><font size="+1" face="Times
    New Roman, Times, serif">The
    > quick
    brown fox
    jumps over the
    <font
    > color="#FF0000">lazy</font>
    dog</font></p>
    >
    > I count 10 steps if you select the entire paragraph and
    use nothing but
    > the
    > Properties panel and/or Text menu. Perhaps you can beat
    my attempt. If I
    > use
    > the 'Clean Up HTML' command, it takes me about 20
    seconds to check for and
    > type
    > in all the individual tags I want removed, then I still
    have to manually
    > fix
    > the alignment. Do you know of a quicker, easier way?
    >

Maybe you are looking for

  • Return products in a diffrent country?

    Is it possible to buy something from an apple retail store in the US and then return it in a retail store in Canada or another country? If not is there another way to return it besides going back to te US (ex by mail). Thanks im advance for answers.

  • Customizing The Tool Bar and Setting Preferences Problems

    Need Help With Safari While trying to customize the toolbar and setting preferences like setting auto fill, adding Develop or any other preference everything looks fine, I shut down Safari and re-open and everything I changed has been lost.  I've tri

  • Question about returning Apple products

    I'm looking to buy a Macbook Pro from Amazon.com. Can I exchange it at an Apple retail store if there's something wrong with it? Thanks

  • Adding editable charts in adobe 9 pro

    How do you insert an editable chart in Adobe Acrobat 9 Professional? I create bank forms and we are still behind the times. . .Just wondering if anybody has solutions out there. I'm going to attempt to insert an editable chart that has to do with Cre

  • How to make snow stay after falling to the ground

    Hi, I'd like to make an animation on which one can simply see snow falling down. I know this is easy to do with the CC Snow Effect. But what I didn't find an answer to is: I want to make the snow stay on the ground so that in the end the ground is co