Webservices with Flex

Is there any way to consume webservices from flex without
using LCDS or FDS. Thanks in advance

Hi,
You don't need LCDS/FDS/BlazeDS to consume a web service. All
you need to do is to use the WebService component.
Hope this helps.

Similar Messages

  • How To call java WebService with flex.

    Hi Friends
                         can any body guide me how to use webservices that call java at server side.i have experience of http service dont know how to call the webservices.please give me a basic demo on both side(java and flex).i am using eclipse ide for java and flex.
    Thanks in advance
       Vineet osho

    The ADF Mobile Container Utilities API may be used from JavaScript or Java.
    Application Container APIs - 11g Release 2 (11.1.2.4.0)

  • How to call webservice using flex?

    Hello,
    i want to call webservice in flex.i tryied following code.but it is not giving correct response.what is wrong with this code?
    can anybody tell me ,how to call webservice in flex?
    Code:
    <mx:Script>
            <![CDATA[
    public function button1_clickHandler(event):void
         ws.returnRecord(para1,para2);//i am sending two parameter to returnRecord service here
    public function remotingCFCHandler(event:ResultEvent):void
    trace(event.result);
    ]]>
    </mx:Script>
    <mx:WebService
         id="ws"
         wsdl="http://localhost:8500/flexapp/returnusers.cfc?wsdl">
        <mx:operation name="returnRecords" resultFormat="object"
         fault="mx.controls.Alert.show(event.fault.faultString)"
         result="remotingCFCHandler(event)"/>
    <mx:Button label="Go" fontWeight="bold" click="button1_clickHandler(event)"/>

    Hello sir,
    i got following reply:
    <returnRecordResponse  xmlns="http://xyz" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <returnResult>Error_request</returnResult>
    </returnRecordResponse>
    but correct response is
    <returnRecordResponse  xmlns="http://xyz" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <returnResult>Success</returnResult>
    </returnRecordResponse>
    can you tell me correction in the code which i have put on the forum?or tell me other way to call webservice?

  • Error while calling webservice in flex

    Hi,
    I have done one sample application like adding the 2 no. But
    i dont know how to pass the parameter from webservice to flex. I
    have attached my code here. Plz reply.Its showing the error as
    Required parameter 'a' not found in input arguments."

    add this to get your reply from web service.
    private function
    configureListeners(dispatcher:IEventDispatcher):void {
    // Override xml socket event listeners with custom functions
    // Reference the XML Socket API for Event descritpions
    xml_s.addEventListener(Event.CLOSE, onClose);
    xml_s.addEventListener(Event.CONNECT, onConnect);
    xml_s.addEventListener(DataEvent.DATA, onData);
    xml_s.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
    xml_s.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
    onSecurityError);
    // below is where you will receive your results from the web
    service
    public function onData(event:DataEvent):void
    // do something with data
    // i.e. indata.text = event.text;

  • Handling SOAP DIME attachments with Flex

    Hi,
    Is possible to get SOAP DIME attachments with Flex?
    I'm trying to get thumbnails of pages returned in jpeg by a
    WebService request that has that thumbnail as DIME attachment on
    its response, but don't know how to handle it with Flex.
    Thanks
    Aleix

    Please,
    Is anybody able to answer this question?
    Thank you so much.
    Aleix

  • Problem accessing Webservices from Flex

    Hi All,
    I have created a Webservice in Abap and configured it using
    SOAMANAGER transaction. I am able to succesfully test the Web serivice which I have created in 'Soamanager ' transaction.
    But when I am calling this Webservice from Flex application I am getting an error as " FAULT : faultCode:WSDLError faultString:'Runtime exception Error #1009' faultDetail:'null' "
    We tried calling the Webservice  outside SAP from the FLex application, it is working fine.
    Please let me know how to rectify this error . It's an urgent requirement.
    Thanks and regards,
    Uma.

    hi
      when you create your destinations for your webservices in the SOAMANAGER-> Destination Template
      you would be providing wsdl url and destination , and in the below you can
      find the username and pwd that need to set , you need to select the radio buttons with logon tickets ,
    username , password , there , re-check the username and pwd by selecting the radio button with selecting the
    radio button username password ,  and even check the webservice in the WSNAVIGATOR , whether its working
    fine , and other thing is  there is situation where your webservice may work fine inthe wsnavigator  even then there would
    be some problem inthe webservice , even check this scenario.
    Thanks

  • [svn:bz-4.x] 15534: Update BlazeDS/4.x branch to build with Flex SDK4.

    Revision: 15534
    Revision: 15534
    Author:   [email protected]
    Date:     2010-04-17 05:17:40 -0700 (Sat, 17 Apr 2010)
    Log Message:
    Update BlazeDS/4.x branch to build with Flex SDK4. This branch now builds with Flex SDK4 by default. This was just a merge of changelist 15508 from BlazeDS/trunk to BlazeDS/4.x. 
    Modified Paths:
        blazeds/branches/4.x/apps/ds-console/build.xml
        blazeds/branches/4.x/apps/ds-console/console.mxml
        blazeds/branches/4.x/apps/samples/WEB-INF/flex-src/dashboard/build.xml
        blazeds/branches/4.x/apps/samples/WEB-INF/flex-src/inventory/build.xml
        blazeds/branches/4.x/apps/samples/WEB-INF/flex-src/runtimeconfig-messaging/build.xml
        blazeds/branches/4.x/apps/samples/WEB-INF/flex-src/runtimeconfig-remoting/build.xml
        blazeds/branches/4.x/apps/samples/WEB-INF/flex-src/testdrive-101/build.xml
        blazeds/branches/4.x/apps/samples/WEB-INF/flex-src/testdrive-chat/build.xml
        blazeds/branches/4.x/apps/samples/WEB-INF/flex-src/testdrive-datapush/build.xml
        blazeds/branches/4.x/apps/samples/WEB-INF/flex-src/testdrive-httpservice/build.xml
        blazeds/branches/4.x/apps/samples/WEB-INF/flex-src/testdrive-remoteobject/build.xml
        blazeds/branches/4.x/apps/samples/WEB-INF/flex-src/testdrive-update/build.xml
        blazeds/branches/4.x/apps/samples/WEB-INF/flex-src/testdrive-webservice/build.xml
        blazeds/branches/4.x/apps/samples/WEB-INF/flex-src/traderdesktop/build.xml
        blazeds/branches/4.x/apps/samples/build.xml
        blazeds/branches/4.x/apps/team/build.xml
        blazeds/branches/4.x/build.properties
        blazeds/branches/4.x/build.xml
        blazeds/branches/4.x/modules/proxy/build.xml
        blazeds/branches/4.x/modules/remoting/build.xml
        blazeds/branches/4.x/modules/sdk/build.xml
        blazeds/branches/4.x/qa/apps/qa-manual/build.xml
        blazeds/branches/4.x/qa/apps/qa-regress/build.xml
        blazeds/branches/4.x/qa/resources/webtier/build.xml
        blazeds/branches/4.x/qa/resources/webtier/flex_sdk_4/air-config.xml
        blazeds/branches/4.x/qa/resources/webtier/flex_sdk_4/flex-config.xml
    Added Paths:
        blazeds/branches/4.x/resources/flex_sdk/dmv/
        blazeds/branches/4.x/resources/flex_sdk/dmv/datavisualization.swc
        blazeds/branches/4.x/resources/flex_sdk/dmv/locale/
        blazeds/branches/4.x/resources/flex_sdk/dmv/locale/en_US/
        blazeds/branches/4.x/resources/flex_sdk/dmv/locale/en_US/datavisualization_rb.swc
        blazeds/branches/4.x/resources/flex_sdk/dmv/locale/ja_JP/
        blazeds/branches/4.x/resources/flex_sdk/dmv/locale/ja_JP/datavisualization_rb.swc
    Removed Paths:
        blazeds/branches/4.x/apps/team/WEB-INF/flex/flex-config.xml
        blazeds/branches/4.x/apps/team/WEB-INF/flex/flex-webtier-config.xml
        blazeds/branches/4.x/frameworks/libs/datavisualization.swc
        blazeds/branches/4.x/frameworks/locale/en_US/
        blazeds/branches/4.x/frameworks/locale/ja_JP/
        blazeds/branches/4.x/resources/flex_sdk/dmv/datavisualization.swc
        blazeds/branches/4.x/resources/flex_sdk/dmv/locale/
        blazeds/branches/4.x/resources/flex_sdk/dmv/locale/en_US/
        blazeds/branches/4.x/resources/flex_sdk/dmv/locale/en_US/datavisualization_rb.swc
        blazeds/branches/4.x/resources/flex_sdk/dmv/locale/ja_JP/
        blazeds/branches/4.x/resources/flex_sdk/dmv/locale/ja_JP/datavisualization_rb.swc

  • Problem when adding ABAP custom webservice with Visual Studio 2010

    Hi All,
    After creating a webservice for a custom RFC function developed in a ECC6.0 SAP machine, I tried to add it to a Visual Studio 2010 windows aplication (through a web reference connection).
    The sequence I've done is:
    - Create RFC in ABAP, with testing ok
    - Create a WEBSERVICE with the ABAP editor
    - Configured the webservice with SICF with:
         Procedure: Standard
         Logon data: standard R3 user
         Security requirement: Standard
         Authentication: Standard SAP User
    Then, in SOAMANAGER I copied the webservice URL and tried to add it to Visual Studio 2010, but it keeps asking me the user and password. I try to supply the R3 username and password but if fails.
    Why is ECC6.0 asking the user and passord if I've defined a SAP user for the login process?
    Is there any way to disable this?
    Thanks,
    Manuel Dias

    Hello Manuel,
    You can use the following code:
    CredentialCache cache = new CredentialCache();
          cache.Add(new Uri("WEBSERVICEURL:PORTNUMBER/"), "Basic", new NetworkCredential("USERNAME", "PASSWORD"));
    SAP needs a password.
    Kind regards,
    JK

  • How can I create an executable with Flex Builder 3?

    I'm working with Flex Builder 3 right now and I've run my
    head into a brick wall. Here's the situation:
    I'm creating a standalone application (runs in its own
    window, not in a web page) and I want to run it on a computer that
    does not have Flex Builder 3 installed. Help files and web searches
    haven't directed me to the right answer, so I was hoping that
    someone on this forum could help. Anyone know how to create a .exe
    file or something else that can be run outside of Flex Builder?
    Thanks a lot for any help!

    quote:
    Originally posted by:
    rob_parkhill
    Convert it to an AIR Application?
    Thanks Rob,
    This may be what I'm looking for, but I don't know enough
    about the difference. I guess I should have pointed out that I'm a
    complete Flex Novice!
    Anyway, with Flex Builder, I created an MXML Application. I
    went through all my various options again in Flex Builder and found
    that under the project menu, I could export a release build in what
    appears to be the format you mentioned. I managed to create a .air
    file, but it is not a recognized file type on my computer. I tried
    double clicking it and the built-in windows services couldn't even
    find a possible way to run it. Am I missing some important step?
    Thanks again.

  • Animated GIF with Flex

    Hi all,
         I designed a animated GIF image by Photoshop. And now, I want to add it into my web application. I referenced from
    http://www.bytearray.org/?p=95
    http://iamjosh.wordpress.com/2009/02/03/animated-gifs-in-flex/
         Have I must to download the AS3 GIF Player Class to use my animated gif with flex ?? Has Flex 3.0 support animated gif that I not need download that libriary ?
    Thanks !

    Anybody help !!

  • XML error when Crystal report calling Webservice with Rampart (ws-security)

    Could you please advise me where I am doing wrong -
    I have designed the report using CR 2008 following a SAP document instructions but getting error. -
    1. Created a Class file and put it in the class folder -
    public class PasswordHandler implements CallbackHandler { public void handle(Callback[] callbacks) throws IOException,UnsupportedCallbackException { for (int i = 0; i < callbacks.length; i++) { WSPasswordCallback pwcb = (WSPasswordCallback)callbacks<i>; pwcb.setPassword("clientPassword"); return; } } -
    2. created wse_policy.xml with below content clientName com.rockalltech.action.reports.PasswordHandler -
    3.Also modified CRConfig.xml with below data com.PasswordHandler -
    Still I am getting Rampart error like below -
    [2009-06-02 18:04:26,977,,FATAL,com.crystaldecisions.data.xml] org.apache.axis2.AxisFault: org.apache.rampart.Rampart at org.apache.axis2.deployment.URLBasedAxisConfigurator.getAxisConfiguration(URLBasedAxisConfigurator.java:77) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromURIs(ConfigurationContextFactory.java:190) at com.crystaldecisions.data.xml.a.b.a(Unknown Source) at com.crystaldecisions.data.xml.a.a.a(Unknown Source) at com.crystaldecisions.data.xml.f.a(Unknown Source) at com.crystaldecisions.data.xml.f.int(Unknown Source) at com.crystaldecisions.data.xml.CRDB_XMLImpl.DbExecuteQuery(Unknown Source) at com.crystaldecisions.reports.queryengine.driverImpl.xml.XMLQueryDefinition.Execute(Unknown Source) Thomas Edited by: thomasjv on Jun 2, 2009 7:15 PM Edited by: thomasjv on Jun 3, 2009 10:45 AM Edited by: thomasjv on Jun 3, 2009 10:45 AM Edited by: thomasjv on Jun 3, 2009 10:46 AM

    Hi!
    Thanks for the help:
    - I give all proxy details. In HTTP and HTTPS proxy tabs too.
    one interesting thing:
    - We publicate the same WebService with HTTP and HTTPS prefix.
    - If I create a proxy for the WS with HTTP, everything is correct and works well.
    - If I create a proxy for the WS with HTTPS, gives the error written the previous posts. (And can't create the logical port with SOAMANAGER)
    I compare the 2 WSDL. It is the same, except the links. (HTTP and HTTPS) all others are same.
    - And why it is possible in both case (HTTP, HTTPS) to create the proxy with SE80 from the WSDL URL? (And after the logical port was failed)

  • AIR application with Flex 4.5 will not render content. What gives?

    OK,
    So I've upgraded to Flash Builder 4.5 Premium and I am unable to develop desktop AIR applications with the 4.5 Flex SDK. I start by simply creating a brand new AIR application using the default SDK (Flex 4.5). I set the title property on WindowedApplication and include a simple Label component. The project compiles fine but when I run the application all I see is the adl window in the dock but that's it. If I modify the Main-app.xml file to set the visible attribute to true, I will get a small window but there is no content although the output window shows the application swf being loaded. Checking the release version of the Main-app.xml file shows the correct path location to the swf.
    Here is what I've tried so far:
    Install/reinstall Flash Builder, 4+ times
    Downloaded the trial installation twice
    Downloaded the SDK's for 3.6, 4.1 and 4.5.0. I then copied each SDK folder and merged the AIR 2.6 SDK with each copy. So now I have 6 SDK versions; one pristine and the other with the AIR 2.6 SDK merged. I then added each SDK individually and created an AIR desktop application for each. Each and every one works fine with the exception of the two 4.5 SDK's. They will not render content.
    I created a simple creation complete handler for the application that declares a simple variable and assigns a value to it. I then put a break point on the assignment and it never gets caught. More evidence that the swf isn't getting loaded.
    The computer I'm running on is a Mac Book Pro with Snow Leopard 10.6.7. If I create a web project in each of the 6 SDK's, those will work just fine. What the heck is it with Flex 4.5 and the AIR 2.6 SDK on this machine? I have the AIR 2.6 runtime installed as well as a number of AIR applications that work just fine. I also tried my 4.5 test on my windows machine and that worked like a champ.
    I am completely out of ideas. Finding information has been difficult because everyone is all about mobile so searching for desktop issues is a losing battle. I realize this is a long email but I'm desperate for help. There must be someone out there that knows more about the low level interaction between Flex 4.5/AIR 2.6 and the OS.

    Well, I finally found the issue, a corrupted mm.cfg file in /Library/Application Support/Macromedia. I deleted the file and then adl ran just fine.

  • How to create Rules with Flex Field mapping in the bpm worklist

    I Have created a flex field label and was able to map to the flex field attributes .
    But when i try to create a rules , I don't see the label or the flex attributes in the task payload .
    Can someone please help is understanding how to create Rules with Flex Field mapping in the bpm worklist .
    Even I am also searching for any scripts which will take the flex fields prompts and can directly create a label in the bpm worklist .
    Any pointers or suggestion is highly appreciated .

    Hi,
    SE38 -> Enter program
    Select Variants button and display. In the next screen, enter a variant name, (If not existing , press Create to create new one), else click on Change.
    Now the selection screen will display with a button "Variant Attributes" at the top.
    Click on that button.
    In the next screen, go to the selection variable column of the date field. Press F4 or drop down and select 'D' for date maintenance.
    In the column "Name of Variable (Input Only Using F4)" press F4 or drop down, select whichever kind of date calculation you want and save the variant.
    Now whenever you run the prgrm with this variant, date will be displayed by default.
    Regards,
    Subramanian

  • Getting started with Flex ...

    Hi All,
    I've been looking a Flex over the last couple of weeks and have managed to setup a couple of basic projects that can read data from a mySQL database etc...  However when it comes to understanding some of the more advanced frameworks and options to use with Flex it starts to get very overwhelming.
    Does anyone have any pointers/suggestions for good material (online or books etc) to start with Flex.  I come from an Oracle Forms development background and in terms of setting up an application with a connection to a database Oracle Forms seems to a lot simplier than building a Flex database application (although the functionality of Oracle Forms as a lot more limited than Flex/Flash).
    I have taken a look at a the book Enterprise Development with Flex: Best Practices for RIA Developers (Adobe Dev Lib)http://www.amazon.com/Enterprise-Development-Flex-Practices-Developers/dp/059615416X/ref=s r_1_6?s=books&ie=UTF8&qid=1319581262&sr=1-6 by Yakov Fain, Victor Rasputnis and Anatole Tartakovsky (Mar 30, 2010), however the very first code example in the book appears to be dated and I'm having trouble getting it to work and finding the appropriately dated source files for the example project.
    I have also taken a quick look at Adobe Flex 4.5 Fundamentals: Training from the Source by Michael Labriola and Jeff Tapper (Aug 5, 2011) which appears to be a bit more recent, however I am not sure how much is covered regarding database connections to databases like mySQL and Oracle.
    Any suggestions on the best learning materials available would be really helpful.  At the moment it feels like I need to be an expert in Flex, MXML, ActionScript, Java, Spring, Hibernate, AMF, Maven, BlazeDS etc etc just to be able to create a simple database centric application (aarrgghh).
    Ideally I would love to be able to find a recent tutorial that goes through the building a relatively advanced Flex database centric application, that includes information about building a database based login/authentication system (without having to use PHP), and database controlled/stored main menu system and a system for modular sub tabs/screens/programs within a main application.
    Regards,
    Leigh.

    Thanks everyone for the replies.  I guess I'm a bit lazy when it comes to reading up on a technology I am not familiar with :-) .  What makes things worse is the Oracle Forms Builder IDE is very highly coupled to the Oracle database and therefore there is no requirement to know or understand the language or technology under hood (other than PL/SQL), Oracle takes care of that within the IDE and the Forms Java Bean (deployed by default with a middleware installation of Oracle application server).
    @dwaynie Started working through the Flex in a week video training yesterday.  Its really good and probably the best place for me to start as it goes over a lot of the assumed knowledge regarding Flex, MXML and AS (stuff I have probably glossed over up until now)
    @Mansuro noticed that spring has a dedicated page on the Flex/Flash plaform site so I'll probably look into this more down the track.  I guess the thing I am little confused about is that there are many examples online that integrate Spring + Hibernate + Maven + Java etc etc, I guess each framework has different features that the others don't and therefore all can be used at once, or does each one offer a completely different service?  More reading is required here I think.

  • Replacing WebDynpro for Java with Flex 3 Apps

    Hi there, I am new in developing Flex 3 app.
    I know how to use web Services with Flex and so on. But the my question how can I replace WebDynpro Apps in SAP NetWeaver portal. What do I have to do?
    How can I integrate Flex App in Portal without using the Visual Composer?
    Best regards Jay

    Hi Jan,
    Below check the below weblog. It may help you.
    Using Flex in SAP Web applications (without Adobe Flash Islands)
    Raghu

Maybe you are looking for

  • After moving from weblogic 10.0.0 to Weblogic 10.3.3 - JMSException

    After moving from weblogic 10.0.0 to Weblogic 10.3.3, web-application began to raise next exception: <Dec 4, 2012 3:52:05 PM CET> <Error> <HTTP> <pl-1> <traffic-1> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS

  • Firefox crashed and I am not given an option to restore the session probably because I deactived the history, what can I do?

    After a crash I closed out of Firefox but have not been given an option to restore my session afterwards. Also in my chronicles no sites show up. I did deactivate the history at some point. Is there anyway to recover my previously open tabs?

  • Install and run windows on/from external 3.0 usb

    i installed windows 7 x64 ultimate on an external usb hard disk with the help of wintousb and now i can boot into windows from it. so far so good. my notebook has 1 usb 2.0 and 3 usb 3.0. the problem comes from the fact that even if it works, i can o

  • Drill Down in Crystal Reports

    Gurus,        I am trying to add drill down to my Crystal Report, I know this can be achieved by using Hyperlink but the button for drill down is disabled. How can I enable this achieve the drill down function. Please find attach file for your convin

  • Changer l'extensio​n d'un fichier

    Bonjour,  Dans mon application je fais une acquissition de donnée où je sauvegarde mes points dans un fichier .txt (on va dire). Je voudrai sà la fin de cette acquisition changé l'extension(.txt) en (.xls) compatible avec excel. En fait c'est juste l