Wsimport/xjc JDK 1.6: using schema-elements with underscores

Hi,
the jaxb-schema-compiler/the embedded schema-compiler used by wsimport eliminates underscores by default. You can set a binding file to influence this behavior in a special way since JAXB 2.1:
<?xml version='1.0' encoding='UTF-8'?>
<jaxb:bindings
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
version="2.1">
<jaxb:globalBindings underscoreBinding="asCharInWord"/>
</jaxb:bindings>
But the result using this additional binding is not correct for all cases:
All letters up to the first underscore of the generated java identifier name for the jaxb element are converted to lowercase. All underscores in the element name are deleted and every first letter after these underscores is converted to uppercase. This is a suitable conversion for identifiers only if you use no uppercase letters.
But if you use uppercase letters for the element you can get ambigous identifiers.
examples:
element-name:
THIS_WHITEHOUSE
causes
JAXBElement-identifier:
thisWHITEHOUSE
element name:
THIS_WHITE_HOUSE
causes
java identifier:
thisWHITEHOUSE
Possible solution:
An additional jaxb binding parameter to get a correct behaviour for capital letters:
This behaviour
a.) All letters up to the first underscore are unchanged.
b.) If the first letter after an underscore is a lowercase letter the xjc replaces this letter with an upper case letter and vice versa (=if this letter is an uppercase letter xjc replaces this letter with a lowercase letter).
example:
THIS_WHITEHOUSE -> THISwHITEHOUSE
THIS_WHITE_HOUSE -> THISwHITEhOUSE
this_whitehouse -> thisWhitehouse
this_white_house -> thisWhiteHouse
So all identifiers would be unambigously.
G. Ranft
Muenster, Germany

Hi,
well, for the most jaxb users it seems to be an uncommon problem. But we provide in our application more than 2000 web services with nearly 100.000 different elements. The identifiers of the elements are logical expressions used for financial applications. they are part of legacy applications so their names cannot be changed. And some identifiers differ only by the position of the underscore.
A general question for me is why jaxb doesnt accept the undesorces. An when jaxb does not accept underscores why are the rules for calculating an identifier without underscores are ambigous.
Best regards,
Guido Ranft

