Displaying a PDF Returned from a Custom Service

I have been given a PDF Fillable Form(XFA).  I have added a button so that when the user clicks the button it passes the form data as xml to a URL (my custom web service).  The custom web service takes the data, renders a totally separate PDF and returns it in the response.
It all works fine, but the returned PDF opens in a separate window.  I would love to find a way to get the current window to "refresh" and show the newly composed PDF.
Is there a way to do this?  I am using LiveCycle Designer, but my web service is a completely custom Java servlet.
With Respect,
mattie

Firefox is downloading the pdf and opening it in Preview. Safari is displaying the pdf directly in the browser. As such, if Autosize was previously selected (which may be the default for Safari) it zooms in the pdf relative to the size of the new window (and the size of the new window is set by the size of the parent window). You can reset the view size of the pdf in Safari by secondary-clicking on the pdf (a two-finger tap if you have that option enabled on your MBP, or a ctrl-click) and selecting Actual Size. Once you select Actual Size (versus Autosize) that setting seems to be retained for subsequent pdfs. You can also select Open in Preview from the contextual menu, which will open it in Preview like Firefox does (but without downloading the file).
Hope this helps...

Similar Messages

  • Display a PDF returned as a base64 encoded clob from web service

    I'm trying to display a PDF document returned from a SOAP v1.1 web service. I'm able to return the XML into a collection using a process of type 'web service', but am struggling to display the document.
    This is the code I'm using to (attempt to) display the document, which doesn't return anything. If I exclude the clobbase642blob conversion an Adobe Reader pop-up appears, but I get an error message stating it is not a supported file type or the file has been damaged, which I would expect since it's a clob rather than a blob.
    DECLARE
      l_length    NUMBER;
      l_file_name VARCHAR2 (4000);
      l_file CLOB;
      l_blobfile BLOB;    
      l_ext VARCHAR2 (4000);
    BEGIN
      SELECT xtab."fileContent", xtab."fileName"
      INTO l_file, l_file_name
      FROM apex_collections c,
              XMLTable(XMLNAMESPACES(DEFAULT 'http://www.stellent.com/Payslip_Services/'),'//Payslip_Get_FileResponse/Payslip_Get_FileResult/downloadFile' passing xmltype001
                COLUMNS "fileContent" clob PATH 'fileContent'
                      , "fileName" PATH 'fileName'
              ) xtab
    where c.collection_name = 'P15_PAYSLIP_GET_FILE_RESULTS';
    l_blobfile := apex_web_service.clobbase642blob(l_file);
    l_length := DBMS_LOB.getlength(l_file);
      If INSTR (l_file_name, '.', -1, 1) > 0 then
          l_ext := SUBSTR (l_file_name, INSTR (l_file_name, '.', -1, 1) + 1);
      End if;
      IF (UPPER (l_ext) = 'PDF') THEN
        OWA_UTIL.mime_header ('application/pdf', FALSE);
      ELSIF (UPPER (l_ext) = 'DOC') THEN
        OWA_UTIL.mime_header ('application/msword', FALSE);
      ELSIF (UPPER (l_ext) = 'TXT') THEN
        OWA_UTIL.mime_header ('text/plain', FALSE);
      ELSIF (UPPER (l_ext) = 'HTML') THEN
        OWA_UTIL.mime_header ('text/html', FALSE);
      ELSE
        owa_util.mime_header('application/octet', FALSE );
      END IF;
      HTP.p ('Content-length: ' || l_length);
      HTP.p ( 'Content-Disposition: attachment; filename="' || l_file_name || '"' );
      OWA_UTIL.http_header_close;
      WPG_DOCLOAD.download_file (l_file);
    END;
    Apex 4.2.2
    Oracle 11g 11.2.0.1.0
    Any suggestions would be appreciated.
    Thanks,
    Graham

    What Adobe product is this a question for? This forum is for XML/API functionality for Adobe Connect. I'll move this question to the appropriate forum.

  • I am a customer Verizon customer of over ten years...I am notgettingany assistance from the customer service department. Since September I am being charged for a Samsung phone that I returned based on the process that verizon has set.return the defective

    turn my phone to send Verizon wireless and those instead of the stuff found. I'm not in charge $600 for the for the phone. I'll talk to multiple customer service reps and nothing has really been done about anything other then we'll keep looking or so for stretching it out. since September I've been dealing with thison a month-to-month basis they cut my services they reinstate me and tell me that they're going to knock off the reconnection charge as I have four lines. Unfortunately my main reason for this phone is my work emails which I need to do because I do work and to contact my mother who is 85 years old and I'm the sole caregiver. I don't know what else to do. I have spoken to a supervisor  by the name of William or Will oats in that he said he was going to look into it and was going to help me out. Never heard from him again- just original email to quiet me down. I've been sending him emails just about every day trying to make sure that I get my message across. Seems like Verizon Wireless really doesn't care about the long-term customers. Looking forward to hearing from someone that can help me with my plight.process is faulty for returns. You don't accept them in the stores because as one customer service rep stated you can't get your own employees to send the devices back. Now the responsibilities is on the customer the paying customer the one that keeps you alive. And it's not fair that I there's no way I can prove that I put it in the mailbox. So what are my next stepswhat is it that I need to do to clear up this charge of $600. It's about economy as $600 to me at this very point it's a lot of money. I've been your customer for 10 years I've got four lines I've given will my mothers telephone number home number..number but now she's got to sit by the phone to make sure that she picks up all the calls. And nobody can hear what I have to sayand nobody has been able throughout all these months and check your notes check your notes to see how many times I've called how many time you cut my services how many times you reinstated me and how many times that I spent an hour and a half to two hours on the phone going through this process. I think the stress level is to know thqt I did exactly what you asked...I am now paying the price for your faulty process I'm all I'm asking is review my account tell me what I did wrong I follow your procedure so I don't understand....to top it off...my wife hasa per diem job...and she too is affected by loosing out on work leads...
    as you can see, the cel is no longer a commodity. It's a way of life.
    PLease se call me at -----just remembered....I don't have a service line.

    I have a similar problem with my fathers service, it wasns't $600 but what is rightfully your money, you deserve it back, I wrote this complaint on the Consumer Affairs website:
    In August 2014, my son went to Target to get a new cell phone and was told his Unlimited Data would still be on his plan (he shared a line on his grandfathers account). Well it turned out that Target messed it up and my son immediately called Verizon to get it taken care of but they were not able to do anything about the lost unlimited data but the customer service rep did try to find the best offer for him. In the mean time Verizon was suppose to send him a new cell phone, they never sent it and he was without a phone so he took his business to another cell provider. Verizon DID charge him for the new service that they had spoke about. So when the new bill (Sept) came, the service he never used was on the bill and when we called to inquire about it we spoke to a Judy and told us we would be receiving a credit of the amount that was paid. Well, we got the next months bill (Oct) and still no credit, so called them again and spoke to a Nadine ** . She looked into the account and saw the amount that was paid and said she would submit it again for a credit and she would get back to me in 2 days, no call back.
    The next bill (Nov) came and no credit again, call again but didn't get the girls name and she put me on hold to look over the previous conversations. She said she sees in the records about the credit and said it takes a while to get it thru the supervisor authorization and she would put it in as a "rush priority". On Dec. 5th my dad's cell was turned off, so I call yet again to Verizon, and explain the whole story to them again. This girl explained to me that the request was not put in correctly and that she would submit it right this time, they even turned the cell back on for him.
    So here we are today, Dec. 30, 2014, I get the bill...NO CREDIT, call up and get a gentleman in billing, explain this whole thing again and he transferred me over to customer service where I spoke to a Jordan and yet again told him the story. By this time I was fuming, 3 almost 4 months of calling for this credit and he looks into the account and tells me there is nothing that states there is a credit so all the other customer service reps see it but now it is gone. He said he can only issue me a $25 credit to the bill, not even close to what the bill was that I paid. At this point I wanted to speak to a Supervisor and even that was a problem.
    He did call me back after my phone died. He put me on hold again to speak to a supervisor himself and said that he can only offer me $100 credit for all my troubles for the past few months. I took the $100 credit because Jordan said if I spoke to the supervisor, the $100 credit might not be an offer anymore so it was either take it or leave it. Now where I stand, they get away with NOT giving the credit due to customers. I am done with Verizon.
    today being March 12, 2015, he FINALLY got the said $100 credit...but because of their delay, he service was shut off and I refuse to pay the reconnection fee due to their neglect of a customer of over ten years. My father's service will NO longer be with a place that has NO VALUE in customer service....Verizon robs their customers anyway they can.

  • Display a PDF file from local drive

    Hi,
    I would like to display a pdf file that is actually stored on the portal server hard drive.
    What I have tried to do is link an iFrame element to the url of the file: "D:
    MyFolder
    myFile.pdf"
    But it doesn't work. I have the following error when trying to do that:
    com.sap.tc.webdynpro.services.exceptions.InvalidUrlRuntimeException: Invalid URL=D:/MyFolder/myFile.pdf
    Does this means that iFrame can only display http URLs ? What are the other ways to easily display pdf files ?? I'am stuck with that problem and can't find any other solution.
    I also tried with "servletResponse.getOutputStream().write(fileByteContent);" but the problem is that I am not in a PAR application, and I don't have the servletResponse element and don't know how to get it.
    Thanks for your help.
    Thibault Schalck

    Hi,
       You can not access the .pdf file using the nornal path (c:
    ), use the following code to open the pdf in ur iframe, this will work i used it in my application.
    String sFileName =
    strCampCodeVal"_"nReqIdVal+".pdf";
    String sFile =
    "C:
    SBLI
    BCP
    barcode_files
    "+sFileName;
    File fFile = new File(sFile);
         if ( fFile == null )
             System.out.println("System can not download the
                                     file at this time. Please try again later.");
                  return;
    //Checking the file for existence
         if ( !fFile.exists() || !fFile.canRead() )
             System.out.println("You have specified an
                       invalid file to download. Please check and try
                        again.");
             return;
    //set the content type its important , try with applicatio/pdf also
         res.setContentType("application/force-download");
    //seting the header
         res.setHeader("Content-disposition",
    "attachment;filename=" + sFileName);
         res.setHeader("Cache-control", "must-revalidate");
         ServletOutputStream sosCur = res.getOutputStream();;
    //reading the in and writing the stream
         BufferedInputStream bisFile = null;
              try
                   byte [] bBuffer = new byte[4096];
                   bisFile = new BufferedInputStream(new
                                                    FileInputStream(fFile));
                   int nBytes = -1;
                              while( (nBytes = bisFile.read(bBuffer, 0, 4096))!=-1 )
                       sosCur.write(bBuffer, 0, nBytes);
              catch(Exception ex){
    This will resove your issue.All the best..
    Regards..
    krishna..

  • I have bogus charges on my bank account. How can I get help from Itunes customer service? Been in an insane loop here.

    There are two charges on my bank account that I did not make. When I look at my ITunes account there are no purchases showing. So why is I tunes charging my account for a total of $17.00. You would think if someone was using my account, there would be a record on my Itunes account. Can't get any service fron Itunes about this problem. HELP!

    FOR ASSISTANCE WITH ORDERS - iTUNES STORE CUSTOMER SERVICE
    For assistance with billing questions or other order inquiries, please refer to our online support page by clicking here: http://www.apple.com/support/itunes/store/. If you cannot find the answers you are seeking in our robust knowledge base, you can contact us by visiting the following URL http://www.apple.com/support/itunes/store/, clicking on the appropriate Customer Service topic, then using the contact button or email form at the bottom of the page. Responses to emails will be provided as soon as possible.
    Phone: 800-275-2273 How to reach a live person: Press 0 four times
    Hours of Operation: Mon-Fri: 9am-5pm ET
    Email: mailto:[email protected]
    How to report an issue with Your iTunes Store purchase
    http://support.apple.com/kb/HT1933
    https://reportaproblem.apple.com/
    iTunes Purchase Problems: How to Report a Problem to iTunes Support
    http://tinyurl.com/7tscpa7
    iOS: Troubleshooting applications purchased from the App Store
    http://support.apple.com/kb/TS1702?viewlocale=en_US&locale=en_US
    How to Get a Refund from the App Store
    http://gizmodo.com/5886683/how-to-get-a-refund-from-the-app-store
    Getting Refunds for your iTunes Store Purchases
    http://www.labnol.org/software/itunes-app-store-refunds/13838/
    Canceling a Digital Subscription
    http://gadgetwise.blogs.nytimes.com/2011/10/14/qa-canceling-a-digital-subscripti on/
     Cheers, Tom

  • Can we execute an idoc script from a custom service?

    Is it possible to execute an idoc script while executing a custom service?
    -Pratap

    There are several ways to execute iDocScript from Java, but in this quick example we will use a PageMerger object. There are several ways to get ahold of a PageMerger object. If you are executing in a context where a service object is readily available you may be able to get a PageMerger object reference with code like this:
    PageMerger pm = m_service.m_pageMerger;
    If that doesn't work for you I would try something like:
    PageMerger pm = new PageMerger(databinder, executioncontext);
    Now that you have your merger object you can execute all kinds of iDocScript code, an example of which might be:
    pm.evaluateScript("<$lc(\"wwMyString\")$>");

  • Outrageous incompetence from BT Customer Service.

    After spending hours and hours on the phone to BT over the past month, I am at the end of my tether.
    This morning £136.50 has been taken from my account for a number that was from our old address that we kept a call diversion on that BT cancelled (by mistake in early September and has not been rectified and still does not work).
    Also, a bill for £211.60 for new number at new address whcih includes £130 for installing new line after BT disconnected the line BY MISTAKE.
    Very helpful staff on the phone have TWICE put me on hold this morning and never come back.
    The customer service is unbelievable. How can they repeatedly get it this wrong?
    I have been patient until now but am seriously losing it now. I need some assurances from somebody very quickly and the issues resolved.

    Hi paulinegod,
    Thanks for posting and welcome to the forum!
    I'm really sorry for the mix up with this.  I can help sort everything out from here.  Click on my username and under the section "about me" you'll see the link to get in touch with us.
    Whenever we've received your details we'll take it from there.
    Thanks a million,
    Robbie
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry that we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Trying to download a game purchase (Company App Store. Have taken advice from Aspyr Customer Service to repair Disk Permissions, but still download aborts...any suggestions?

    Trying to download game purchase (Company of Heroes) from App Store. Failed in mid-download several times. Aspyr Customer Services have shown me how to repair Disk Permissions, but still won't download... any suggestions, please?

    Thanks for suggestions. I did use Energy Saver settings, and I did check downloading another app. Last night I tried another download of Company of Heroes, got up to 4GB before bedtime, woke up this morning to find another "error has occurred" message. Extremely frustrating. Have used most of my monthly data allowance on abortive downloads. Maybe Apple made a mistake in relying on huge data downloads. DVDs more reliable!

  • How to display the report output from a customized Oracle Form button

    Hi Gurus
    I developed a customized oracle form and one customized report. I want to run report from oracle customized form, for this i use one button to submit concurrent request for request.
    its successfully submitted and i can view output by using View ----> Request --------> Find -------------> Output...
    But problem is that how can i view output by using button not doing all steps to view output.
    Regards,

    Hi Haq Nawaz,
    Refer Here
    Regrads,
    Guru

  • Display a PDF Document from a standard transacction

    Hi.
    I need to display a PDF document located in a server outside SAP. The idea is to implement a menu exit and add a new button to a standard transaction. When the user press the new button a PDF document must be displayed.
    I want to know if this solution is possible and if you know any function in SAP to display a PDF document.
    Thanks.
    Diana.

    hi,
    chk out this link..here you can find various ways in displaying PDF..
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=how%20to%20display%20pdf&cat=sdn_all
    thanks
    jaideep
    *reward points if useful..

  • Problem in getting complete display in pdf document from spool

    Hi,
    I have a report1 which calls another report2 in the background. The report2 which is run in the background produces some output and thus generated a spool.
    Report1 then gets the spool number generated from report2 and converts it to a pdf document .
    The problem is that the complete width of data in spool is not coming on pdf.
    Forex , if the spool contains following records:
    1. AAAAAAAABBBBBBBBBBCCCCCCCCCCCCCDDDDDDDDDDDDD
    2. SSSSSSSSEEEEEEEEEETTTTTTTTTTTTTTTTTUUUUUUUUUUUUU
    when this is converted to pdf, the pdf doc will display data as:
    1. AAAAAAAABBBBBBBB
    2. SSSSSSSSEEEEEEEE
    Complete width is not coming in the pdf document.
    Any ideas on how to resolve this issue? Can this be handled by ABAP or BASIS team needs to be include to solve this..All ideas are welcome...
    Harmeet Singh.

    Hi,
        Im also facing the same problem of truncation.
         can someone please reply back if there's a solution ?
    Thanks
    Sourav

  • FireFox 33.1 will not display the PDF file from Bank online site after 33.1

    I asked this question in an unrelated support ticket so I want to give more detail here. I have tried uninstalling Adobe reader and reinstalling it and it did not help. This was working before with all the exact same addins I had before. I called the Bank and asked if they had any problems and they say no. I can go to the Firefox PDF display for this file and click on download the PDF then double click it in Windows explorer and Adobe reader comes up and displays the file just fine. Don't mind doing that for now. What happens is the bank loads the file then Adobe reader displays with a white screen and a little circle going round and round, like a video is trying to play, and it just sits there forever. I never see the file contents. Anyway I hope your have a good of a day as I am and I know it get better. Thanks Firefox programmers for such a wonderful program.
    Update: While I was writing this I remembered to go into Firefox options, then Applications, and wouldn't you know it, a PDF document was set to "Preview in Firefox". I changed that to Adobe reader and now it works just fine. Guess there's something wrong with the Preview code in Firefox. So I'm happy now. Hope this helps someone.

    Yes, the built-in PDF viewer is a work in progress. Glad you found a workaround, or got back to your preferred configuration, depending on how you look at it.

  • Verizon Fios Slow internet no support from from verizon customer services

    It looks like nobody seems to care bout your problem as long as they have your money.
    Here I'm almost a year with verizon FIOS internet and cable. 
    Has not been able to enjoy for a whole month,  Been calling verizon for resolution almost every single night.   Verizon send disgrunted technician to your house that do nothing, only check cable and signal when it has been stated on their system that it has been checked at least 60 times in the last 10 month.
    You request them to send somebody to check your ONT and they seems to ignore your request.
    when you try to cancel they give you the run around even if you are not in a contract as ME.    I'm not in a 1 year or 2 year contract.  What I'm recieving from verizon cannot be called a service.   Why is so difficult for me to cancel this horrendous nightmare so i can go to provider who want my money.    
    I'm Paying for 50/20 internet speed
    my download speed is 1.2 megabit to megabit on my lucky nights.      My upload speed is from 3-7 megabit never been higher than 10 megabit

    It looks like nobody seems to care bout your problem as long as they have your money.
    Here I'm almost a year with verizon FIOS internet and cable. 
    Has not been able to enjoy for a whole month,  Been calling verizon for resolution almost every single night.   Verizon send disgrunted technician to your house that do nothing, only check cable and signal when it has been stated on their system that it has been checked at least 60 times in the last 10 month.
    You request them to send somebody to check your ONT and they seems to ignore your request.
    when you try to cancel they give you the run around even if you are not in a contract as ME.    I'm not in a 1 year or 2 year contract.  What I'm recieving from verizon cannot be called a service.   Why is so difficult for me to cancel this horrendous nightmare so i can go to provider who want my money.    
    I'm Paying for 50/20 internet speed
    my download speed is 1.2 megabit to megabit on my lucky nights.      My upload speed is from 3-7 megabit never been higher than 10 megabit

  • How to display some data fetched from a Custom assembly?

    Here's my simplified scenario.
    I have a small .net library that connects to a database, fetches some data and does a bit processing.
    In an SSRS report, I am able to reference the assembly and can call a methods that returns a string list (for instance). It works just fine with appropriate permissions set (both in VS and Report Server).
    Now that I have the string list, how do I display it in some kind of a list? Is it possible?
    Thanks in advance for any help.

    Hi there,
    You could convert the list to a dataset and use the data table or list control to display.
    http://technet.microsoft.com/en-us/library/ms152917.aspx
    cheers,
    Andrew
    Andrew Sears, T4G Limited, http://www.performancepointing.com

  • The format of XML file returned from web service

    Hi everyone,
    My web service (build in asp.net 2.0 with C#) returns the
    following xml file which is not what I want.
    <Root>
    <Root2>
    <Person> .... </Person>
    <Person> .... </Person>
    <Person> .... </Person>
    </Root2>
    </Root>
    But I want my web service to return the following xml file.
    How can I get the following xml file instead of the above xml file
    ? Thanks.
    <Root>
    <Person> .... </Person>
    <Person> .... </Person>
    <Person> .... </Person>
    </Root>

    Thanks for everyone's reply!
    Sorry, I don't know where to set resultFormat="e4x". Below is
    my code. And LINE 111 gives error. And the error message is below.
    And the xml returned from the web service is below.
    Error: Error #2093: The Proxy class does not implement
    getDescendants. It must be overridden by a subclass.
    at Error$/throwError()
    at flash.utils::Proxy/
    http://www.adobe.com/2006/actionscript/flash/proxy::getDescendants()
    at
    LogIn/loginHandler()[P:\JIMMY-FLEX\Flex_LogIn\LogIn.mxml:58]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    mx.rpc::AbstractService/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\A bstractService.as:232]
    at mx.rpc::AbstractOperation/
    http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\3.0.x\frameworks\pro jects\rpc\src\mx\rpc\AbstractOperation.as:193
    at mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::resultHandler()[E:\dev\3.0.x\frameworks\projec ts\rpc\src\mx\rpc\AbstractInvoker.as:191
    at
    mx.rpc::Responder/result()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Responder.as:4 1]
    at
    mx.rpc::AsyncRequest/acknowledge()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncR equest.as:74]
    at
    DirectHTTPMessageResponder/completeHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\ messaging\channels\DirectHTTPChannel.as:381]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="100%" height="100%" xmlns:ns1="*">
    <mx:Script>
    <![CDATA[
    import mx.rpc.events.ResultEvent;
    namespace FaciNS = "
    http://FaciNet.com/";
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.soap.WebService;
    //public var __xmlResult:XML;
    public var ws:WebService;
    public function Log_In(UN:String, PW:String):void
    ws.Login(UN, PW);
    public function getLoginData():void {
    loadWSDL();
    Log_In(UN.text, PW.text);
    public function loadWSDL():void
    ws = new mx.rpc.soap.WebService();
    ws.wsdl = "
    http://localhost:50779/VS2008_LogIn/Service.asmx?wsdl"
    ws.useProxy = false;
    ws.addEventListener("fault", faultHandler);
    ws.addEventListener("result", loginHandler);
    ws.loadWSDL();
    public function loginHandler(e:ResultEvent):void {
    var wkSouID:String = e.result[0]..SouID; // LINE 111
    trace(wkSouID);
    public function faultHandler(event:FaultEvent):void
    dispatchEvent(new Event("Error"));
    public function checkUser(UName:String, PWord:String):void {
    getLoginData();
    ]]>
    </mx:Script>
    <mx:Panel id="loginPanel" horizontalScrollPolicy="off"
    verticalScrollPolicy="off" width="400" height="200" x="97"
    y="66">
    <mx:Form id="loginForm" width="100%" height="100%">
    <mx:FormItem label="Username:" color="red">
    <mx:TextInput id="UN" />
    </mx:FormItem>
    <mx:FormItem label="Password:" color="red">
    <mx:TextInput id="PW"/>
    </mx:FormItem>
    </mx:Form>
    <mx:ControlBar>
    <mx:Spacer width="100%" id="spacer1"/>
    <mx:Button label="Login" id="loginButton"
    click="checkUser(UN.text, PW.text)" />
    </mx:ControlBar>
    </mx:Panel>
    </mx:Canvas>
    <?xml version="1.0" encoding="utf-8" ?>
    - <ArrayOfLogIn xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="
    http://www.w3.org/2001/XMLSchema"
    xmlns="
    http://tempuri.org/">
    - <LogIn>
    <SouID>2</SouID>
    <LogInUserID>3</LogInUserID>
    <LogInUserName>samlam</LogInUserName>
    <Password>abc123</Password>
    <DialectID>4</DialectID>
    <CreatedByUserID>5</CreatedByUserID>
    <UpdatedByUserID>5</UpdatedByUserID>
    </LogIn>
    - <LogIn>
    <SouID>3</SouID>
    <LogInUserID>4</LogInUserID>
    <LogInUserName>samlam</LogInUserName>
    <Password>abc123</Password>
    <DialectID>4</DialectID>
    <CreatedByUserID>5</CreatedByUserID>
    <UpdatedByUserID>5</UpdatedByUserID>
    </LogIn>
    </ArrayOfLogIn>

Maybe you are looking for