OSB works in different ways with CDATA

Hello,
I make a request to a webservice by px and bs, and I have two cases:

<request>
&lt;childs&gt;
&lt;child0&gt;AAAA&lt;/child0&gt;
&lt;/childs&gt;
</request>
with tcpddump the output is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Header/>
  <soapenv:Body>
    <request>
      &lt;childs>&lt;child0>AAAA&lt;/child0>&lt;/childs>
    </request>
  </soapenv:Body>
</soapenv:Envelope>
this request does not use CDATA.

<request>
&lt;childs&gt;
&lt;child0&gt;AAAA&lt;/child0&gt;
&lt;child1&gt;AAAA&lt;/child1&gt;
&lt;/childs&gt;
</request>
with tcpddump the output is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Header/>
  <soapenv:Body>
    <request>
      <![CDATA[<childs><child0>AAAA</child0><child1>AAAA</child1></childs>]]>
    </request>
  </soapenv:Body>
</soapenv:Envelope>
this request does use CDATA
Why use CDATA in option 2 and not option 1?

Hello,
You're right, OSB is based on xmlObject to create xml.
In http://xmlbeans.apache.org/docs/2.4.0/reference/org/apache/xmlbeans/XmlOptions.html you can see these two methods:
- SetSaveCDataEntityCountThreshold: This option controls when saving will use CDATA blocks. CDATA will be used if the folowing condition is true:
textLength> cdataLengthThreshold && entityCount> cdataEntityCountThreshold
The default value of cdataEntityCountThreshold is 5.
- SetSaveCDataLengthThreshold: This option controls when saving will use CDATA blocks. CDATA will be used if the folowing condition is true:
textLength> cdataLengthThreshold && entityCount> cdataEntityCountThreshold
The default value of 32 is cdataLengthThreshold.
Now, the problem is that the sets methods are not working .
Thank you very much and sorry to answer so late.