Similar Messages

  • I am learning to use Photoshop Elements with my recently downloaded Elements 13.  I am disappointed that there is no longer a golden section grid option.  Does anyone know if there is a way I can get this?  Is there an upgrade to a more advanced photoshop

    I am learning to use Photoshop Elements with my recently downloaded Elements 13.  I am disappointed that there is no longer a golden section grid option.  Does anyone know if there is a way I can get this?  Is there an upgrade to a more advanced photoshop or a plug in that has it as an option?

    You might have a look at the affordable Elements+ add-on.
    It has a script to enable guides with the golden ratio.
    Guides

  • Using photoshop elements with aperture

    I recently purchased and installed Aperture 1.5. I have yet to import my photos. I plan on keeping my photos on an external drive. The drive is shared with a windows laptop. I have about 5k of photos. Most of the time, the edits I make will only be colour correction and cropping, so Aperture will be the software of choice. For some photos I need to manipulate backgrounds, or cut out shapes, etc and drop them into other photos. I don't believe Aperture will do this.
    So I'm wondering how to handle the photos I need to use Photoshop Elements 4.0 (Windows). Can I make the background changes, cut outs, etc. in Photoshop, save the changed image on the external harddrive and then import the reference to this image into Aperture?
    mac mini    

    It seem to me that you have two separate issues to deal with.
    First, using PSE4 as editor. The whole power of Aperture is in its digital asset manager. In other words, if you edit files in PSE4, then it will need to be imported into Aperture (referenced or otherwise). While it can be stacked, it will be a separate file, whereas if a version is created within Ap, then it is not a separate master file. Nothing wrong with it as long as you know that, and are willing to live with multiple masters of the same image.
    Second, sharing an external drive-based image with XP laptop. Clearly you will need to make your Ap library a referenced master library. This also means that you will have to back up the file separately from using Vault (Vault will backup your referenced previews and versions but not your master files). Do you have this connected and working now? If not, pay attention to the external disk format for compatibility issue. I have MBP and Dell desktop that shares an external drive.
    All that said, did you consider creating a logical directory/folder structure on your external HDD and use the Organizer that comes with PSE/XP? It is a quite nice program and will allow for PSE editing in an integrated manner. Not sure what you are gaining by using Ap, other than stacking feature.

  • How can I use photoshop elements with photos

    Title says it all.  I would like to use Photoshop Elements to edit my photos--how do I open them in PSE? 

    Yes your edits will be there if you import the edited version. Yes it will go to the Cloud with the edits. What you read is that edits made in iPhoto and Aperture after the library has been migrated will not be available in Photos. But you could still export from iPhoto/Aperture to the Finder and then import to Photos, like with PSE.

  • Using Photoshop Elements with my iMac

    I am not sure anyone here can help me or if I'm in the right category, but I couldn't find a category that seemed to fit my question. If you can redirect me I'd appreciate it.
    I have recently installed Adobe Photoshop Elements 4.0.1 onto my iMac. I want to be able to go further with my photo editing than iphoto can take me. It took me some time, but I finally figured out how to get my iphoto pics to open with photoshop. Now my problem is that I can not seem to get any of the editing to apply to a picture. I have been trying to apply the anti-alias to pictures to eliminate the harsh picture edges. I'm wanting to print these pics on quilt squares and don't want a box within a box. Using standard editing I have been able to select the area around the center picture for anti-aliasing. That shows up as a marque. But I can not then get anti-aliasing to apply so I can see how that affects my pics. If anyone here has any experience with photoshop elements I would really appreciate some tips.
    Again, if anyone knows a better forum for my question, I would appreciate being redirected to that forum.
    Thanks Im Advance For Any Help.
    Kaye

    Thanks to everyone for your input. I have gone to the photoshop forums as well. I thought I might have better luck using the Mac forum because, I wasn't sure I would find anyone on the photoshop forum using a mac. I did get some pointers there but they have not worked either.
    I know that I can only use certain tools to anti alias and have done that. I can check the box for anti alias, but nothing happens.
    I think I may have to just use what I have and stop trying to edit them. The time constraints I am under are too narrow.
    Thanks Again For All Help,
    Kaye Kalman

  • Problem using text element with type TEXT INCLUDE in smartforms

    Hi,
    I am working on smartform.
    My requirement is to print the text which can range from 1 to 99 (free text). I am using TDNAME, TDOBJECT and TDID from STXH table and putting it in the fields Text Name, Text Object and Text ID of text element created with type "TEXT INCLUDE" in window in smartform.
    It works Fine only when I put exact value of TDNAME in Text Name field.
    But in my case TDNAME can vary according to value of AENNR from Table AENR.
    So I am trying to use a variable called W_TDNAME and pass TDNAME value to it. I am putting this W_TDNAME in the field TEXT NAME. And it says "Inlcude text W_TDNAME does not exist".
    HELP ME OUT.
    ANSWERS WILL BE AWARDED..
    Tushar

    Hi Tushar,
    When you see in Text name field, there is a small button at the end of that field. This is to switch the dynamic field value option on. Click that and use the format &field_name& to enter your variable in that field.
    Deepak Charanyan

  • Using premiere elements with mac photo library

    how does premiere elements access/utilize my existing library? does it create a new library within premiere elements? is premiere elements  a plug in editor that can be accessed from my library inspector?  do I have to leave the aperature library , post a photo in elements then use elements to work on the photo?

    Does this duplicate the files on my hard drive and use up disc space?  I am not doing too many movies mostly photos in iPhoto and the shared library in Aperature.  Why use iMovie?

  • Iphoto 6 and using Adobe Elements with RAW?

    When I open Elements and proceed to open a RAW file it will not open picture taken with Canon RAW. It asks for a file size? Any suggestions?

    matbran1:
    Welcome to the Apple Discussions. You may need Adobe - Photoshop Elements : For Macintosh : Camera Raw 3.6 Beta ... this plugin for PE3 to handle RAW.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.

  • How do you overcome problems using Photoshop Elements with Win 7 and Eyefinity display?

    I have a 3 screen Eyefinity setup on a PC running 64bit Win 7 with 16gb RAM and an AMD Radeon 7950 graphics card and Phenom II x4 processor.
    I struggle to get a stable PSE10 to work on this setup.
    I bought a combined set of Photoshop and Premier Elements 10 and although installed it always crashed when I saved images with the error message "Adobe Photoshop Elements 10 has stopped working". I recently did a fresh install of Windows 7 and decided I had to solve the Photoshop problem.
    I installed Premier 64 bit version from disk 2 and Photoshop Elements from disk 1 and then ran compatability checker. Under compatability settings for Win XP srv pack 3 it starts although with some toolbar errors and top and bottom of screen transparent instead of solid. I can save files worked on but then still get the error when I exit Photoshop Elements.
    Has anyone had similar and solved the problem? Tech Support said my s/w was too old and unsupported without a service contract.

    There should be no need for compatibility mode; pse10 is designed to run on W7. Try making a direct shortcut for the Editor. You can then launch the program directly from the desktop bypassing the welcome screen. This is generally better as the welcome screen leaves background processes running.
    Right click anywhere on the desktop and select New >> Shortcut
    Then click the browse button and navigate to:
    "C:\Program Files(x86)\Adobe\Photoshop Elements 10\PhotoshopElementsEditor.exe"
    Then click Next; then click Finish
    To launch, try right-clicking on the new desktop icon and choose “Run As Administrator” which often improves stability.

  • Using dynamic elements with FMS/FMSS/FMIS...can I do this?

    Hello all,
    Here's an elaboration on the general title of this post:
    On one page of my website, the user has a large selection of videos they can choose from.
    They select one, clicking the link
    This opens a new page (with the player built in?) and plays the video.
    NOW...
    Can I retrieve the data from a query string (the video filename selected from the previous page) and then place it in the action script using PHP (echo) so that I don't have to have separate applications for each video? or do I have to have separate SWF/applications for wach video?
    I'm still way new to this so I apologise if the question isn't clear enough. I'll gladly elaborate where I can.
    Many thanks!!!
    Sincerely,
    wordman

    SE,
    This looks great!!! Let me ask you this: Is there any problem saving my page with the player as .php as opposed to .html? I have a number of dynamic aspects to my web pages that I want to maintain.
    You really are an asset to this forum. thank you and all of the great contributors here so very much!
    Sincerely,
    wordman

  • ERROR: MyService.jws:715:There are two or more operations with the same schema-element 'ns0:MyNameSpace' on the input message in a web service file or callback interface.

    I have two web service operations that have the same complex type as their input
    parameter. I want to map this type to an existing schema. I can successfully
    do this with the first operation using XQuery but when I attempt to do this with
    the second operation I get the following error:
    ERROR: MyService.jws:715:There are two or more operations with the same schema-element
    'ns0:MyNamespace' on the input message in a web service file or callback interface.
    ERROR:      SUGGESTION: Use different schema-element values for each of those operations.
    How can I use different schema-element values? The input parameters are to be
    mapped to the same schema and same element since they are the same for both operations....

    I am having the same problem. How did you resolve this..?? could you please tell me the solution??
    Thanks
    Shari

  • Validating xml doc using schema

    I was wondering if you can the following validation of an xml document using schema:
    <parent>
        <child>Jogn</child>
        <child>Hanna</child>
        <child>Blake</child>
        <childCount>3</childCount>
    <parent>the childcountValue equals the number of child node. is this possible using
    schema or do do i have to use an application to do this?
    thanx in advance

    thanx dvohra, but i already know how to validate schema using a parser.
    I'm looking for a way in the schema that specified thhat the total number of child elemnt equals to the integer value of the childTotal element. I don't even know if this is possible. If possible, what (tag) would i use. i don't need answer..hint would be nice.
    my other solution is to write an application that use a SAX parser to parse the xml doc. Although this is relatively easy, i would like to keep the validation within on file (the schema)..rather than have it be in the schema and a ContentHandler.

  • How to structure an XML doc using schema?

    Hi there,
    I have an XML file with a grouped <employee> tags like,
    <employee>
    <employeename>John</employeename>
    <employeename>Dave</employeename>
    </employee>
    I want to structure above xml file to be like this
    <employee>
    <employeename>John</employeename>
    </employee>
    <employee>
    <employeename>Dave</employeename>
    </employee>
    Can I do that in a XML schema (.xsd file)? If I can, how do I do that?
    Thanks,
    Chandi

    Hi Dave,
    Thanks for your response.
    I create this XML from .xsd files using a tool (MapForce by Altova which allows me to do the mappings between relational database table columns and elements in the .xsd file, and it creates Java code for me), the data is read from a database to compose this XML file.
    Everything works fine with this XML file, I just want to change the structure of the XML file when it composes it, I was wondering if I could do that by changing the existing .xsd file?
    Its not easy to use XSLT, I�m dealing with over 600 hierarchical elements with over 15 .xsd files.
    So, what are my options?
    All I want to know is, what should I change in the .xsd in order to compose this XML in the structure that I want.
    It groups all the employee names (<employeename> tag) under one <employee> tag, instead I want to have individual <employee> tags for each and every <employeename> tags (<employee> tag around <employeename> tag for each and every employee)
    Is it possible at all?
    Thanks,
    Chandi

  • I Tunes use in Elements

    Am I able to import my iTunes library into  PS Elements 9 and Premiere Elements 9 for a slideshow?

    When you say it will not recover the data lost with the MP3 compression do you mean I would just lose the album artwork and info?
    No. Those are two different things.
    As background, when Audio is digitized, it is usually originally done in a format, like PCM WAV, which is uncompressed. The files are very large, and require a fairly powerful I/O sub-system to play them smoothly. This works fine with large, fast HDD's (Hard Disk Drives), but for personal music devices, like the iPod, are not that useful, though they offer the full range of the music. One could only get a few songs onto HDD in the iPod, or the flash memory in other similar devices. Also, the data-rate of those WAV files is higher than the hardware in a personal music device can effectively handle.
    For those reasons, formats, like AC3 and MP3 are being used. They are variations on MPEG compression, and are pretty good. However, as they are lossey compression schemes, some data is lost and the bit-rate is reduced a bit. The idea is that one cannot really detect that data loss. I can hear it, if I am familiar with the music, or play from my iPod dock to my home theater systems. However, with the earbuds, one would be hard pressed to tell. It is that compression that I was referring to. Nothing, other than going back to the source files will ever recover that.
    PrE will need to convert the MP3 material (our case here) to 32-bit floating point at 48KHz (44.1 KHz is the standard for CD Audio), for accurate editing. This takes place upon Import, and is what Conforming is all about. This ARTICLE will give a bit more background on Conforming and PEK file generation.
    As for the other data, besides the music, that is what can get in the way with programs, like PrE. There can be album art, and other data inside the files. That is why many songs will display artwork on the iPod. Often, this will cause a failure on Import, or can when editing, even if the file Imported fine.
    Because of the above, I always convert any MP3 music to PCM/WAV 48KHz 16-bit before Importing and editing. The exception is with tiny SFX files in MP3 format. Those do not have any extra data, are tiny, and seldom give me a problem. Also, the Conforming and PEK file generation is instantaneous. I never even see the progress bar.
    Others use MP3's with few issues - until they hit one that does not work. Then, converting that problem file, in a program, like the free Audacity, usually fixes the problems.
    Sorry that I was not more clear.
    Good luck,
    Hunt
    PS - as Steve (?) mentioned above, if I am using any MP3, iPod music, I just go with the old way - burn a Playlist to CD (converts to CDA at 44.1KHz 16-bit), and then rip that CD. It was only recently that someone on this forum mentioned that Apple had relaxed the Digital Rights Management levels.

  • Using # in element name

    Hi,
    How can i use special character like # in the element name.I have a element which has name like 'abc#'.I am getting the following error in xml spy if i try to use it.
    Value 'abc#' is not allowed for attribute 'name'.
    Hint: A valid value would be 'NCName'.
    Error location: schema / element / complexType / sequence / element / @name
    How can i handle this.
    Thanks

    Back to basics...
    http://www.w3.org/TR/REC-xml/#NT-NameStartChar
    gives allowed characters for an Attribute name.

