Video – Connecting Flex to a SOAP Webservice

Adobe TV has published a video I did recently about connecting Flex to a SOAP Webservice. Check it out and let me know what you think.

This entry was posted in Flex, SOAP. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

9 Comments

  1. Posted April 20, 2009 at 2:29 pm | Permalink

    Hi James
    thanks for your great presentation but what’s happened if I want to use Service oriented architecture of j2ee without LiveCycle data services or Blaze DS and use benefits of AMF channel?
    can you give me an explanation How this is possible?

  2. Posted April 20, 2009 at 2:37 pm | Permalink

    Hi Hamidreza,

    If you want to use AMF then you have to have an AMF serializer on the server-side. BlazeDS and LCDS are two of the many ways to do this.

    -James

  3. Posted April 20, 2009 at 2:44 pm | Permalink

    so I have to use BlazeDS or LCDS behind my SOAP solution
    anyway thanks for your help

    Best

  4. Vivian
    Posted April 22, 2009 at 9:20 am | Permalink

    Hi James,
    a little different problem. I already have a J2EE app running
    in my server. Now I want to create a flex app that will monitor
    the changes in that J2EE app. I do understand that I need to
    write some server side Java code that will call the J2EE API
    and gather the needed data and then pass that data to the
    Flex application using Blazeds. Now my question is how do
    I integrate Blazeds with an existing J2EE app? Itried to copy
    the BDS’s web-inf/lib files to the J2EE’s lib directory and then copy
    the web-inf/flex folder, which contains mainly those xml file
    and also merged the web.xml of blazeds and web.xml of the
    J2EE app. But without any success. Can you please suggest
    me an solution? Regards….

  5. Vivian
    Posted April 22, 2009 at 9:24 am | Permalink

    By the way James – “unshaved” you really look like
    a cow buy – Clint Eastwood. To To To To To … Tay Tay Tay… (the tune from
    Clint Eastwood’s movies). :-))))

  6. Posted April 22, 2009 at 9:34 am | Permalink

    Hi Vivian,

    What you described should work. Are you getting error messages? Also you might want to check out my BlazeDS Intro article:
    http://www.infoq.com/articles/blazeds-intro

    I hope that helps.

    -James

  7. nacho
    Posted April 23, 2009 at 2:39 am | Permalink

    Hello James. I post this comment with the hope of a good advice.

    We have a middle-sized application with a Flex Client and a J2EE App Server (over 70.000 lines of J2EE+Flex) . We use Axis (SOAP) Web Services. Both in the server side (WSDL2Java) and the client side (Flex Builder 3.0) we generate code using the WSDL. The problem arises when the server sends a 300Kb message to the client. Flex spends 10 seconds in deserializing this message. This is an unaceptable delay and a “rude awakenig”. The best choice should be use remote objetcs but we prefer in this moment not to migrate. Out best choice is to slightly modify certain SOAP messages in the WSDL to simplify the deserialization.

    I need a good advice.

    Thaks

  8. Posted April 24, 2009 at 7:22 am | Permalink

    Hi Nacho,

    SOAP and XML should really never be used when you control both sides of the app. Use AMF instead via BlazeDS, LCDS, or one of the many other options out there. You can see a performance comparison of the various options at:
    http://www.jamesward.com/census

    AMF avoids unnecessary serialization / deserialization and from what you explained there really doesn’t seem to be any reason not to use it. It will make your life a lot easier.

    -James

  9. Erik Ramalho
    Posted May 14, 2009 at 6:32 am | Permalink

    Hi David,u

    Very good your post! But I really need to solve a huge problem in my project. I need to consume an Oracle Webservice. The problems are:
    1- The webservice is SOAP 1.2: The wizard is not ready for it. Can I “code” the consume of the WS?
    2- The WS has (login and pass) is it possible to call?

    Thanks and Flex!

One Trackback

  1. [...] Visit Tutorial [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Subscribe without commenting