How to set services-config.xml?
Hi,
Hi,
I am confusing for how to set services-config.xml(configuring
channels and destinations) for <mx:RemoteObject>.
Please give me a simple demo .Thanks
MK
Maybe this will help?
http://www.sephiroth.it/tutorials/flashPHP/flex_remoteobject/page001.php
Similar Messages
-
How to use URL in actionscript Instead of services-config.xml?
Hi Alls,
I would like to set my service's url in actionScript (I don't
want to use compiler option -services witch need to recompile swf
if you change service's url).
I search for a long time on google but I found nothing, and
adobe documentation isn't very clear.
Thank for help!!!If you are relying on a services-config.xml file, then this
must be provided
at compile time because the compiler uses it to generate
code.
If you're not using <mx:DataService>, you can actually
avoid compiling against
a services-config.xml file. This is because for the other
services, such
as <mx:RemoteObject> or <mx:WebService
useProxy="true"> or <mx:HTTPService
useProxy="true">, the main thing the compiler does from
services-config.xml
is to generate the code to instantiate the set of channels
that should be
used to contact a destination in LCDS.
Well... you can do that programmatically in ActionScript...
something like
this:
import mx.messaging.ChannelSet;
import mx.messaging.channels.AMFChannel;
private function channelInit():void
var channelSet:ChannelSet = new ChannelSet();
var channel:AMFChannel = new AMFChannel(null, "
http://{server.name}:{server.port}/mycontext/messagebroker/amf");
channelSet.addChannel(channel);
myRemoteObject.channelSet = channelSet;
Just make sure you call this initialization code before you
make any service
requests. If you're proxied WebServices, be sure that you use
the ActionScript
API instead of the MXML tag so that you can delay when
loadWSDL() is called
because you'll want to setup the channelSet first.
Regards,
Pete
Hello FredFlex,
> Hi Alls,
>
> I would like to set my service's url in actionScript (I
don't want to
> use compiler option -services witch need to recompile
swf if you
> change service's url).
>
> I search for a long time on google but I found nothing,
and adobe
> documentation isn't very clear.
>
> Thank for help!!!
> -
Setting remote credentials in services-config.xml
Webservice and remoting calls can be restricted access to
CFC's using usernames and passwords. And to 'authenticate', I'm
having trouble setting the <remote-username> and
<remote-password> elements in the services-config.xml
A remoting fault event is dispatched because the tags
(<remote-username> & <remote-password>) "shouldn't"
be in the <properties> element in the destination definition.
I would rather protect that info on my server than compile it in
the swf inside a setRemoteCredentials call, so why isn't the
example from the docs working?Look at this thread
re:UIX/XML: XSS styleSheets
There is mention of a bug regarding the element to use - <style-sheet> instead of <style-sheet-name>. There might be some other stuff of interest in there as well.
Cheers
Ian -
Revision: 10167
Author: [email protected]
Date: 2009-09-11 13:43:18 -0700 (Fri, 11 Sep 2009)
Log Message:
Add tests to test the enforce-endpoint-validation system setting in services-config.xml.
Modified Paths:
blazeds/trunk/qa/apps/qa-regress/testsuites/config/build.xml
Added Paths:
blazeds/trunk/qa/apps/qa-regress/WEB-INF/flex/user_classes/qa/CustomNetConnection.as
blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/
blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/Enforc eEndpointValidationFalseTest/
blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/Enforc eEndpointValidationFalseTest/Remoting_NetConnectionTest.mxml
blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/Enforc eEndpointValidationFalseTest/services-config.xml
blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/Enforc eEndpointValidationTrueTest/
blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/Enforc eEndpointValidationTrueTest/Remoting_NetConnectionTest.mxml
blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/Enforc eEndpointValidationTrueTest/services-config.xmlRevision: 10167
Author: [email protected]
Date: 2009-09-11 13:43:18 -0700 (Fri, 11 Sep 2009)
Log Message:
Add tests to test the enforce-endpoint-validation system setting in services-config.xml.
Modified Paths:
blazeds/trunk/qa/apps/qa-regress/testsuites/config/build.xml
Added Paths:
blazeds/trunk/qa/apps/qa-regress/WEB-INF/flex/user_classes/qa/CustomNetConnection.as
blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/
blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/Enforc eEndpointValidationFalseTest/
blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/Enforc eEndpointValidationFalseTest/Remoting_NetConnectionTest.mxml
blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/Enforc eEndpointValidationFalseTest/services-config.xml
blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/Enforc eEndpointValidationTrueTest/
blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/Enforc eEndpointValidationTrueTest/Remoting_NetConnectionTest.mxml
blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/Enforc eEndpointValidationTrueTest/services-config.xml -
Revision: 7177
Author: [email protected]
Date: 2009-05-21 07:56:59 -0700 (Thu, 21 May 2009)
Log Message:
Bug: BLZ-192 - Channel.requestTimeout cannot be set via services-config.xml
QA: Yes
Doc: Yes
Details: This is only the client side of the fix.
Ticket Links:
http://bugs.adobe.com/jira/browse/BLZ-192
Modified Paths:
flex/sdk/branches/3.x/frameworks/projects/rpc/src/mx/messaging/Channel.asRevision: 7177
Author: [email protected]
Date: 2009-05-21 07:56:59 -0700 (Thu, 21 May 2009)
Log Message:
Bug: BLZ-192 - Channel.requestTimeout cannot be set via services-config.xml
QA: Yes
Doc: Yes
Details: This is only the client side of the fix.
Ticket Links:
http://bugs.adobe.com/jira/browse/BLZ-192
Modified Paths:
flex/sdk/branches/3.x/frameworks/projects/rpc/src/mx/messaging/Channel.as -
How this services-config.xml works?
I going through some gettingstarted examples of using flex with AMFPHP I got it working. But to be honest, I don’t understand this services-config.xml file
Given:
<?xml version="1.0" encoding="UTF-8"?>
<services-config>
<services>
<service id="remoting-service"
class="flex.messaging.services.RemotingService"
messageTypes="flex.messaging.messages.RemotingMessage">
<destination id="amfphp">
<channels>
<channel ref="my-amfphp"/>
</channels>
<properties>
<source>*</source>
</properties>
</destination>
</service>
</services>
<channels>
<channel-definition id="my-amfphp" class="mx.messaging.channels.AMFChannel">
<endpoint uri="http://localhost/amfphp/gateway.php"
class="flex.messaging.endpoints.AMFEndpoint"/>
</channel-definition>
</channels>
</services-config>
The only info from that file i use in my RemoteObject is this destination atttribut:
<mx:RemoteObject destination="amfphp" …/>
But what I don’t understand way they split the services-tag from channels-tag and most important how do they relate? Could somebody explain this or hint me to some easy to understand tutorial?
I tried to read adobe livedocs on Using RPC Components etc but it is so confusing, to be honest i don’t understand a word of it. what exacly is service-tag and channel-tag and whay i have to use both of them- i mean one will never switch my amfphp endpoint at runtime, will one? And way?
(ok, that destination has channel ref which reference the “other” channel-tag which points to my amfphp-gateway -but so what? what does it mean, way so commplicated - Wouldn’t it be easier if one would jut give the endpoint attribute to the RemoteObject and everything is fine?)
Thankful for any helpMaybe this will help?
http://www.sephiroth.it/tutorials/flashPHP/flex_remoteobject/page001.php -
Revision: 18928
Revision: 18928
Author: [email protected]
Date: 2010-12-01 14:16:56 -0800 (Wed, 01 Dec 2010)
Log Message:
fixing the sample service-config.xml for max-object-nest-level setting
Modified Paths:
blazeds/trunk/resources/config/services-config.xmlyou have your driver jar in Tomcat\common\lib?
if so, check your classpath, it could be that. -
Hi,
How can the client know if the SSL certificate specified in the service-config.xml file is invalid/untrusted/expired? For example using iOS client, the trusted certificate will not work and the client has no way to know that the certificate is untrusted. Can the lcds server return any specific exceptions for SSL errors?
Thanks,
Swathi.We use a standard Java keystore and certificate validation can be handled as per standard best practices. At present we do not provide a hook point to validate the server certificate. However, you can register a bootstrap service which validates the certificate on system startup: http://help.adobe.com/en_US/dataservicesjee/4.6/Developing/WSc3ff6d0ea77859461172e0811f00f 6fe7f-7ffeUpdate.html This would require you to pass another copy of the keystore configuration to you Bootstrap service and then you can inspect the certificate in the keystore and validate it.
-
Hi,
I am tryng to create a Flex Project, but got stuck with an error....
The Error is Invalid root. The WEB-INF/flex folder must contain either flex-config.xml or services-config.xml.
Initially I download jboss-5.1.0.GA and placed it in C folder.
While creating project, I selected J2EE server, selected remote object access service and LiveCycle Data Services...
In the next step, I de-selected the use default location for local LiveCycle Data Services server.
In the root folder - C:\jboss-5.1.0.GA
for Root URL: http://localhost:8700/flex/
Context Root: /flex
when I clicl Validate Configuration.. this is the error I get Invalid root. The WEB-INF/flex folder must contain either flex-config.xml or services-config.xml.
I can't understand what is going wrong here....any ideas....
Thanks for the Help.....
ThanksRun the wizard, select ColdFusion as the server technology, but don't
check the option to use remote object access service. Then, open the
project properties dialog, go to the Flex Compiler page, and add a the
compiler flag: -services
"C:\ColdFusion8\wwwroot\WEB-INF\flex\services-config.xml" (obviously
changing the path as appropriate). This flag is what gets set by the
wizard when you opt to use Flash Remoting. -http://www.feed-squirrel.com/index.cfm?evt=viewItem&ID=77732
Above is a work-around/solution that was successful for me. Below are screen shots of how I initially configured the project, following the above solution.
In the image above, notice how I didn't tick the "Use remote object access service" checkbox.
For the image below, the 'Y:\' value is a mapped network directory to my server (IIS) webroot, which is "\\windowsserver/Inetpub/wwwroot/". Root URL is the name of my server. Fill in the fields with correct values and hit finish.
Then navigate ( Project>Properties>Flex Compiler ) to this project's 'Flex Compiler context menu.
And 'W:\' is another mapped network directory that points obviously to my Coldfusion's WEB-INF\flex.
I hope that this helps. As you may see, I'm hoping that this will help you and others that are likely to come across problem. -
WEB-INF/flex/services-config.xml???
I am confused about this file and it's location. In my
environment (MX
7.02/Apache/Linux) the WEB-INF/flex/ folder resides here:
/opt/coldfusionmx7/wwwroot/WEB-INF/flex/
However, the server is configured to serve web pages from
this location:
/apache/html/
my /CFIDE/ folder is located at /apache/html/CFIDE/ but I
have no WEB-INF
folder except in the default location that isn't served up by
the web
server. As I understand it, for flash remoting to work, I
must have the
WEB-INF/flex/ folder in the root of my web server or in the
working folder
of my flex project ON the web server? Is this correct? If so,
must I copy
the WEB-INF folder to my working web document root folder?
I'm very
confused and so far have had HORRIBLE luck trying to get the
most simple
examples to run between Flex and Coldfusion. I am hoping
someone can tell
me what I'm doing wrong or at least point me to some
documentation that
doesn't appear to assume you are running Coldfusion in
Developer mode from
your local workstation (which ALL the samples appear to do).
Thanks for any help, I configured the coldfusion servers here
so I can make
the needed changes, if I only knew what they were and the
documentation
hasn't helped me much.
...BradRun the wizard, select ColdFusion as the server technology, but don't
check the option to use remote object access service. Then, open the
project properties dialog, go to the Flex Compiler page, and add a the
compiler flag: -services
"C:\ColdFusion8\wwwroot\WEB-INF\flex\services-config.xml" (obviously
changing the path as appropriate). This flag is what gets set by the
wizard when you opt to use Flash Remoting. -http://www.feed-squirrel.com/index.cfm?evt=viewItem&ID=77732
Above is a work-around/solution that was successful for me. Below are screen shots of how I initially configured the project, following the above solution.
In the image above, notice how I didn't tick the "Use remote object access service" checkbox.
For the image below, the 'Y:\' value is a mapped network directory to my server (IIS) webroot, which is "\\windowsserver/Inetpub/wwwroot/". Root URL is the name of my server. Fill in the fields with correct values and hit finish.
Then navigate ( Project>Properties>Flex Compiler ) to this project's 'Flex Compiler context menu.
And 'W:\' is another mapped network directory that points obviously to my Coldfusion's WEB-INF\flex.
I hope that this helps. As you may see, I'm hoping that this will help you and others that are likely to come across problem. -
Services-config.xml REALLY necessary?
Could somebody please clarify why we need the
"services-config.xml" file when running in the context of Flex
3/AMFPHP?
As near as I can tell, "services-config.xml" MIGHT be a
requirement for running with LiveCycle Data Services, but while I'm
admittedly new at all this, it seems to me to be completely
unnecessary or even detrimental when running with Flex 3 and
AMFPHP. Using the "services-config.xml" file requires that it
compiled into the project which pretty much makes it fixed at run
time. By expressing it programmatically at run time (using AS and
the appropriate property of the RemoteObject; "endpoint" I think it
is...), you open the possibility of being able to read the
appropriate URL from an INI file or something, very handy if you
are installing your SWF on different servers with potentially
different directory structures.
Could somebody please clarify this for me?
And would somebody PLEASE put up a good Flex 3, Flex Builder
3, AMFPHP set of tutorials/examples? Considering how important
accessing backend data is, you would think such examples would be
common as dirt, but they're not. All I can find are a bunch of Flex
2 examples, and the occasional Flex 3 example INSISTS on using
"services-config.xml".
Thanks in advance.Ah I see they've included it in a seperate file:
<?xml version="1.0" encoding="UTF-8"?>
<service id="remoting-service"
class="flex.messaging.services.RemotingService"
messageTypes="flex.messaging.messages.RemotingMessage">
<adapters>
<adapter-definition id="cf-object" class="coldfusion.flash.messaging.ColdFusionAdapter" default="true"/>
<adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter"/>
</adapters>
<default-channels>
<channel ref="my-cfamf"/>
</default-channels>
<destination id="ColdFusion">
<channels>
<channel ref="my-cfamf"/>
</channels>
<properties>
<source>*</source>
</properties>
</destination>
</service> -
FLEX 3 service-config.xml
On a workstation, I need to set a FLEX3 project's compiler
services argument to the services-config.xml file on a separate
server (multiple instances of CF8) on our network.
Any suggestions on how to 'map' to that file's path?
ThanksMoved to FLEX Data Services
-
FLEX 3 services-config.xml
On a workstation, I need to set a FLEX3 project's compiler
services argument to the services-config.xml file on a separate
server (multiple instances of CF8) on our network.
Any suggestions on how to 'map' to that file's path?
ThanksYou might want to have a look at the Using software
clustering section of the lcds_dev_guide.pdf -
Services-config.xml settings for demo
Hi,
I need set the demo work with <mx:RemoteObject>
http://www.adobe.com/devnet/flex/articles/helloworld.html
I am new and I do not know how to change the
services-config.xml for the demo.Please help me and let me know how
to change the config file.
Thanks
MKHere is an example about coldfusion and cfc's
http://www.kylehayes.info/captivate/QueryToDatagrid/QueryToDataGrid.htm
Rgds
JFB
"mark416" <[email protected]> wrote in
message
news:fcmegj$86$[email protected]..
> Hi,
> I need set the demo work with <mx:RemoteObject>
>
>
http://www.adobe.com/devnet/flex/articles/helloworld.html
>
> I am new and I do not know how to change the
services-config.xml for the
> demo.Please help me and let me know how to change the
config file.
>
> Thanks
>
> MK
> -
Revision: 3867
Author: [email protected]
Date: 2008-10-24 07:13:10 -0700 (Fri, 24 Oct 2008)
Log Message:
Add new user-agent info to the sample services-config.xml file.
Modified Paths:
blazeds/trunk/resources/config/services-config.xmlResolved! The problem was in the php code the wizard had generated as an example and that I had edited in Dreamweaver. I had tried to start a session and set session objects in the php code. I developed if() { statements} to check the session variable before executing the function in some of my data services. Apparently the wizard does not like this. I removed all references to session. I reconfigured the input types and the return types for each service. With the code now clean the wizard created the example code and placed the proper package in the scr.services package. I still have custom php code and it executes.
Things I learned:
If the php code stops when a session variable is not available in the if statement and the data service is refreshed, the wizard will not "look" beyond the if statement.
Functions downstream of a session variable misshap will show in the data services window but the functions will have a circle icon to the left of the function name and each variable to be passed to the php code will be declared as type = Object in Flashbuilder. The input types and return types will have to be reconfigured for each non-functioning function. Simply commenting out a portion of the php code and attempting a refresh will not make it work again.
When the wizard is unable to refresh properly because of a stop in the php code it stops working completely so additional refreshes or creation of code is not carried out.
I decided to create a My SQL table for user and other identifiers rather than attempting the session object again.
Sorry, I did not make screen shots as I solved this problem. I hope the solution is not hard to visualize.
Thanks for looking and considering how to help me. I hope my solution works for you.
Maybe you are looking for
-
Paste in Place in Photoshop CS6 is not working, am I missing something?
Hey there, I've been using the Creative Suite since CS4, but still count myself as a beginner. I'm building a psd file with vectors from an ai file. I recall that in CS5 and CS5.5 I had no issue copying a vector from Illustrator and then using "paste
-
Report Writer Adding New GL Account
Hi experts, I would like to add new GL Account in the existing report in Report Writer. I do Do have following information to make changes, but I don't know where I could add new Gl Account. Library = ZRU Report Group = ZBS2 Report Name = ZBS-0002 Pl
-
Partner "10000" is not assigned to Customer "5000012" - Message No: F2182:
Hi Guru's, I am trying to assign the contact person - 10000 to the customer - 5000012 in the customer master and the system is poping up the message: Partner "10000" is not assigned to Customer "5000012": Message No: F2182 I have seperate account gro
-
URGENT. NEED AN ANSWER NOW
My brother messed with his passcode and he was locked out. I reset his iPad but now we can't remember the password to the email address we used for the AppleID. I tried looking through all my emails but none of them are getting the reset passcode ema
-
How can I play Spotify through 3G but without downloading music to my phone?
I have an iphone that does not have any capacity to download my music files. I have tried, unsuccessfully, to get itunes to play through the icloud and wondered if, by purchasing Spotify Premium, I could play all of my music through Spotfiy when I do