Methods | Examples Frames | No Frames

mx.servicetags

 

please help me over this example.

i just want to fetch a java object string with the help of http remote object.

 

please if you kind


Class RemoteObject

mx.servicetags.Service     Inheritance Imagemx.servicetags.RemoteObject    


class RemoteObject
extends mx.servicetags.Service
The <mx:RemoteObject> tag gives you access to the methods of Java objects without manually configuring the objects as SOAP-based web services. You can use the <mx:RemoteObject> tag to interact with Java objects using Action Message Format (AMF) encoding. Although the RemoteObject class extends the Service class, the header() and setEndpointURI() methods do not apply.
MXML Syntax
The <mx:RemoteObject> tag accepts the following properties:
 <mx:RemoteObject
concurrency="multiple|single|last"
endpoint="No default."
fault="No default."
id="No default."
protocol="http|https"
result="No default."
serviceName="No default."
showBusyCursor="false|true"
source="No default."
type="stateless-class|stateful-class"
/>
These properties are discussed in the "Using Data Services" chapter of Developing Flex Applications at http://livedocs.macromedia.com/flex.
Note: To access a remote object service over HTTPS from a Flex application that is served over HTTP, you must set the protocol property to https.
<mx:RemoteObject> may have multiple <mx:method> tags which have the following properties:
 <mx:method
concurrency="multiple|single|last"
fault=No default.
name=No default, required
result=No default.
/>
It then may have a single <mx:arguments> child tag which in turn may have child tags. Each child tag is a parameter to the RemoteObject method, where the first tag is the first parameter, the second tag is the second parameter, etc. The name of the tag is ignored.
Click here to view the Examples

Methods

Methods inherited from class mx.servicetags.Service
addHeader   addSimpleHeader   clearHeaders   clearUsernamePassword   setEndpointURI   setUsernamePassword  


Examples
RemoteObjectExample.mxml
<?xml version="1.0" encoding="utf-8"?>    <!-- Steps to run this example locally:          1. - Copy the java code pasted below and save it as RemoteInfo.java under          WEB-INF/classes/example folder (Java Objects should be in Flex web application's classpath).        - Compile the RemoteInfo.java file. 
   _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _Start of RemoteInfo.java_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _    /**   * Simple Java Class, used to demonstrate RemoteObject Tag   *   **/    package example;    public class RemoteInfo  {        public String getInfo()      {      String info;               info  = "Working with remote object services." + '\n'               + "- You can use the <mx:RemoteObject> tag to call methods on Java objects " + '\n'               + "  that reside on the Java application server on which Flex is running. " + '\n'               + '\n'               + "The <mx:RemoteObject> tag uses AMF, the encoding used in Macromedia Flash Remoting. " + '\n'               + "AMF transport is faster and uses less network bandwidth than SOAP transport. " + '\n'               + '\n'               + "- You can call methods on the following types of Java objects: " + '\n'               + "   Objects in the Flex web application's classpath " + '\n'    
           + "   Session servlet (used to access session variables). " + '\n'               + "_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ";            return info;        }  }  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ End of RemoteInfo.java_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _        2. Edit flex-config.xml file to add example folder to unnamed whitelist of <remote-objects>         as shown below.                          <unnamed>         <source>example.*</source>             </unnamed>                   3. Example should run after copying RemoteObjectExample.mxml code onto your flex server.       -->    <!-- Simple example to demonstrate the RemoteObject -->  <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="#FFFFFF">        <mx:RemoteObject id="remoteTagInfo" source="example.RemoteInfo">          <mx:method name="getInfo"
 result="resultHandler(event.result)"/>      </mx:RemoteObject>        <mx:Script>          <![CDATA[           var infoStr:String;     function getdata()     {       remoteTagInfo.getInfo();     }          function resultHandler(result)     {        infoStr= result;    }         ]]>      </mx:Script>        <mx:Panel title="Remote Object Panel" width="60%" height="45%">            <mx:Button label="Get Data" click="getdata();"/>          <mx:TextArea text="{infoStr}" width="100%" height="100%"/>        </mx:Panel>    </mx:Application>    





No comments found
 
 
 


Devis <[EMAIL PROTECTED]> wrote:
no,
i wish to use only code completition.
Adobe write

IDEs and Text Editors

Flex provides an XML schema to enable IDEs that support XML with code coloring, code hinting, etc., including IntelliJ IDEA, Borland JBuilder, and Altova
xmlspy. You can also use code editors such as VI and emacs with Flex.
 
but  i can'f find it this schema! Any suggestion pls
Devis
----- Original Message -----
Sent: Tuesday, June 06, 2006 3:30 PM
Subject: Re: [flexcoders] help me

You need to tell if you allready have the remote Object coded... in JSP ?


DIBYADYUTI CHAKRABORTY a écrit :
i am new to this group and also in flex tools.
please if any body can help me over the flex remote object data service.
i want to devlop a simple web project using flex,and want to run it on the tomcat server.
please help me.
 
dibyadyuti chakraborty
software associate
eforce india


Dibyadyuti Chakraborty
19/2a lala babu shair road
belur math,howrah
pin-711202
Mob:-(0)9433219471
hello:-(033)26540632
 
"ARISE,AWAKE AND STOP NOT TILL THE GOAL IS REACHED"

Yahoo! India Answers: Share what you know. Learn something new Click here
Send free SMS to your Friends on Mobile from your Yahoo! Messenger Download now




Dibyadyuti Chakraborty
19/2a lala babu shair road
belur math,howrah
pin-711202
Mob:-(0)9433219471
hello:-(033)26540632
 
"ARISE,AWAKE AND STOP NOT TILL THE GOAL IS REACHED"


Yahoo! India Answers: Share what you know. Learn something new Click here
Send free SMS to your Friends on Mobile from your Yahoo! Messenger Download now __._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to