Jaxb and xs:any element binding  (REPOSTING)

My schema has an element whose content is not known at schema design time so, my XML may look like:
<client-submission>
<aaa>
<bbb/>
</aaa>
</client-submission>
Or it may look like:
<client-submission>
<xxx>
<yyy>
<zzz/>
</yyy>
</xxx>
</client-submission>
This cab be implemented in xml schema with <any> element:
<any
id =
maxOccurs =
minOccurs =
namespace =
processContents = >
</any>
BUT IN JAXB, HOW CAN I insert that unknown xml tree as content of <client-submission>, to get proper XML when marshalling??
Thanx.

hi JAXB specification does not support full W3C schema
support in version 1.0.
u cant do "any"

Similar Messages

  • Jaxb and xs:any element binding

    how can I use xs:any type in schema and how I do binding?
    I need to have any valid xml as the content of an element in jaxb generated tree.
    thanx.

    Here is a schema fragment:
                                  <xsd:element name="AK-Unemployment" type="xsd:anyType" minOccurs="0">
                                       <xsd:annotation>
                                            <xsd:documentation>The presence of this element indicates that Alaska Unemployment tax should be calculated</xsd:documentation>
                                       </xsd:annotation>
                                  </xsd:element>
    Then in your code you could do something like this (Note I am using the final release of JAXB):
              AnyType anyType = objFactory.createAnyType();
    localTypes.setAKUnemployment(anyType);
    This will result in an empty element:
    <AKUnemployment></AKUnemployment>

  • Any element with JAXB are always empty

    Hi guys!
    I'm trying to use the any element to specify some content for my web service. My XML schema contains this:
    <complexType name="casObject">
      <sequence>
        <element name="type"     type="string"/>
        <element name="key"          type="long"     nillable="true" />
        <any namespace="##targetNamespace" minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
      </sequence>
    </complexType>I'm using jaxb 1.6 and it provides a method to get my any elements. In my example: List fieldList = casObject.getAny();
    The schema validation doesn't complain, the logging interceptor shows that the additional elements (from any element) are transfered, but the list is always empty. Any idea why this list is always empty?
    I've also have a question to the xsi:type element and jaxb in the web service forum called "missing xsi:type", maybe it it fits better in this forum. Please take a look.
    http://forum.java.sun.com/thread.jspa?threadID=743719&tstart=0
    Cheers,
    Ingo

    Hi Achim,
    According to my knowledge, there are no known problems with a "required Extended Protection" / "Always On" / "Livelink Server" combination.
    Extended Protection helps to prevent an authentication relay attack by using service binding and channel binding. We need to note that when Extended Protection is set to
    Required, only connections from protected applications on protected operating systems are accepted. This setting is the most secure but connections from operating systems or applications that do not support Extended Protection will not be able
    to connect to SQL Server. For more details, please review the following article.
    Connect to the Database Engine Using Extended Protection
    https://msdn.microsoft.com/en-us/library/ff487261(v=sql.110).aspx
    Thanks,
    Lydia Zhang
    If you have any feedback on our support, please click
    here.
    Lydia Zhang
    TechNet Community Support

  • Photoshop elements 13 editor has stopped working EVERYTIME i try to use smart detail brus.windows 7 home edition with plent of memeory and speed. any ideas WHY

    photoshop elements 13 editor has stopped working EVERYTIME i try to use smart detail brus.windows 7 home edition with plent of memeory and speed. any ideas WHY

    The faulting module is photoshop. Report below.
    Source
    Adobe Photoshop CC 2014
    Summary
    Stopped working
    Date
    2/2/2015 4:54 PM
    Status
    Report sent
    Description
    Faulting Application Path: C:\Program Files\Adobe\Adobe Photoshop CC 2014\Photoshop.exe
    Problem signature
    Problem Event Name: APPCRASH
    Application Name: Photoshop.exe
    Application Version: 15.2.2.310
    Application Timestamp: 5480338c
    Fault Module Name: Photoshop.exe
    Fault Module Version: 15.2.2.310
    Fault Module Timestamp: 5480338c
    Exception Code: c000001d
    Exception Offset: 00000000049de322
    OS Version: 6.3.9600.2.0.0.768.101
    Locale ID: 1033
    Additional Information 1: 8db4
    Additional Information 2: 8db473619c10c0c8b85ce99afe676ed8
    Additional Information 3: f06d
    Additional Information 4: f06da704bdd5338df2a8d09bde2244bb
    Extra information about the problem
    Bucket ID: 1fe6d1d4e5765bd348843b981b8ec4d2 (85990875000)

  • XML element,if not including any attributes and/or child elements then

    XML element in SQLX,if not including any attributes and/or child elements then the tag should not appear, how to achive this?
    ex:Consider for <enumeration> tag where it is having some value.
    <attribute>
    <name>Ethernet Access</name>
    <enumeration>
    <StringValue>Bandwidth</StringValue>
    </enumeration>
    </attribute>
    When <enumeration> tag is not have any Value in this, then output should be as follows.
    <attribute>
    <name>Ethernet Access</name>
    </attribute>
    But what i am getting is
    <attribute>
    <name>Ethernet Access</name>
    </enumeration>
    </attribute>
    Please suggest me the solution for this.
    I tried , but when xmlelement() is not having data it will display empty tag ie </enumeration>, If xmlforest() are null it wont show tag, But i have to use xmlelement only. how can that be achived using xmlelement .

    Use a SQL case - when - else end construct to only execute the xmlelement if data is present. The SQL/XML standard is very clear, xmlElement will generate an empty element if no data is present. xmlforest will not.

  • I'm suddenly seeing 2-point black boxes around any desktop icon I highlight, and around various elements in any window I'm working in. I have a G5 PPC iMac running 10.4.11.  Neither restarting the machine nor running Mac Warrior has helped.

    I'm suddenly seeing 2-point black boxes around any desktop icon I highlight, and around various elements in any window I'm working in. I have a G5 PPC iMac running 10.4.11.  Neither restarting the machine nor running Mac Warrior has helped.

    Thanks! I often inadvertently turn on the voiceover when I use the wrong keys to send an element to the back in Quark. Funny, I turned off the voiceover on my own, but never noticed that the black boxes had gone away until I saw your post.

  • Difference between Property binding, Aggregation Binding and Element binding?

    what is difference between Property binding, Aggregation Binding and Element binding?

    HI Rajesh,
    Firstly ,
    A binding path can either be absolute (starting with a slash), or relative (starting with a name token)
    1. Element Binding:
    Here we specify the refrenced object.
    eg if you bind company object to a layout, like
    var oMatrixLayout = new sap.ui.commons.layout.MatrixLayout();
    oMatrixLayout.bindElement("/company");
    then all the children of this layout can refer to the context of this object. like suppose company has name attribute, then we can directly pass it to the child like:
    oMatrixLayout.createRow(
    new sap.ui.commons.Label({text: "Name:"}),
    new sap.ui.commons.TextField({value: "{name}"})
    All the relative bindings within the control and all of its children are resolved relatively
    2. Property binding is similar to the context mapping in WebdnyPro. We bind it to a property of the UI. It is automatically updated when its vlaue is changed.
    3. Aggregation binding (basically a list) defines a template(a model which others can copy) and this template is cloned for each entry of the list. When we make an entry in the list, a clone of the template is created.When the clone is created, the context is set to the entry in the list. Thus all the binding to the template are resolved relative to the entry. This is maily used for large data sets where we will only clone the current entry and not the complete list.
    Regards,
    Nikhil

  • Java Mapping Using JAXB [Java Arch for XML Binding]

    Hi All,
    Anyone tried using JAXB  [Java Architecture for XML Binding API available with Java WebServices Pack] technique for XML processing in Java Mapping??
    I am facing the following problems..
    1. I am not able to generate namespace while marshalling target XML [In standalone mode and not tried in XI].
    2. What are the jar files we need to import?
       I tried importing the following jar files in XI.
    jaxb-api.jar,jaxb-impl.jar,jaxb-libs.jar,jax-qname.jar,namespace.jar,relaxngDatatype.jar
      and getting some errors while importing these files in XI.
    3. It throws error at runtime [Interface Mapping-Test Tab]
       like Resource not found:javax/xml/bind/Messages_en.properties,javax/xml/bind/Messages_en_US.properties
    4. Even after creating a copy of available file Messages.Properties with name: Messages_en.properties and Messages_en_US.properties.. it is not generating any messages in Target message tab
    Thanks in Advance,
    Ananth Chinnaraj

    Sravya ,
    I have searched wide and far for this, but no success.
    A lot on JAXB XI and Webdynpro, but nothing on JAXB, XI and mappings.
    Could you please post the url here ?
    Thanks and kind regards,
    Jan

  • Update structure does not contain any elements error

    Dear Friends in am a newbie in WDA. My Function Module  has the following decalarations.
    TABLES
    *"      U_P9006 STRUCTURE  P9006
    *"      IT_P9006 STRUCTURE  P9006
    IT_P9006 is used to fill all the values in the Table, if the user wants to create a new entry in the table then he will click on the new button and U_9006 will be used to hold the new value and save in the database.
    when i binded U_9006-EmployeeNumber to a Input box to accept values and tested the application dumps giving the error
    "Adapter error in INPUT_FIELD "TC_1_EMPLOYEE_CODE" of view "ZHOLIDAY.MAINVIEW": Context binding of property STATE cannot be resolved: Node COMPONENTCONTROLLER.1.ZESS_EDU.1.CHANGING_1.1.U_P9006 does not contain any elements "
    i have 3 basic questions please help me.
    1. Currently the cardinality of the Node U_9006 is 0..n and Selection 0..1 , i reffered few sdn threads where it says change the cardinality to 0..n and issue will resolve , my issue is cardinality is already 0...n and even if i try to change it at the context tab it is not changing.
    2. if map the INPUT BOX a String attribute ctx_employee rather than mapping it to the U_P9006-EmployeeNumber the page does not dumps , but how do i assign this ctx_employee value to the u_9006-employeenumber in the coding?
    3. any sample of SAVE code so that on those lines i write SAVE coding and try to update the record.
    Regards,
    Jack

    Jack,
    Bind_table , bind_element methods are used to insert records into NODE, not into database table.
    As you said you want to insert records into custom infotype, you need to use function modules to create .
    For infotype tables we use below function module to insert records
    HR_INFOTYPE_OPERATION
      DATA return1 TYPE bapireturn1.
    DATA: wa_9006 TYPE p9006.
    NOW PASS ALL THE VALUES OF WA_9006.
    WA_9006-PERNR = LV_EMPID.
        wa_9006-begda = " provide start date'
        wa_9006-endda = ' provide end date
        wa_9006-aedtm = sy-datum.
        wa_9006-uname = sy-uname. ///LY PASS ALL THE VALUES OF P9006 TABLE( CHECK SE11 FOR FIELDS )
    THEN CALL BELOW FUNCTION MODULE.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
                   EXPORTING
                            infty                  = '9006'
                             number                 = wa_9006-pernr
    *                         subtype                = wa_9006-subty
    *               OBJECTID               =
    *               LOCKINDICATOR          =
                            validityend            = wa_9006-endda
                            validitybegin          = wa_9006-begda
    *               RECORDNUMBER           =
                            record                 = wa_9006
                            operation              = 'INS'
    *                TCLAS                  = 'A'
    *                DIALOG_MODE            = '0'
    *                NOCOMMIT               =
    *                 VIEW_IDENTIFIER        =
    *                 SECONDARY_RECORD       =
                  IMPORTING
                          return                 = return1
    *              KEY                    =
    Hope this will be useful
    Regards
    Srinivas
    Edited by: sanasrinivas on Feb 13, 2012 12:28 PM

  • Dump showing that table does not contain any elements.

    Hi All,
    I have a table, with lead select.Based on the row selected, corresponding values of the row are filled in the input fields.
           I filter the table and only those rows are displayed which has status "waiting". Now the problem is when there is only one row with status "waiting", and process it, its status changes to "done", as a result of which there is no row in the table, and i get following error:
    Adapter error in INPUT_FIELD "IF_STATUS" of view "ZPWB.DISTRIBUTE_VIEW": Context binding for property VALUE cannot be resolved: The DISTRIBUTE_VIEW.1.PD_ITEMS_TAB node does not contain any elements
    Can you please help out:)

    I have now the same problem.
    somebody found out what the solution is for that issue?
    if i have an empty context i get a dump due to the context binding. what is the work around?

  • Apache axis, JAX-RPC, JAXR, JAXM, JAX-WS, JAXB, and Metro

    Are all of the following the different APIs for creating web service applicaton?
    Apache axis,
    JAX-RPC,
    JAXR,
    JAXM,
    JAX-WS,
    JAXB, and
    Metro
    --If so, which one(s) are most widely used?
    --If not, what are the differences among them?
    Thanks
    Scott

    I think your are looking for a full web services framework.
    Apache axis --> Is a WS framework. implements jax-rpc. Provides some features on its own
    JAX-RPC --> Is a WS framework specification. Your application servers/axis implement this.
    JAXR --> not an web-service api, rather a web-service registry access api
    JAXM --> Is an api for xml messaging. Your framework provider may use this.
    JAX-WS --> Is jax-rpc 2.0. Your application server provider will give implementation for this. Otherwise you can use xfire/metro as the implementation. Chose this over jax-rpc.
    JAXB, --> Is used for xml-java binding. Jax-ws uses this. But not specific to jax-ws..
    Metro --> Reference implementation for jax-ws.
    All in all jax-rpc, jax-ws and axis2 are three options. go for jax-ws if you do not have any other constraints.As for selcting implementation of jax-ws, if you are working on an app-server (and not on a simple servlet container or without a server), server vendor will provide that. Otherwise look for xfire or metro.

  • In LabVIEW6i, is there a way to make particular elements of an array invisible while the others stay visible (without losing any element's info.)?

    I have an array of clusters. Each cluster pertains to a certain oscilloscope I am controlling. There is another control which specifies which oscilloscopes I have "on".
    If a particular oscilloscope is "on" I want its cluster to be VISIBLE in the array. If a particular oscilloscope is "off" I want its cluster to be INVISIBLE in the array.
    How can I implement this in my program without losing ANY of the info. in my array?

    I suggest to use two arrays; one for user interface holding the ON clusters,
    and one for internal use holding all clusters. The diagram periodically
    updates the internal array with user interface array data.
    By INVISIBLE do you mean "skipped from the array" or displayed as an empty
    placeholder? To hide an OFF cluster you could put in the cluster a flat
    button boolean that is small and transparent when ON and large enough to
    cover the whole cluster area (and other controls) when OFF.
    Jean-Pierre Drolet
    Scientech R&D
    "mcmastal" a écrit dans le message news:
    [email protected]..
    > In LabVIEW6i, is there a way to make particular elements of an array
    > invisible while the others stay visible (without losing any element's
    > info.)?
    >
    > I have an array of clusters. Each cluster pertains to a certain
    > oscilloscope I am controlling. There is another control which
    > specifies which oscilloscopes I have "on".
    > If a particular oscilloscope is "on" I want its cluster to be VISIBLE
    > in the array. If a particular oscilloscope is "off" I want its
    > cluster to be INVISIBLE in the array.
    > How can I implement this in my program without losing ANY of the
    > info. in my array?
    LabVIEW, C'est LabVIEW

  • 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.

  • I purchased Adobe photoshop elements II and Adobe premiere elements II. They are both on one disc. My computer crasded and I had to reload Windows. I only have one serial number and it only works with photoshop II. The same serial number will not work for

    I purchased Adobe photoshop elements II and Adobe premiere elements II. They are both on one disc. My computer crasded and I had to reload Windows. I only have one serial number and it only works with photoshop II. The same serial number will not work for Premiere. I dont have any other serial numbers. What do I do???

    Static_Unit
    I am getting a bit concerned about what is happening in your situation. Yesterday you posted your question in at least two different forums, one of them being here in the Premiere Elements Forum.
    Don't Have Serial Number for Premiere, Only Photoshop?
    Wherever you posted, the reply was to contact Adobe via its Adobe Chat. It is the only one who can sort out this matter for you.
    In the thread cited above I offered to help you with the difficulties that you were having visualizing the Adobe Chat in its web page. I was waiting for your follow up on that in the above thread. Instead, I find your same question in a new Adobe Premiere Elements Forum thread this afternoon with no refer the prior threads or prior recommendations given you.
    I will also mention again...when you buy the Photoshop Elements and Premiere Elements bundled in one packaging and with installation files for each on the same installation disc, each program has its own serial number. The Photoshop Elements serial number does not work for Premiere Elements and vice versa. The serial numbers are on labels on a box which houses the installation disc envelope(s). So, if you purchased both programs and found the Photoshop Elements serial number, then the Premiere Elements serial number should be in a label right underneath the label with the serial number for Photoshop Elements. I recall writing this in your yesterday's thread on this matter.
    The moderator will no doubt be along shortly to close or delete this thread. So, just in case, please bookmark your yesterday's thread cited above so that we can continue this communication which is trying to help you.
    Thanks.
    ATR

  • Background Task on Adobe Photoshop Elements and Adobe Premiere Elements Organizer "hangs"

    I recently upgraded my software from Elements 10 to Elements 12 and had a bit of trouble.  Apparently both 10 and 12 have a way of launching an executable in the background which tends to get "stuck" on my system.  I believe the problem may be related to the network configuration and software mix I live with, but I need to confirm my suspecions and find a way to control the problem.  Here is what I know... I have always experienced a lot of problems using Elements with my NAS device which is a 1TB usb 2.0 connected disk system attached to my Linksys  E3000 Router.  When I got the router, the BIOS software did not correctly support NTFS file systems, but subsequent updates eventually made this possible if you formatted the removable drive on a system in NTFS, you could then hang it on the router and "see" the contents, serve them via Windows Media Player, or iTunes, etc., etc. from a computer atteched to the network, or via wirless directly off the router.  I archived all my photos out on this file system and have successfully indexed it for use with Adobe Photoshop Elements and Adobe Premiere Elements Organizer, but...  When I went to install Elements 12 software I tried to install it without first removing Elements 10, and on a system which had run Elements 10 since the last full reoboot.  During the install of 12 under "shared services install" the installation process "Hung" on a background task with a name like "AdobeElementsAnalyzer.exe" which only shows up in Windows 7 task manager as a running process, not as a full program, but because the file was locked by the system, the install hung.  I eventually figured out that I needed to start the install of Elements 12 software immediately after having rebooted so that this program was not present in the background, and succeeded in completing an install of Elements 12 on my Windows 7 X64 system.  This system required a "special" software download for Premiere Elements, but not for Photoshop Elements which is only apparently avaliable under 32bit emulation mode.  I finally got the "shared components" portion of the X64 Premiere Elements to complete an install, and then set about verifying the onversion/upgrade of the indexes to my photos and video stored out on the NAS.  The same rogue task which prevented me from doing the install showed up agian, taking all the system resources away from my dual processor Intel chip and refusing to let go.   I was forced to terminate it from the task manager.  I strongly suspect that my "issues" are in part due to the extrordinary network latency imposed by the drive connection I'm using to index my photos and videos, and I'm looking for a better approach to using the editors against my master catalog of files, as well as figruing out just what I need to do to insure that all the files I have stored on the drive are accessible by the organizer when I need to pull a copy to work on.
    A complication is that I have two "legacy" Windows XP systems on my network, a reasonably fast Windows Vista Business desktop, and the Windows 7 X64 processor system which is the most powerful system I have.  The Windows file security enhancements to NTFS changed from XP, to Vista, to Windows 7, so files which get saved to the NAS disk inherit a variety of different levels of security under windows.  I have occasionally gone to one of my old XP boxes and "wiped" the security settings by resetting everything via Windows XP.  Because the NAS is so slow, this process can take several hours and must not be interrupted by attempts to do anything affecting the NAS by any of my other networked computers.  To avoid problems with my photo archive, it makes sense to me to do all my editing on copies which have been extracted from the NAS archive and stored on the C: drive (boot drive) of my Win X64 system. 
    What I seriously need to know is this:  When/If I define a "watched" portion of my file system, rather than taking the time to manually import every little change to my photo archives, can I expect the Photoshop Elements Organizer to work properly as long as everything stored on the NAS is stored via the same system which runs Elements with the same active "user" in control so that all the windows 7 file security settings putting stuff on the mapped NAS drive remain properly secured under Win 7 X64?  Frankly I don't care if the files appear "read only" to every other system and identity on my network, but I do need to be able to "see" them.  I have been able to view slide shows and movies stored on the NAS via both my networked iPad, my Apple TV, and using Samsung's funky android and Windows compatible software.  Frankly, I doubt that Microsoft or Apple has full understanding and control of the environment where there is no host "server" other than the eprom based stuff my Linksys E3000 loads to emulate early Windows Media Management architecture, but I mange to get it to work as long as I don't try anything sophisticated with the file permissions.   As a fall back, can I expect individual "imported" bits out on the NAS to remain stable if indexed and used only by the Elements Organizer running on my Win 7 X64 system?
    I am seriously considering converting an old WinXP desktop into a UNIX box which could be configured as a "Server" for everything stored on the NAS and be done with my problems in return for the power required to run the server all the time so stuff is there when I need it.  Any recommendations?
    Message was edited by: [email protected]

    Adobe hasn't said whether it officially supports PSE 7 on Windows 7.  But reports are starting to trickle in that PSE 7 works fine on Windows 7 for most people, though a couple people have reported crashes. My PSE 7 seems to work fine, though I primarily use PSE 8 now.  This is all very preliminary, and we'll learn more as more people post here.

Maybe you are looking for

  • Since downloading Firefox 4, my internet and computer are SO SLOW; it is possible to just get Firefox 3 back?

    I am not good with computers, I don't know all of the intricate details on what different things to check and change. I'd hoped to just download and go. It seems my computer can't support Firefox 4 for some reason, it now takes several minutes to nav

  • Monitoring of RFC

    Hi, I have a very simple question but I have forgotten how to do this. I try to call a BAPI via XI. Where in the XI environment can I monitor or check, which RFC call got to the XI system and why error occurs. Thanks for your assistance. Regards Flor

  • Best way to use Skype in Europe

    I will be travelling through Western Europe(FR,Bel,Ger,Aust) as well as Eastern Europe vis.Croatia,Slovenia, Poland and Hungary for the next 2 months. How can I find out the call rates back to the UK on Skype PAYG and would an unlimited account be be

  • How to Run Allocation in Outlooksoft Everest 4.2 or SAP BPC 5.1

    Hello, Currently we use OS Everest 4.2 and we are in the Process of installing SAP BPC 5.1. We haven't used OS or BPC for allocation. I am trying to find a document that helps us guide through the process of creating a Allocation rules / formulas. We

  • Want to create a "pop-up" newbie help!

    I am new to this. My first folio... I have a graph with a point on it. I want to click on the point and have a pop up appear over the graph and then be able to close it and go back go the graph.. HELP! I've tried a few different options, but nothing