Similar Messages

  • I need blacks law disctionary digital plug-in to work with my browser, because it doesn't work any other way with any other browser, the new firefox is incompatible, so can I go back to the old firefox?

    I really wish internet providers wouldn't change things so much that your current software can't keep up. Black's Law Dictionary is the only authoritative source for legal terms and it's not free or on a website. The digital version (the only way to keep from carrying around a 5 lb book) is an add-on feature that previously worked with Firefox. It's supposed to work with all browsers, but the browsers have all been changing so much. If I would have known that my blacks-law plug in would be disabled until Firefox becomes compatible again, I would have never upgraded. Tell me how to go back to my old version, so I can finish my research in peace, until you guys get serious about making products that work for people BEFORE you release them.

    Try using the Add-on Compatibility Reporter extension to "force" compatibility of that add-on.
    https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/
    You really need to contact the developer of that Burke's Law add-on and find out why they can't keep that add-on up-to-date with the new Firefox versions. IMO, if they are using a web browser as the interface for their product and are charging you for that service, they have an obligation to their customer's to keep their stuff fixed for the 2nd most used browser in the world.

  • DFSR only working in one way with error 1723

    Hello i have 2 FILEservers which i set up with 10 Replication Groups:
    Server A: Windows Server 2012
    Server B: Windows Server 2003
    All of a sudden the replication stopped working with id 5014 errror 1723 on server B. If i create a folder on server A it does NOT replicate to Server B-if i create a folder on server B it DOES replicate to server A.
    Error 1723:  The RPC server is too busy to complete this operatio
    one single replication group gets the error 9033 (the request was cancelled by a shutdown), this replication does not work at all.
    I found a couple of threads about this but no real solution. Anybody can help me?
    Cheers

    Thanks for your response
    Rebuilding did not help. Luckily it replicates in the "right" direction. I could've tried to install all hotfixes but i decided to kill the replication.
    Anyway..
    Based on the research, TCP off loading on the network level may cause these several Event ID 5014 and the error 1726 in the Event logs.
    Please add these following registry values on the problematic Windows Server 2008 box to see it can be helpful.
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
    Value =DisableTaskOffload
    Type = DWORD
    Data = 1
    Value =EnableTCPChimney
    Type = DWORD
    Data = 0
    Value =EnableTCPA
    Type = DWORD
    Data = 0
    Value =EnableRSS
    Type = DWORD
    Data = 0
    Do these steps work with Windows 2012 Servers in a LAN?

  • Function f3 works in strange way with external monitor

    The Fn F3 seems to send the screen from the laptop to an external monitor, Pressing the Fn f3 again takes the screen in the external monitor back to laptop. Here is where the problem begins, If pressed again as before, it does not work properly.
    It sends sometimes, sometimes not. And there is no wat to return the screen back to thelaptop.
    It appears that the external monitor is disconnected or not available when Fn F3 is pressed to return to laptop.
    Also the windows key + shift + right arrow  to send to external monitor or windows key + shift + left arrow  to return from  external monitors are not working and that is a key combination to do the same as the FN F3 key combination
    Any suggestions?
    Solved!
    Go to Solution.

    Right click on desktop. Choose the screen resolution. Then click identify to see if two monitors are detected. Then in the third option choose duplicate display. Try this in either of the situation.
    Ishaan Ideapad Y560(i3 330m), Hp Elitebook 8460p!(i5-2520M) Hp Pavilion n208tx(i5-4200u)
    If you think a post helped you, then you can give Kudos to the post by pressing the Star on the left of the post. If you think a post solved your problem, then mark it as a solution so that others having the same problem can refer to it.

  • Report working in different ways in BI Dev and  BI production

    Hi Expert,
    I have created a Report in which i am giving input to the variable(Date input) and using this i am displaying all the values that is till the date that i entered, and it is working fine in BI dev, but in BI production it is showing only data that is equal to supplied date only.
    Although i had checked all the restrictions and variables are as it is transported.
    if you have an idea please share your knowledge please...
    Regards
    Prakash

    Hi,
    Are you using this date variable in the global filter or in any of the local KFs?
    Are you using the operand 'less than or equal to' for getting all the values less than or equal to this date?
    Is this operand same in both the systems?
    Is there data in production prior to the date range that you have entered?
    Can you check the information on the report output to find out what value is captured in this date variable?
    What is the last changed date of the queries in dev and Production?
    I hope any of the above should give a clue to solve your issue.
    Thanks.

  • A different way to deal with "unknown" user after upgrade from Tiger.

    It's a known issue that doing upgrade and install or archive and install from Tiger to Leopard, produces a lot of folders with "unknown" group in their "get info" panel. This has to do with a different group structure in Tiger and Leopard.
    In Tiger, every user has their own private group with the same name as the username. That group is set to be user's primary group.
    In leopard, every new user with an account is a member of the group staff (gid=20) which is not present in Tiger. Leopard doesn't fully understand Tiger's private group structure, hence the "unknown" group. This causes various problems such as Finder crashes when trying to change the permissions and ownership in the get info window.
    Apple's proposed way of dealing with this is described [here|http://docs.info.apple.com/article.html?artnum=307128].
    However, this method doesn't change the existing group structure and doesn't resolve all the problems.
    I'd like to suggest a different way of dealing with it.
    1. create a new admin user (if you don't have one already), log out of your primary account and log into the new one.
    2. enter the following in terminal:
    *sudo dscl . delete /users/"username"*
    where username is the short name of the user on the main account (not the one you are currently logged into).
    This will delete that user.
    3. Log out/in.
    4. go to system preferences->accounts and create a new user with the name and short name exactly as the one you've deleted in step 2.
    You'll be get a popup saying that a home directory by this name already exists and asking if you want to use it. Say "Yes".
    That's it. Your main user will be recreated using the native group structure of Leopard with gid=20(staff). Permissions on your home directory will be reset with correct group and ownership.
    I tested the process on my powerbook after an upgrade and install from Tiger to leopard and it worked without a hitch.
    I like this method better than Apple's because it completely gets rid of Tiger's group structure which was creating all the confusion. The only downside as far as I can see is that you might have to manually change the group ownership on some files belonging to the main user that sit outside your home directory.
    I would appreciate any comments on this.

    hmm, I confess, I did this before installing 10.5.2 so i can't say for sure. However, I've dealt with a few people (see e.g. this [thread|http://discussions.apple.com/thread.jspa?messageID=7012957]) who are running 10.5.2 and still have this issue. I don't know what if anything 10.5.2 did about this but I'm quite sure that it didn't change the group structure inherited from Tiger.
    Message was edited by: V.K.

  • XmlDataProvider .... is gone completely in my Xaml file. Why? How many different ways to deal with xml data source through WPF

    I followed a procedure described in a book.
    1. insert "Inventory.xml" file to a project "WpfXmlDataBinding" .
    2. add the XML data source through the data panel of "blend for 2013", named it "InventoryXmlDataStore" and store it in the current document.
    3. dragged and droppped the nodes from the Data panel onto the artboard.
    Then I checked my Xaml file against the one provided by the book
    Xaml file by the book:
    <Window.Resources>
    <!-- This part is missing in my xaml file --><XmlDataProvider x:Key="InventoryDataSource"
    Source="\Inventory.xml"
    d:IsDataSource="True"/>
    <!-- This part is missing in my xaml file -->
    <DataTemplate x:Key="ProductTemplate">
    <StackPanel>
    <TextBlock Text="{Binding XPath=@ProductID}"/>
    <TextBlock Text="{Binding XPath=Cost}"/>
    <TextBlock Text="{Binding XPath=Description}"/>
    <CheckBox IsChecked="{Binding XPath=HotItem}"/>
    <TextBlock Text="{Binding XPath=Name}"/>
    </StackPanel>
    </DataTemplate>
    </Window.Resources>
    <Grid>
    <ListBox HorizontalAlignment="Left"
    ItemTemplate="{DynamicResource ProductTemplate}"
    ItemsSource="{Binding XPath=/Inventory/Product}"
    Margin="89,65,0,77" Width="200"/>
    </Grid>
    my Xaml file:
    <Window x:Class="WpfXmlDataBinding.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="922" Width="874">
    <Window.Resources>
    <DataTemplate x:Key="ProductTemplate">
    <StackPanel>
    <TextBlock Text="{Binding XPath=@ProductID}"/>
    <TextBlock Text="{Binding XPath=Cost}"/>
    <TextBlock Text="{Binding XPath=Description}"/>
    <CheckBox IsChecked="{Binding XPath=HotItem}"/>
    <TextBlock Text="{Binding XPath=Name}"/>
    </StackPanel>
    </DataTemplate>
    </Window.Resources>
    <Grid DataContext="{Binding Source={StaticResource InventoryXmlDataStore}}">
    <ListBox HorizontalAlignment="Left" Height="370"
    ItemTemplate="{DynamicResource ProductTemplate}"
    ItemsSource="{Binding XPath=/Inventory/Product}"
    Margin="65,55,0,0" VerticalAlignment="Top" Width="270"/>     
        </Grid>
    </Window>
    All looks quite the same except the <XmlDataProvider ....> part under <Window.Resources>, which is gone completely in my Xaml file.
    1, Why?
    2, How many different ways to deal with xml data source through WPF?
    Thanks, guys.
    (ps My "WpfXmlDataBinding" runs without problem through.)

    Never do yourself down Richard.
    Leave that to other people.
    It's quite common for smart developers to think they're not as good as they are.
    I coach a fair bit and it's a surprisingly common feeling.
    And to repeat.
    Never use anything ends .. provider.  They're for trivial demo apps.  Transform xml into objects and use them.  Write it back as xml.  Preferably, use a database.
    You want to read a little mvvm theory first.
    http://en.wikipedia.org/wiki/Model_View_ViewModel
    Whatever you do, don't read Josh Smiths explanation.  I used to recommend it but it confuses the heck out newbies. Leave that until later.
    Laurent Bugnion did a great presentation at mix10.  Unfortunately that doesn't seem to be working on the MS site, but I have a copy.  Download and watch:
    http://1drv.ms/1IYxl3z
    I'm writing an article at the moment which is aimed at beginners.
    http://social.technet.microsoft.com/wiki/contents/articles/30564.wpf-uneventful-mvvm.aspx
    The sample is just a collection of techniques really.
    I have a sample which involves no real data but is intended to illustrate some aspects of how viewmodels "do stuff" and how you use datatemplates to generate UI.
    I can't remember if I recommended it previously to you:
    https://gallery.technet.microsoft.com/WPF-Dialler-simulator-d782db17
    And I have working samples which are aimed at illustrating line of business architecture.  This is an incomplete step by step series but I  think more than enough to chew on once you've done the previous stuff.
    http://social.technet.microsoft.com/wiki/contents/articles/28209.wpf-entity-framework-mvvm-walk-through-1.aspx
    The write up for step2 is work in progress.
    https://gallery.technet.microsoft.com/WPF-Entity-Framework-MVVM-78cdc204
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • My MBA 13" Late 2010 displayport to TV has stopped working, is there a way to troubleshoot the port? Have tried several different ways of trying, but TV still reads "No Signal"?

    My MBA 13" Late 2010 displayport to TV has stopped working, is there a way to troubleshoot the port? Have tried several different ways of trying, but TV still reads "No Signal" while the TV changes resolution as if it were sharing it's screen?

    Hi garyducati,
    If you are having issues with the video out on your MacBook Air, you may find the following article helpful:
    Apple computers: Troubleshooting issues with video on internal or external displays
    http://support.apple.com/kb/ht1573
    Regards,
    - Brenden

  • ." I have already done in different ways, nothing works.

    I can not connect message for IPad. He asks for ID and password, I type, and he says: "unable to log on. Believe network connection and try again." I have already done in different ways, nothing works.

    Don't think so.  But tried it anyway.  I have been into utilities and tried different contrast settings now I don't know what is the right one.  But no matter which one I tried I have either about a third of the screen black, with display centered as though hidden behind the black.  What is going on?
    Also, I have to say that I can't understand why there is no information anywhere on what the correct settings should be.
    Any ideas Capt?

  • HT204053 i RECENTLY PURCHASED ANOTHER IPHONE.  MY INTERNET IS NOT WORKING.  I JUST CREATED AN APPLE ID.  WHAT'S NEXT?  I NOW HAVE TWO DIFFERENT ACCOUNTS WITH DIFFERENT USER NAMES.  HOW CAN I USE ONLY ONE ACCOUNT FOR ITUNES, ICLOUD APPLE ID ETC???

    I RECENTLY PURCHASED ANOTHER IPHONE.  MY INTERNET IS NOT WORKING.  I JUST CREATED AN APPLE ID.  WHAT'S NEXT?  I NOW HAVE TWO DIFFERENT ACCOUNTS WITH DIFFERENT USER NAMES.  HOW CAN I USE ONLY ONE ACCOUNT FOR ITUNES, ICLOUD APPLE ID ETC???

    Welcome to the Apple community.
    iTunes and iCloud and different accounts, you will need to delete both accounts from your device before adding the new details in their place.
    For iCloud go to settings > iCloud, scroll down and hit the delete button. You can then sign back in using your correct details. For iTunes go to settings >store, tap your account ID and then sign out, you can then sign back in using your correct Apple ID.

  • Can I share calendars on a work and personal device, with different iCloud user names?

    I'm relatively new to my work iPhone, and very new to my iPad.  I've been entering events in the iCloud calendar, which is linked to the iPad under a personal Apple id and password.
    My work iPhone, which (currently) has a different Apple id and password, set up when work provided it, syncs with Outlook on my work laptop using an App called Mobile Iron.  I have very little control or knowledge of this, although it works just fine.
    It woiuld be useful to have any events I set up dumped into the same calendar, viewable both on my personal iPad and my work iPhone, but I dare not do anything to interfere with what my company IT has set up.  Any recommednded strategies?

    You can try sharing your iCloud calendar with yourself as explained here: http://help.apple.com/icloud/#mm6b1a8694.  If you work phone has an iCloud account, you can privately share your calendar with it, giving your read and write access.  If it doesn't, you can publically share it, giving you read-only access.  This should give you the ability to view the shared calendar alongside your work calendar without merging the two.

  • Hi ya'll! I'm still learning how to navigate my way with Lightroom. (Last time I wrote, I did get some responses that work. Thanks so much!) Now, I have another question. When I try to copy pics from my external drive to a CD/DVD, no matter if do it from

    Hi ya'll! I'm still learning how to navigate my way with Lightroom. (Last time I wrote, I did get some responses that work. Thanks so much!) Now, I have another question. When I try to copy pics from my external drive to a CD/DVD, no matter if do it from LR or my drive, I keep getting the message; "Disk burning is not supported by LR on this computer." I've tried everything I can think of, so, I thought I'd see if anyone may know if there's anything I can do. Or could it be that my computer just can't handle it? Help!!! So frustrating!!  I have a PC Lenovo computer, I don't know if this makes any difference. Any ideas? Thanks so much for your help!!!

    Have you burned Discs with other programs using this computer? Are you certain that you have a drive that will burn discs?

  • Since me and my mother moved from iChat to iMessage bêta, screen sharing works only one way. I can share my screen with her but not the reverse. When actually what I would like to do is share her screen. Video works fine both ways.

    Screensharing works only one way since we moved from iChat to iMessage bêta. Before that we have never had any problem with screen sharing. We haven't changed anything else, just installed iMessage. What I need to do is share her screen, and the only thing I can do is share my screen...
    Thanks for your help.

    HI,
    On the whole I am finding it very stable.  (it presents the same quirks in the same manner each time)
    It has some things that are more Feature requests than "Bugs" per se about the way it works that I would like to change.
    It can also be difficult to tell exactly what is going on whenyou are hearing about it third hand.
    Sounds like you have a plan.
    8:35 PM      Tuesday; March 20, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • I have a 5s which has been working fine until about a week ago when any calender event added to my phone will not sync with my enterprise server. Any calender event entered on my PC (enterprise) does show on my phone. Mail is working fine both ways,ideas?

    i have a 5s which has been working fine until about a week ago when any calender event added to my phone will not sync with my enterprise server. Any calender event entered on my PC (enterprise) does show on my phone. Mail is working fine both ways,ideas?Iphne 5s and enterprise

    See my reply to this message:
    https://discussions.apple.com/thread/2557520?start=15&tstart=0
    The problem is that the POP3 client is not issuing a DELE command to remove the email from the server.

  • The sound doesn't work.  It's set appropriately in settings, the volume is turned up all the way with the side buttons, but no volume.  When we try to play songs, it acts like it's going to play and then goes back to the play list.  Restored and still no

    It's set appropriately in settings, the volume is turned up all the way with the side buttons, but no volume.  When we try to play songs, it acts like it's going to play and then goes back to the play list.  Restored the device and still no sound.

    Try A and B
    (A) Restart iPad
    1. Hold down the Sleep/Wake button until the red slider appears.
    2. Drag the slider to turn off iPad.
    3. Turn iPad back on, hold down the Sleep/Wake until the Apple logo appears
    (B) Reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.

Maybe you are looking for

  • IPad Photo App with the ability to write on the image with stylus?

    Is there a photo app for 4th generation iPad that allows me to take a picture and then write on the image with a stylus? I'm in the sign business and that would be ideal for on site assessments (write dimensions and notes)

  • Problems accessing the parallel port

    Dear All, I'm having problems to access to the parallel port using the VI write / read to the serial port, it returns the error code 37. As far as I've seen in the documentation this error code is for UNIX systems and we're using Windows 95. Anybody

  • Wallpaper/Screensaver HELP!

    Hello. My 13" MacBook Pro's desktop wallpaper will not change. So when I open System Preferences, and click Desktop Wallpaper/Screensaver, the color wheel appears, and where the images are supposed to be shown, "loading images" is seen. After a few s

  • System.OutOfMemoryException Oracle.DataAccess.Client.OracleParameter

    Hi , nt I am working on a legacy system where the end users reported exception while loading a page. This is developend in ASP.NET 2.0 and Oracle.DataAccess. The exception is not reproducible in any of the staging or development serves, and is not co

  • Why not browse a website? I said before I log that javascript is enabled.

    hello The problem I have when browsing a website is like I explained before I log in I have not javascript enabled. what happens exactly? that the browser is enabled and the other sites I have no such problems ...