Declare your web service in an mxml webservice tag and add
"getNewsDetail" as an mx:operation child node to the webservice tag.
Then give your webservice tag a name "myService" or whatever. When you
want to call the method, you do myService.getNewsDetail().

 

Of course the call will only work if you specified a valid wsdl, and
that wsdl contains the getNewsDetail method defined in it.

 

Karl

Cynergy

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Arun Sadasivan
Sent: Friday, March 02, 2007 11:46 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] problem in calling a webservice
GBLNewsService.getNewsDetail

 

Hi ,
:
 i had registered a webservice created in php as the following:

GBLNewsService.getNewsDetail      (classname.method name)  Since the
method made as webservice is a function of the class GBLNewsService. 

Now the problem is  how can i call this webserice in flex using the
Webservice component.
When i tried to call it like GBLNewsService.getNewsDetail as i do in
other php clients it is giving me error. 
All examples are also showing callng of a webservice in flex like
"getNewsDetail"  only.

So either provider or client should have some option to solve this
problem. 

Can anybody here help me . Really i got stuck with this problem.


-- 
Regards,
           ...Arun 

 

Reply via email to