Maybe you are looking for

  • SAP IDES ECC 6.0 configuration for ess/mss

    Hi, Iam new to sap . i want to practice various scenarios in ess/mss in my own pc which  is installed with ecc 6.0 . what are the configuration to be made in ecc 6.0 for maintaining about 10-20 users for  using ess/mss scenarios. i have a knowledge o

  • Can't burn error code 4280

    I haven't been able to burn cds ever since the new update from ITunes. I have tried troubleshooting using steps from the support on this website. However, that was primarily for a Sony drive. I happen to have an Acer 5100-3583 Model with a MATSHITA D

  • Services Dependencies tab is grayed out

    We just found that our 2 clients (windows 7 prof. SP1) have services's dependencies tab is grayed out for all services on services.msc So It might be a cause, we can't install "Solarwinds WMI provider 2.0.2207.2" by WSUS server and Get Error 800B0109

  • Method to pass the content of pdf through offline(without internet connection)

    Hi All, Is there any method available to pass the content of the pdf field from client machine having no internet connection? Barcode is the one way to pass the content of pdf field but my data is large and barcode capacity is not more than 1800 char

  • Expected/Actual values in test runner

    Hey, I've added public test functions to my classes like:      [Test]      public function basicTest():void          Assert.assertEquals("Test is 5 == 5", 5, 5); and a test suite takes this class as a variable. [Suite]     [RunWith("org.flexunit.runn