problem with & gt; & amp while sending xml as string webservice

Hi I am also faced a problem that I want to send a string to my webservice of sap in the following format

< DATA > < STRUCTURE VAL = 'FLASH' > < VALUEPART VAL = '40100' > < / VALUEPART > < / STRUCTURE > < STRUCTURE VAL = 'FLEX' > < VALUEPART VAL = '2000' > < / VALUEPART > < / STRUCTURE > < / DATA >

But every time I send this string to my webservice in webservice is reading these data as

& amp; Lt; DATA & gt; & amp; Lt; STRUCTURE VAL = 'FLASH' & gt; & amp; Lt; VALUEPART VAL = "40100" & gt; & amp; Lt; / VALUEPART & gt; & amp; Lt; / STRUCTURE & gt; & amp; Lt; STRUCTURE VAL = 'FLEX' & gt; & amp; Lt; VALUEPART VAL = "2000" & gt; & amp; Lt; / VALUEPART & gt; & amp; Lt; / STRUCTURE & gt; & amp; Lt; / DATA & gt;

Please help me solve the problem.

Hi Prashant,

It's very simple.

var dataXMLString: String = ""; " //

var cdataXML:XML = XML(" ");

you get your data as xml cdata.

You can do it by using another way. Use the Base64 conversion.

Encode xml data using Base64 conversion and side Server decode to the original string.

Thank you

Vikram

Tags: Flex

