Expand my Community achievements bar.

Service Scope

Avatar

Level 1
If I call a webservice that is generated using axis2, and is
set to have a scope of session, how do I force the scope to session
using flex?

Do I have to setup an destination entry in a
services-config.xml file? If so, how?



The services I have now work fine using the mx:webservice
mxml construct but all the scope is forced to "request".

I need a good example to follow.



Help!!



Ex:

<mx:WebService id="ws"

wsdl="
http://...?wsdl"

showBusyCursor="true"

useProxy="false"

result="getIEventData(event)"

>

<mx:operation name="getDataVoiceEvents"
resultFormat="xml"> ... </mx:operation>

</ms:WebService>
1 Reply

Avatar

Former Community Member
Hello Dan,



WebService sessions should be based on cookies. So long as
your server sets

the right cookie and as long as the Flash Player keeps on
sending those cookies

with each request you should maintain your session.







> If I call a webservice that is generated using axis2,
and is set to

> have a

> scope of session, how do I force the scope to session
using flex?

> Do I have to setup an destination entry in a
services-config.xml

> file? If so,

> how?

> The services I have now work fine using the
mx:webservice mxml

> construct but

> all the scope is forced to "request".

> I need a good example to follow.

> Help!!

>

> Ex:

> <mx:WebService id="ws"

> wsdl="
http://...?wsdl"

> showBusyCursor="true"

> useProxy="false"

> result="getIEventData(event)"

> <mx:operation name="getDataVoiceEvents"
resultFormat="xml"> ...

> </mx:operation>

> </ms:WebService>