Skip navigation
Anshul108
Currently Being Moderated

LifeCycle DS ES communication with Web Server

Dec 1, 2011 4:55 AM

Hi,

 

    I have written a simple Flex 3.2 code that accepts Name, uses Flext HttpService via LifeCycle DS ES 3.0. At the Server Side I am using Struts1.2 on Tomcat 5.0. My Flex code is running and Server side Struts code is running. The problem is the Name accepted on Client Side is not displaying on Server side JSP page. Below is the Client Side & Server Side code.

 

Client Side

=========

 

hello.mxml

-----------------

<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">

 

<![CDATA[

public function hello1():void{

HelloCall.send();

}

]]>

 

</mx:Script>

<mx:HTTPService id= "HelloCall" destination= "myHello">

      <mx:request  xmlns= " " >

 

<mx:TextInput  id= "nameInput" x="260" y= "104" fontSize= "20" />

<mx:Button  x= "301" y= "186" label= "Submit" fontSize= "20" click= "hello1();" />

<mx:Label  x= "312" y= "285" text= "{HelloCall.lastResult.jlc.message}" fontSize= "20" />

</mx:Application>

 

proxy-config.xml

-------------------------

 

<?xml version="1.0" encoding="UTF-8"?>
<service id="proxy-service"   class="flex.messaging.services.HTTPProxyService">

    <properties>
        <connection-manager>
            <max-total-connections>100</max-total-connections>
            <default-max-connections-per-host>2</default-max-connections-per-host >
        </connection-manager>
        <allow-lax-ssl>true</allow-lax-ssl>
    </properties>

    <adapters>
        <adapter-definition id="http-proxy" class="flex.messaging.services.http.HTTPProxyAdapter" default="true"/>
        <adapter-definition id="soap-proxy" class="flex.messaging.services.http.SOAPProxyAdapter"/>
    </adapters>

    <default-channels>
        <channel ref="my-http"/>
        <channel ref="my-amf"/>
    </default-channels>

  

<destination id="myHello">
    </destination>

 

 

</service>

 

 

 

 

 

 

 

 

           <name>     {nameInput.text}</name>

      </mx:request>

  </mx:HTTPService>

 

<mx:Label  x= "312" y= "47" text= "Enter Name" fontSize= "20" />

 
Replies
  • Currently Being Moderated
    Dec 1, 2011 6:50 AM   in reply to Anshul108

    I believe JEE LCDS 3.0  is not supported on Tomcat 5. Also the MXML snippet put forth is malformed.

     

    Rohit

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 1, 2011 10:38 AM   in reply to Anshul108

    Ok good.

     

    While we are at:

     

    [1] You haven't specified the URL for the server side JSP. E.g. The destination decl in proxy-config.xml can specify the URL as follows:

     

    <destination id="myHello">

         <properties>

              <url>/{context.root}/testdrive-httpservice/catalog.jsp</url>

         </properties>

    </destination>

     

    Rohit

     

    [2] The HTTPService declartion and request structures should be declared together:

     

    <mx:HTTPService id= "HelloCall" destination= "myHello">

          <mx:request  xmlns= " " >

               <name>{nameInput.text}</name>

          </mx:request>

    </mx:HTTPService>

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 1, 2011 8:56 PM   in reply to Anshul108

    Anshul, use one forum thread to track the issue. So, choose one, either this or the other one

     

    Rohit

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points