Similar Questions

  • Problem with pushing the attribute child xml to an empty array

    Hi guys,.

    I have another problem with the bet, or should I say, pushing data from an xml file to an empty array, as I stated earlier.

    During the xml_mc.onload, I can see the data, but after that, it becomes undefined.

    It seems that I couldn't find the solution on the net as well. I suspect that's not possible, but I'm not giving up.

    Please help me.

    Thank you.

    This is the code example:

    var monTableau = new Array();

    var xml1:XML = new XML();

    Xml1.ignoreWhite = true;

    Xml1.onload = function (success: Boolean) {}

    {if (Success)}

    var nodes = this.firstChild.childNodes;

    for (i = 0; i < nodes.length; i ++) {}

    MyArray [i] = nodes [i].attributes.name;

    }

    Text1. Text = MyArray [2];  to check if the 'name' attribute is visible

    } else {}

    trace ("could not load the XML");

    }

    }

    Xml1.load ("icons.xml");

    Text1. Text = MyArray [2]; I commented on the first text to try to display it again, and the result is not DEFINED...

    the XML would look like this:

    icons. XML

    < icons >

    < name of icon = "icon1" / >

    < name of icon = "icon2" / >

    < name of icon = "icon3" / >

    < name of icon = "icon4" / >

    < / icons >

    Thank you

    I do not understand your problem.  Table fill with data.  If you expect this second "text1.text ="show another thing that 'no set', it won't happen as you wrote it. "  This line of code is run before the onLoad function (code execution does not wait for loading files).  You want only to deal with the processing of the data, once the onLoad function he treated in the table.

  • Problem with the size of ExtendedMap.xml

    Data Modeler 3 Production version.

    The logic model has about 70 of the entities and relationships, and about 6-7 fields by entity.
    Apart from the logic model, there is only one relational (Oracle 11 g if that's important) which is empty at the moment.

    ExtendedMap.xml takes about 7 MB in this configuration. It may not be a problem in itself, but it does not fit in our VCS ("too big").
    The question is: is this a normal size for this file or there is a problem with the design or something?

    I would like to know, if I can change the template in some way to solve this problem, before I asked an adjustment of parameters of SVN.

    Thanks in advance!

    You can remove it if there is no mapped relational model to logic. It will be restored on save next (small) and you can commit.

    Philippe

  • We get an error "there is a problem with the device' while trying to use it on the computer of Windows 8

    Sir... my model of computation used is ASUS Q500A and I also have the problem with my may even of them I also perform step u said in this forum, but may not work... my Windows I have used is windows 8. Please help me tnx

    Separated from -.

    https://answers.Microsoft.com/en-us/Windows/Forum/windows_8-hardware/getting-an-error-theres-a-problem-with-your-camera/9c494984-1178-4C3F-884c-80ac750d3fa6

    Hello

    Thanks for posting your query in Microsoft Community.

    This problem is usually caused due to hardware or driver related issues. I suggest you try to install the latest drivers for the camera on the Asus or Windows Update site and check if it helps.

    If the problem persists, then it would be better to contact Asus for more help on this issue. As this could be a problem with the hardware as well.

    Support from Asus: http://www.support.asus.com/

    Please do not hesitate to visit our Web site for any help with the Windows operating system.

  • Problems with the Web Service using XML in Flex

    Hello

    I use a ColdFusion CFC, which is configured to generate an XML string. It runs on ColdFusion MX 6.1 and is configured as a remote web service. I tested the call and it returns the string XML fine when it is called from another method of Flex unfounded. My problem is this simple Flex application to call the same function via a service web, I wrote below. I cannot get to the exit results, keeps showing as NULL. I can't use the HTTP of Flex appeal for remote access because I'm not under MX7. Does anyone know what is wrong with my code? BTW, I would do the work of cross - domain.xml file to call the cfc, let me know if you want to test and I can add your domain name. Thank you!

    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "absolute" >

    <! - set Web Service to get the XML data of course catalog - >
    < mx:WebService
    ID = "cd".
    "WSDL =" http://training.wonderware.com/components/courses.cfc?wsdl "
    Load = "CD.getCourseCatalogXML.Send ()" "
    showBusyCursor = "true" fault = "Alert.show (event.fault.message), 'Error' ' result =" cdResult (event) ">"
    < mx:operation name = "getCourseCatalogXML" resultFormat = "e4x" >
    < mx:request >
    < IDCalendrier > 3 < / IDCalendrier >
    < / mx:request >
    < / mx:operation >
    < / mx:WebService >

    < mx:Script >
    <! [CDATA]
    Import mx.controls.Alert;
    Import mx.rpc.events.ResultEvent;
    Import mx.rpc.events.FaultEvent;

    [Bindable]
    public var outputString:String

    public void cdResult(event:ResultEvent):void
    {
    outputString = event.result as String
    }
    []] >
    < / mx:Script >

    < mx:Canvas horizontalScrollPolicy = "off" verticalScrollPolicy = "off" >
    < mx:Text width = '100% ' paddingLeft = "4" paddingRight = paddingTop "4" = "4" >
    < mx:text > OUTPUT: {outputString} < / mx:text >
    < / mx:Text >
    < / mx:Canvas >

    < / mx:Application >

    Thank you very much! I do not have the notion that the HTTPService is indded just an HTTP call. So yes that it a much simpler way to call just ColdFusion to return the XML string to the application. No reason to use Flash Remoting or CFCS etc... and certainly not a web server. This made the turn that I called a HTTPService now what charges by coldfusion page that returns XML and bam, works well with e4x result etc... Thanks tracy!

  • Problems with Outlook, receiving and sending e-mail

    I have Windowsmail and outlook on my computer.  I can only receive e-mail from msnbc.com.  I was unable to block.  I was told outlook is not compatible with Vista and that I should delete it.  There is a site that I work with who require me to use their Outlook form.  When I try to send information, it says that I need to load Outlook.  I did and it doesn't work.  Any suggestions?  I have read suggestions by others on this site and none work.  I also contacted the server and they said it was a problem for microsoft and contact them

    Outlook 2003 and above are compatible Vista.

    Outlook:

     

    http://answers.Microsoft.com/en-us/Office/default.aspx

    Office at the above link forums

    http://answers.Microsoft.com/en-us/Office/ee861097.aspx

    Outlook Help Forums at the link above.

    They will help you with your Outlook questions when repost you in the Office Forums above.

    See you soon.

    Mick Murphy - Microsoft partner

  • Problems with HTTPService timeout and large XML

    Hello world!
    In my Flex application I fill a datagrid from an HTTPService to results.

    It works fine, but there is a problem: If the servlet that generates the XML code takes too long to return, the HTTPService will throw this error:

    Error #1090: XML parser failure: element is incorrect.

    This error seems to be random because it happens on 15-20% of calls to the servlet. And the worst: no help not set requestTimeout 10000 or -1.

    Can you tell me what is happening? Thanks for any help!

    Solved!
    You must manually correct the XML returned by the server with this function:

    public static void parseXML (event: ResultEvent, parentTag: String): XML
    {
    var xml: String = event.result.toString ();
    var endTagIndex: int = xml.indexOf("");
    var endTagLength: int = new String("").length;
    XML = xml.substring (0, endTagIndex + endTagLength);
    return of new XML (xml);
    }

  • Problems with Javascript &amp; amp; DW CS3?

    Hi guys, here this situation:

    I created an HTML element that contains a form (with a PHP POST action), ok, my code works very well on several websites, but when I used it in this case... There was a message: "method not implemented". I looked at everything, and I was able to detect that it is because my HTML code contains a file embedded SWF Flash simple at the end which works well, but is also an obstacle for the file PHP Action, which contains a small rutin (in javascript) to return to the page after sending the mail.

    If I did not explain myself clearly, I will draw a little diagram:


    (1) HTML (the user fills out the contact form)
    (2) using the POST method, he calls my PHP file and sends the email
    (3) after a PHP file sends the e-mail, must return to the previous page of HTML through a code of smmal of Javascript inside

    BUT... Here's the problem: he sends the customer mail with information, but then instead of redirect, it displays the error code "method not implemented"...


    I tried to temporarily remove the SWF embedded in the HTML code and... works great! It sends the email and redirects... so there is a problem, but don't know how to fix... I look back on DW8 and try. but before, I would like to know if there is no solution for DW CS3... there at - it?

    I would appreciate your answer, thanks in advance,


    Never mind!!! I detected the problem and fixed it. of the check and delete useless stats to the field HEAD declaring old routines Javascripts...

    Anyway thanks,

  • Problems with you answer and send emails

    Hello, I need to send important emails with attached previous emails but keeos convey this message so don't save it or send it!

    Windows Live Hotmail was not able to complete this application. Microsoft may contact you regarding any issue you are reporting.

    Please help me v.frustrated. Thank you Nathalie

    View all Windows Live and Hotmail questions in the appropriate forum found here:
    http://windowslivehelp.com/

  • Problems with Windows mail and sending attachments

    I use Windows Mail and my computer is running on Vista Home Premium.  If I try to send an email with attachment (any size, sometimes with very small files, but also of large files), it seems that the message has been sent.  It appears in the sent items, but it never really happens to recipients.  I even tried from sending me messages with attachments, and they never appear in my Inbox.  If I go to sent items and then click on it and will communicate the message reached the recipient with the attachment.  So strange.  What is going on.  It seems to be sent, but just diappears in space somewhere, acting as if they were sent, but who never reach the recipient

    My first guess is that its your antivirus software.  Look at www.oehelp.com/OETips.aspx#3 there are a number of anti-virus just don't work well in WinMail, so see if that helps at all.  For example, if you have active scanning emails (or even if not) outgoing messages could have been blocked, but why are they OK transmission is kind of weird.  I suppose it could have to do with the database, then you can try compacting and repairing the database (see www.oehelp.com/WMUtil/), but I doubt, it's going to do a lot.

    Steve

  • Problems with Windows Live Mail send and receive e-mails

    Hello

    I am running Windows 7 Home Premium and I used Windows Live Mail 2012 (WLM) for many years without any problems, and I prefer it much to Outlook.com. I have my own personal e-mail account and three other accounts available in WLM. I can send and receive emails from three other accounts, but my own account keeps giving the error message:

    Can't send or receive messages on behalf of Clive Read.
    Server error: 4402
    Server: 'https://mail.services.live.com/DeltaSync_v2.0.0/Sync.aspx '.
    Windows Live Mail error ID: 0x8DE00002

    That being said, I can actually send emails, but cannot receive them-weird!

    I spent several hours internet research solutions, including Microsoft pages, forums, etc and later of the end of "solutions" offered in 2013. Many of the suggestions I've tried, without success. I ran other controls have shown that initpki.dll is absent, but I don't know if it's possible causes and, if this is the case, my attempts to locate, re - save or download one have failed.

    My version of WLM doesn't have a "Tools" link, and I can't seem to find where the incoming and outgoing port settings. It gets really tedious, so I'd be grateful for all solutions to update to my problem and perhaps an explanation as to what may have caused it in the first place.

    Thanks in advance for your suggestions.

    Clive Read (UK)

    You are welcome and thank you for the comments

  • Problem with special characters loaded from XML

    I have a XML with elements that contain special characters (for example: n, N, a, A, etc.), when I load the code XML and do a Trace () the element responsible, I see that it is loaded correctly, but in the text field is not special characters. For example, in the XML file, I have the Bañostext, but in the field indicated text Baos.

    It is clear that in the text field consist of uppercase, lowercase, numbers, punctuation symbols, and basic Latin characters.

    I also tested with stop System.useCodePage = true in the code, but does not.

    Thanks for any help you can give me.

    Garchabig.

    PD: Sorry for the bad English, I'm Latino. -

    embed a font that contains the characters required.

  • Problem with the rule while the data is loading files

    Hello

    I'm having a problem trying to load data to an application that uses rules files. Load data files were from another application using the DATAEXPORT. I have two files for each entity. One is for the current year and one for next year. The source and target applications are different, so I do all the mapping using rule files.

    The data of the current year file contains data for CurrMonth:Dec & CurrYear. The following year data file contains data for Jan: Dec and the next. I made rules for each entity files load data into the application and has made the mapping when creating these rules files using set 12 months.

    The problem that I am facing is that I'm able to correctly load the following year in the target application, my rules file is the right month for each column mapping. But for the year underway, I have just 2 columns of data (whereas & CurrMonth = Nov) and so when I'm trying to load the data file using the rules file, it is to map the November and December months like January and February and charging at these months of FY11, which is false.

    I don't know how to solve this problem. The current year data file it will always change in terms of months then how can I modify the rules that he recognizes that the months are coming in and where to put the data.

    Please let me know your suggestions. Any help will be appreciated.

    Thank you!
    ~ Hervé

    PS ~ it was the same problem, I was faced with a few months back when I posted this question and I followed the advice in this post, but always faced to the question - DATAEXPORT and rules files

    Published by: Gwen on December 20, 2011 08:25

    Adella,
    We have faced a similar issue and we were able to solve it by sticking to these months dimension members (& currmonth: dec) and generate the header
    The export file created when paste us the dimension names in front of months on the export file
    Suppose that your export file is currmonth.txt and she Nov and Dec
    first line of your export file should look like this
    'Version' 'Year' 'Scenario' "XYZ" "123" "ABC" "Account", "Nov", "Dec".
    We have created a batch file to add this to the original export file, it looks like this
    Paste d "\0" Header.txt "D:\Hyperion\products\Essbase\EssbaseServer\app\xyz\123\currmonth.txt" > "D:\Hyperion\products\Essbase\EssbaseServer\app\xyz\121\currmonthchange.txt".

    Header.txt is a text file that it contains ("Version" "Year" "Scénario" "XYZ" "123" "ABC" "count")

    change your rules file so that it generates the header in your source (currmonthchange.txt)

    rulefile--> the properties of data source--> header--> data records source header--> recording containing the names of data filed charge (set 1)

    I hope this will solve your problem

  • Professional problem with windows update while running XP on a virtual machine...

    I am using Windows XP Professional with SP2 on a virtual machine... When I try to update windows... it takes me to Windows 7 purchase page after page of Windows Activation... Is this cz I am running Windows 7 in real time and XP in a VM... ??

    Hello

    Thank you for visiting the Microsoft answers community site. Your question of Windows 7 is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the forum Windows Virtual PC and XP Mode.

    http://social.technet.Microsoft.com/forums/en/w7itprovirt/threads

  • Problem with the keyboard while talking on the phone

    I can't use the keyboard on my phone while talking on the subject. Any keyboard comes up while talking on the phone.

    The keyboard appears as soon as I hang up. Help!

    Use the phone in safe mode, see if the same thing happens:

    http://talk.sonymobile.com/T5/FAQ/How-to-boot-your-phone-into-safe-mode/m-p/348008

