Web Service Data Connections


i want handle events of multiple web service methods. not sure how can achieve using flex 4 web service data connection.

 

i able achieve without using web service data connection using operation:

 

<fx:declarations> <s:webservice id = "mywebservice"                       wsdl = "http://some/url?wsdl"                       fault="alert.show(event.fault.faultstring + '\n' + event.fault.faultdetail)">             <s:operation name = "foo1"                          result= "foo1_resulthandler(event)"/>             <s:operation name = "foo2"                          result= "foo2_resulthandler(event)"/> </s:webservice> </fx:declarations> 

 

but when use web service data connection( data-> connect web service), not able access operation tag specify operation name. how can handle results multiple web service methods, above.

 

</fx:declarations> <mywebservice:mywebservice id = "mywebservice"                                         fault="alert.show(event.fault.faultstring + '\n' + event.fault.faultdetail)"> </mywebservice:mywebservice> </fx:declarations> 

 

 

-h

instead of using generated code why not built own webservice . missing

 

 


this should it...

 

  private function foo1resulthandler(event:resultevent):void {  } private function foo2resulthandler (event:resultevent):void {  }  <fx:declarations> <s:webservice id = "mywebservice"                       wsdl = "http://some/url?wsdl"                       fault="alert.show(event.fault.faultstring + '\n' + event.fault.faultdetail)">             <s:operation name = "foo1"                          result= "foo1_resulthandler(event)"/>             <s:operation name = "foo2"                          result= "foo2_resulthandler(event)"/> </s:webservice> </fx:declarations> 


More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

CS5 Adobe Media Encoder: Encode failed because the source duration is nil.

cf_sql_integer vs cf_sql_bigint vs cf_sql_int??

localhost/joomla15/administrator doesnt work - Joomla! Forum - community, help and support