2/6/2011 7:47:12 AM
Title:
about flex HTTPService
Hello
I am currently working on cairngorm in which i am using httpService and PHP.
I am having PHP service in which there are many functions say getName(), getValue() etc.
I want to know how to call a particular function using same httpService
I can do it with amfphp and remoteobject but my php programmer dont want to use amfphp.
So how it is possible to do it with httpService???
2/6/2011 8:12:09 AM
direct method calling is not possible when using a httpService , its only possible if you are using webService.
There is a workaround for this. you can call the same php page but can get different result depending upon the posted parameter.
say your page is a.php which have two functions getName(), getValue()
now to get name you can call the "a.php" page and post a parameter like "functionName= getname".
In php page you will receive the parameter and return the result accourding to parameter received . php code will be something like this:
if (functionName=="getname"){
//call name function
getName()
} else{
// call value function
getValue()
}
2/7/2011 12:26:36 AM
Thank You Dave for replying and giving me a simple solution
I will try it
Very Thank You