Calling functions from SOAP webservice. Can't access webservice functions.

Hi flex gurus,
I am quite new to flex. I am working on an flex application where I am trying to remotely invoke a SOAP webservice which is a wsdl file from Adobe flex 4.6.
I have authenticated the webservice(Basic Authentication Done) and got access to wsdl but I am unable to call the functions in it. I just want to pass the username and password for the user login to the service function which will give me the data useful for my application, but nothing is returned when the webservice function is called.
I am totally blocked at this point. Please help me.
Thanks in advance.

Below is my code snippet. But nothing is returned from th service, what is the problem???
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark" title="CheckWS" >
    <fx:Script>
        <![CDATA[
            import flash.net.drm.AuthenticationMethod;
            import mx.collections.ArrayCollection;
            import mx.messaging.messages.SOAPMessage;
            import mx.rpc.AsyncToken;
            import mx.rpc.events.FaultEvent;
            import mx.rpc.events.ResultEvent;
            import mx.rpc.http.HTTPService;
            import mx.rpc.soap.AbstractWebService;
            import mx.rpc.soap.Operation;
            import mx.rpc.soap.SOAPFault;
            import mx.rpc.soap.SOAPHeader;
            import mx.rpc.soap.SOAPResult;
            import mx.rpc.soap.WebService;
            import mx.rpc.wsdl.WSDLBinding;
            import mx.utils.Base64Encoder;
            public var resultdata:String;
            private function send_data(service:mx.rpc.http.HTTPService):void {
                var encoder:Base64Encoder = new Base64Encoder();           
                encoder.insertNewLines = false;           
                encoder.encode("auth_usrname:auth_pswd");
                service.headers = {Authorization:"Basic " + encoder.toString()};
                service.send();
            //protected function soapWS_resultHandler(event:ResultEvent):void
                // TODO Auto-generated method stub
                /* var i:int;
                var webresult:String=event.result.toString();
                i = 0; */
                /* var i:int;
                resultdata = event.result.toString();
                i = 0;
        ]]>
    </fx:Script>
    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
        <s:HTTPService id="soapWS"
                       url="My_Web_URL?wsdl" result="soapWS_resultHandler(event)" resultFormat="xml" useProxy="false" method="POST">
            <s:request xmlns="">
                <Username>{username.text}</Username>
                <Password>{password.text}</Password>
            </s:request>
            <s:result >
                <![CDATA[
                    var i:int;
                    dgUserRequest.visible = true;
                    var obj:Object = new Object();
                    obj = event.result;
                //    dgUserRequest.dataProvider = event.result.toString();
                //    var str:String = new String();
                    resultdata = obj.toString();
                    i = 0;
                ]]>                                                       
            </s:result>
        </s:HTTPService>
    </fx:Declarations>
    <s:Form x="20" y="10" width="100%">
        <s:FormItem color="blue">
            <s:Label text="Username" />    
            <s:TextInput id="username"/>
        </s:FormItem>
        <s:FormItem color="blue">
            <s:Label text="Password" />    
            <s:TextInput id="password"/>    
        </s:FormItem>
        <s:FormItem color="yellow">
            <s:Button label="Submit" click="send_data(soapWS)"/>
        </s:FormItem>
    </s:Form>
    <s:DataGrid id="dgUserRequest" x="20" y="300"
                 dataProvider="{resultdata}" width="100%">
        <s:columns>
            <s:ArrayList>
                <s:GridColumn dataField="password" headerText="Password" />
                <s:GridColumn dataField="username" headerText="User Name"/>
            </s:ArrayList>
        </s:columns>
    </s:DataGrid>
</s:View>

Similar Messages

  • HT1766 I deleted some phone records (call numbers, dates) & texts. Can I access them from back-up without restoring the phone.  Don't want to alter what I have, just find what I later deleted

    I deleted some phone records (call numbers, dates) & texts. Can I access  them from back-up without restoring the phone.  Don't want to alter what I have, just find what I later deleted

    Without "pretending" to be yourself on the other phone (change settings) there's nothing else you can do.
    iOS devices are meant to be single user and can't view iCloud.com the same way a Mac or PC can do.
    You need to find a desktop or laptop machine (Mac or PC) to log in at iCloud.

  • From CS4 Premiere, can't access Media Encoder

    Yes I've un-installed Premiere and then re-installed.  However I can not get past a message "Adobe Media Encoder CS4 has stoppe working."  Not good.  I have accessed Encoder via the "programs" file to see what would occure, same results.   Of all things, I have a video that has to be completed by tommorrow afternoon.  Any advise?  The people who sold me the system are no help.
    Chuck

    Harm,
    ? I don't know what else to say.? The system was working fine until I downloaded the recent Premiere update.? That was too soon for the Matrox capture card, thus I had to go back to 4.0 and await Matrox's release of the new drivers.? Now, I can't get Encoder to function.? I just get the "stopped worked" message regardless of what file I'm trying to encode.? I have reloaded premiere from my CS4 disc which reloads, it appears, Media Encoder with it.? I dont' know what else to include here.
    Chuck

  • My MacBook Pro randomly disconnects from Safari and can only access it after I restart my computer...What is wrong? and how do I fix it?

    I restored my MBP to factory thinking that would help...NOPE! I spend a great portion of my day on the web, networking for my writing, what can I do...getting desparate.

    While I'm using Safari, whatever site I'm on...freezes, it just locks and won't refresh or do anything. I'm unable to redirect to anyother links or sites. At this moment I have to close Safari and restart my computer to get my internet to work proper again for a short while. I am on a wireless network. Everything worked great with NO problems for the past year then about 3 weeks ago I started having these issues. I've never used anything but Safari. My GMAIL also went funky at the same time and wouldn't display properly. Since I restored my MBP, my GMAIL is working again, but the internet still freezes. When it freezes, my airport still shows full connection.

  • For calling cobol from java, how can i add  cobal bin directory to PATH

    Hi all,
    When i am testing my Algorithm using JUNIT i am getting this Exception ,Can any one tell me What this exact Error.
    Exception in thread "CobolThread 1" java.lang.UnsatisfiedLinkError: no cbljvm_sun in java.library.path
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1734)
         at java.lang.Runtime.loadLibrary0(Runtime.java:823)
         at java.lang.System.loadLibrary(System.java:1028)
         at com.microfocus.cobol.RuntimeSystem.<clinit>(Unknown Source)
         at com.splwg.base.support.cobol.host.CobolThread.run(CobolThread.java:30)
    Thanks&Regards
    sivaram

    i overcome the above exception by seting microfocus bin in classpath
    But i am getting one more error.pls help to resolve this issue
    Exception in thread "CobolThread 1" com.splwg.shared.common.LoggedException: Unable to load class CIPZMEMJ. Return code: 2
    - 2011-09-07 12:51:52,111 [CobolThread 1] ERROR (cobol.host.CIPZMEMJ) Unable to load class CIPZMEMJ. Return code: 2
    com.splwg.shared.common.LoggedException: Unable to load class CIPZMEMJ. Return code: 2
         at com.splwg.shared.common.LoggedException.raised(LoggedException.java:65)
         at com.splwg.base.support.cobol.host.CIPZMEMJ.checkInitialized(CIPZMEMJ.java:36)
         at com.splwg.base.support.cobol.host.CIPZMEMJ.touchToCobol(CIPZMEMJ.java:46)
         at com.splwg.base.support.cobol.host.CobolThread.run(CobolThread.java:34)
         at com.splwg.shared.common.LoggedException.raised(LoggedException.java:65)
         at com.splwg.base.support.cobol.host.CIPZMEMJ.checkInitialized(CIPZMEMJ.java:36)
         at com.splwg.base.support.cobol.host.CIPZMEMJ.touchToCobol(CIPZMEMJ.java:46)
         at com.splwg.base.support.cobol.host.CobolThread.run(CobolThread.java:34)

  • I Copied iPhoto library from old computer, can't access in new one

    I am a moving my data from an old Mac where I was using iPhoto 6. This computer is running iLife 08. When I try to open my old iPhoto library (which has now been copied onto my new hard drive) I press Option when opening iPhoto, and try to choose my old library, it is grayed out. What else should I be doing?

    I am adding some more information: I have copied the entire library folder straight onto the new HD, I have every file, including the Library6.iPhoto to make sure I would keep the albums and calendars, etc. (a couple of yearas ago I had to recreate a library since I had not backed up, so I learned my lesson the hard way). What's should I try next?

  • Can't access old ver. 9, 11 & 13 clips after Windows upgrade

    In Sept. 2014 I downloaded PE 13 from B&H, worked fine and was able to access old PE9 & PE11 clips.  In Dec. 2014 had problems with Wind. 7 Home Ed. and had to upgrade to 8.1 (decided on Pro).  Installed 8.1 Pro end of Dec. 2014 and bought PE 13 DVD from B&H to reinstall after I backed up my hard drive.  Problem after install of 8/1 Pro and installing PE13 from DVD I can't access and restore old clips from 9, 11 & 13.  Tried everything I can think of....any suggestions PLEASE!

    Very good, I completely understand.  Please understand "I am not a computer geek!"
    With the old computer system, you have Premiere Elements 9, 11, and 13 projects. And, you import media into each and see thumbnails for each of your imports in the project media area of the program (in version 11 and 13, called Project Assets).  CORRECT!  Please as we go forward I have the PE 13 that was downloaded from B&H and worked perfectly with my previous assets in PE 9 & 11.
    When you go to open a project in one of these programs and go to the project media area, do the source media thumbnails still show as before with image in the thumbnail? Or does the thumbnail have a display of circular arrows? If the present as before, can you drag the file from the project media area to the Timeline? If you cannot, it that the problem? NO!  (First info is when I set up my new PE 13 after copying all data to a 1T desk drive and loaded Windows 8.1 Pro to replace my Windows 7 Home Edition, I set up the PE 13 and used 64 bit as suggested.)  NOW...When I locate my previous Project Assets on the 1T drive they show as "red blocks" with a play arrow in them where previously were thumbnails, but I can't retrieve them.  As such there is nothing to add to the timeline.  Last night I added to the NEW PE 13 a 22 min program I'm working on.  I have all those assets, thumbnails and everything is working as wonderfully as it did in 9, 11 and downloaded 13.
    Now in response to a previous question you asked:
    1. When you open Premiere Elements 13 Expert workspace, go to Publish+Share/Computer/QuickTime, do you see a list of presets when you explore
    the Presets" field there?  NO.... I can get to /Computer but there is no QuickTime there!  I did download QuickTime yesterday after your suggestion.
    2. You wrote
    Restarted PE13 and received the message "The selected file cannot be played becuse your system does not have the required compresser/decompresser (codec) installed.
    Where are you getting the selected file---- from Premiere Elements 13 Expert workspace Project Assets to where it was imported originally from a hard drive save location?
    Or other? What is the specific full name of one of these files that is giving the error message?
    With everything I've been trying, I'll have to recreate this series of events to answer directly.
    When you did the switch from Windows 7 Home to Windows 8.1, did you go 64 bit to 64 bit or 32 bit to 64 bit in operating system?  Help me with a way to determine what the bit was on 9 & 11!
    Were two separate computers involved or did you manage to change the operating all on one computer?  All on one Computer
    The major focus for me right now is to make sure I know what file triggers the ".....not have the required compressoer/decompressor (codec)"? And to know that
    you are in the Premiere Elements 13 Editor and not the Organizer 13 workspace.  Help me understand!!!!  I know the difference between "Add Media", "Project Assets", "Organizer", "Editor" and "Workspace".  But "Project Assets" and "Workspace" are part of "Editor", so I don't understand your question.
    WolcottVideo
        Can't access old ver. 9, 11 & 13 clips after Windows upgrade
        created by A.T. Romano in Premiere Elements - View the full discussion
    WolcottVideo (Mike Bruce)
    Thanks for the replies.
    My communications are in the threads or via Adobe Forums private message. The thread communication is preferred since then all share, and learn.
    Please try to reply to the post 4 questions or use the Adobe Forums private message system to send me a private message. To do the latter, click on my Adobe ID at the top of any of my replies in your thread. That should bring up my profile. Click on the orange envelope message icon to the right of what you see in order to set up and send your email to me directly. No one but you and I see the Adobe private message communications.
    Here is a basic description of where the details between us need to be confirmed...
    With the old computer system, you have Premiere Elements 9, 11, and 13 projects. And, you import media into each and see thumbnails for each of your imports in the project media area of the program (in version 11 and 13, called Project Assets).
    When you go to open a project in one of these programs and go to the project media area, do the source media thumbnails still show as before with image in the thumbnail? Or does the thumbnail have a display of circular arrows? If the present as before, can you drag the file from the project media area to the Timeline? If you cannot, it that the problem?
    We will be watching for your reply.
    ATR
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7087876#7087876 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7087876#7087876
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"      
    Start a new discussion in Premiere Elements by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • How do I remove my caller id from my samsung convoy phone so that the person I call does not see my name?

    How do I remove my caller id from my samsung convoy phone so that the person I call does not see my name?

    MojaveMoon's solution will work if there is only one person you want to block your ID from; if you want to block your caller ID from everyone, you can go to your account online, go to Change Features, and scroll down till you see Caller ID block.  Instructions say that once this is activated, you can dial *82 before any # you WANT to display your number to, but all others will be blocked.
    If you are on a Family share plan, the account owner needs to log in and choose your line to activate this feature.

  • Call phone from app

    Call phone from app
    How can I call phone number from my app. I use adobe flash cs 5.5 and actionscript 3.0

    I can do that with javascript.
    Can some help me to convert this code in actionscript???

  • Calling Bapi from Dot Net

    Hi All,
    We are Trying to upload Bapi's From Dot Net.
    When we are uploading Sales Order upload i will get this error ""ERROR: Sales document type DG-1 is not defined"" ,But If i Call Again It is not giving the any error and simply its updating the SAP data base.Not only Sales Order upload but Customer Master upload also First time iam getting :"" Invalid form of address text"" This Error...After Second Exectuion I am getting Sucess Message.
    Why My Bapi Call is Not Sucess for First Call and why it is Getting sucess in Second Exection When i am calling bapi from .Net
    how can i solve my Problem?
    Thank you,
    Madhu
    Edited by: madhubabu rao on Oct 24, 2008 8:20 AM

    Hello,
           Refer to the below Thread & Link respectively.
    Re: Call BAPI WS from .NET
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/12f6d390-0201-0010-e18d-cdb4554a9e75
    Thought it might give you some inputs.
    Thanks and Regards,
    Venkat Phani Prasad Konduri

  • Dynamic Invocation: Error The SOAP PA receives a SOAP Fault from SOAP serve

    Hi All,
    I am trying to run the sample code "Dynamic Invocation of Oracle9i Web Services using Oracle UDDI registry"
    I was able to run the web services, publish them, and inquiry them using local UDDI registry.
    However, while invoking any method provided by the web services using the inovk method I get the following error
    oracle.j2ee.ws.client.WebServiceProxyException: Invocation failed 5,100: The SOAP PA receives a SOAP Fault from SOAP server
    Can anybody help me please?
    Regards,
    S.Al Shamsi

    It looks like the problem is occuring on the server side. I guess you have included the stacktrace from the client, can you get hold of the server side stacktrace?

  • Calling Serializer from Java

    Hi,
    I am calling xsql from Java.
    Can I set FOPserializer with help of oraclesql like i can set other attribute of xsql.
    e.g
    OracleXMLQuery ors = new OracleXMLQuery(conn, selectStmt);
                   ors.setRaiseNoRowsException(false);
    ors.setSkipRows(skipRows);
    ors.setMaxRows(maxRows);
    an example would be helpful.
    Thanks in advance
    Raju

    The FOPSerializer (and the concept of serializers in general) is a feature of the XSQL Pages Framework. Your code example here is using the XML SQL Utility's OracleXMLQuery class. To use XSQL programmatically, you should use the oracle.xml.xsql.XSQLRequest class, documented in the XSQL Online Documentation
    hope this helps.

  • Can't access iCloud backup

    My iCloud shows 4.8gb of storage taken for my iPhone backup.  However, I changed my password a week ago and it deleted all my contacts and whatnot.  Now when I plug my iPhone into iTunes or attempt to restore from iCloud, I can't access that backup at all.  It says none are available.  How can I get my data/information back?

    You can see any of the content of the backup without restoring it to your device, and as you indicated, the only option in settings is to delete it.  It should contain your camera roll photos, which are included by default.  If they didn't restore, about all you can do is try restoring the backup again.

  • Still can't access Skype desktop 6.11 nor with Sky...

    Hello. I tried to find a solution to my problem, could not. I can't access the desktop client with my skype name and password, although I can access skype.com with the same credentials (no mistake, I checked multiple times). Skype says: "Skype can't connect"
    Then I linked the skype to MS Account and I can access outlook.com and use skype from there, but can't access desktop application with it also. I have 6.11.0.102 version installed on Windows 8.
    When I try to sign in Skype says: "Sorry, we did not recognize your sign-in details. Please check your Skype NAme and password, then try again."
    Need help. THanks.

    Guys, I updated to 6.21 version and the problem is solved

  • Calling Class from Class

    Hi,
    I am sure this is a very basic question but I don't have anyone to ask, have tried a few formats but it does'nt like it. I have two compiled classes and wish to call one from the other, can anyone give me the format to do this?
    Thanks,
    Neil Mc

    class WotifReff {
        public static void main(String[] args) {
            WotifReft wotifreft = new WotifReft();
            wotifreft.call();
            WotifRef2 wotifref2 = new WotifRef2();
            wotifref2.call();
    }The only method that exists in your class is called "main". However you are attempting to call a method called "call". It does not exist. You can only call methods that do exist. So try adding that method to your class.
    class WotifReff {
        public static void main(String[] args) {
            WotifReft wotifreft = new WotifReft();
            wotifreft.call();
            WotifRef2 wotifref2 = new WotifRef2();
            wotifref2.call();
        public void call() {
            System.out.println("Now the code will compile");
    }OOPS! Misread your class names.
    class WotifReff {
        public static void main(String[] args) {
            WotifReft wotifreft = new WotifReft();
            wotifreft.call();
    class WotifReft {
        public void call() {
            System.out.println("Now the code will compile");
    }That should work.

Maybe you are looking for

  • SSIS Web Service Complex Type Inputs

    Hi, I am trying to make a call to a third-party web service in my SSIS package.  The request has custom complex data type as the parameter.  As has been pointed out in this forum before, the Web Service Task only lets you assign the outside parameter

  • Can't get ichat to work!!! Please help!!

    Every time I try to log in to ichat, it rejects my password and wont allow me to do anything accept LOOK at my preferences but it wont let me change them. however it shows my status as being "available." I tried to change my password through support

  • New mac mini - cannot burn dvd

    I have recently purchased a mac mini. I already had an external dvd burner, but I can't burn dvd projects from iMovie since no idvd is on the mac. HELP!

  • Enabling 'submit' button in email activity

    All, version:11.1.1.4 I'm trying to configure an email activity in an async bpel as below <body><form action="http://localhost:7001/soa-infra/services/default/AdvanceShipNotice/AdvanceShipNoticeResend?WSDL"> First name:<br> <input type="text" name="f

  • Firefox 4 did not install properly. No orange box. What happened?

    Good Morning, I upgraded to Firefox 4 yesterday, and it didn't install correctly. No orange box in the corner. It looks still looks like the old version. I tried uninstalling all extensions. Nothing. Tried a fresh installation, which worked, but then