Managing web services in FlexBuilder - How does the manager work?

末鹿安然 提交于 2020-01-25 13:00:13

问题


In FlexBuilder 3, there are two items under the 'Data' menu to import and manage web services. After importing a webservice, I can update it with the manage option. However, the webservices seems to disappear after they are imported. The manager does however recognize that a certain WSDL URL was imported and refuses to do anything with it.

How does the manager know this, and how can I make it refresh a certain WSDL URL?


回答1:


In your src folder of the flexbuilder project you should see the generated classes. For instance, if you use the manager to generate the proxy classes for www.example.com you should see the folders /com/example with the generated proxy classes inside.

To consume these webservices in ActionScript use the statement:

"import com.example.*;"

To consume the webservice in mxml include the .as file using:

<mx:Script source="yourscriptname.as"/>

To refresh the generated proxy classes, consuming the latest WSDL, simply open the manager and select "update".

Also, I found this article very useful for consuming web services.

I hope that helps, the question was kind of vague about the problem.



来源:https://stackoverflow.com/questions/43877/managing-web-services-in-flexbuilder-how-does-the-manager-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!