Regarding Config.xml

6 views
Skip to first unread message

Bharathi dasan

unread,
Apr 22, 2012, 10:41:46 PM4/22/12
to flex_...@googlegroups.com
Hi Friends

I need ur help to set up config.xml in flex 4.5. I need to connect to PHP by using flex remote object. Its working fine when i defined the source inside the mxml or .as file. 

in mxml or .as file

var remoteObject:RemoteObject = new RemoteObject();


remoteObject.Source="ClassName";


remoteObject.MethodName();

My problem is when i defined source in service.config.xml file its not working,i got source is setting to null.

service.config.xml file

<?xml version="1.0" encoding="UTF-8"?>
<services-config>
    <services>
        <service id="zend-service"
            class="flex.messaging.services.RemotingService"
            messageTypes="flex.messaging.messages.RemotingMessage">
            <destination id="zend">
                <channels>
                    <channel ref="zend-endpoint"/>
                </channels>
                <properties>
                    <source> ClassName </source> <!--here i defined my class name-->
                </properties>
            </destination>
        </service>
    </services>
    <channels>
        <channel-definition id="zend-endpoint"
            class="mx.messaging.channels.AMFChannel">
            <endpoint uri="http://localhost.com/gateway/"
                class="flex.messaging.endpoints.AMFEndpoint"/>
        </channel-definition>
    </channels>
</services-config>

Friends please help me to resolve this problem because i will use 2 or more services.


Thanks & Regards

Bharathidasan.S 
Reply all
Reply to author
Forward
0 new messages