Maybe you are looking for

  • Import of Toshiba Camileo H30

    I recently bought the camileo h30.I took a few record 1080 p video.I have windows vista Home premium.It shows the fine video of the media player.My problem is when I go to import the video into onethe Windows movie maker, the video project isaudio on

  • Problem with e1-531 fan Acer Aspire

    Hi, I have an acer aspire e1 - 531 for quite awhile now, but lately its been heating too much I had cleaned it, but it does nothing the fans to run so slow even if I have it on assets Recently, when I was playing in the bios I discovered that fans wo

  • SoundMax code 41 on samsung NP-X11B under Win XP SP3

    Hi, I have installed WinXp SP3 on a Samsung NP-X11B and installed all the drivers that I downloaded on the samsung website. Everything works well except when I installed the driver for his driver, I get an error code 41. After installing the driver,

  • Blackberry webworks streaming ability

    Hello: Can someone please tell me if there if the api audio is streaming icecast server binds cable?  I am able to use jwplayer for broadcast.  But the problem is that it works with only shoutcast. It does not work with icecast stream.  Please indica

  • Download and install Java on Windows 8

    I bought a digital download online, but for me to download things, they need to download me Java. So I tried to download, which worked, but I can't install because "Screen Smart Windows could not be reached to verify if this application works with yo