如何使用httpservices在flex中检索WCF服务链接

发布于 2024-12-24 16:44:42 字数 688 浏览 2 评论 0 原文

我想使用 FLEX 4.5 检索类似于 wsdl 链接(WCF 服务 URL)的服务器内容。我还没有在 FLEX 上使用过 Web 服务。我曾使用 httpservices 进行 xml 数据检索,其中我有本地 xml 数据。现在,我正在尝试检索服务器内容。我已经提供了服务链接、方法名称和 xml 标签。 (看起来像参数)..由于这是我第一次尝试服务器内容,我需要一些帮助。非常感谢您的帮助..提前致谢...如果我能得到一个关于网络服务的示例项目那就更好了。

这就是我正在尝试的。服务链接如下。
http://mfsapi.blisslogix.net/RSS_FEEDS_SERVICE.svc
当我点击此链接时,我会收到以下链接。 http://mfsapi.blisslogix.net/RSS_FEEDS_SERVICE.svc?wsdl

我可以在哪里看到很多标签。

我正在使用 HTTPSERVICES 和 WEBSERVICES 来解决这个问题,但我没有获取 xml 数据。我想我在传递参数时犯了一些错误。请引导我完成如何使用此链接传递方法和参数的步骤。

I want to retrieve server content which is like wsdl link(WCF service URL)using FLEX 4.5.. I haven't worked with webservices on FLEX. I have worked with xml data retrieval using httpservices where I had a local xml datas. Right now, i am trying to retrieve a server content. I have provided with the service link, method name and xml tags. (seems like parameters).. Since this is the first time im trying the server content, I need some help. Your help is highly appreciated.. thanks in advance... Would be better if i can get a sample project on webservices.

This is what I'm trying. The service link is below.
http://mfsapi.blisslogix.net/RSS_FEEDS_SERVICE.svc
When I click on this link, i'm getting the below link.
http://mfsapi.blisslogix.net/RSS_FEEDS_SERVICE.svc?wsdl

where I can see a lot of tags.

I am using HTTPSERVICES and WEBSERVICES to work on this issue and i'm not getting the xml data. I guess I did some mistake on passing the parameters. Please walk me through the steps how can I pass the method and parameters with this link..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

猫九 2024-12-31 16:44:42

首先,您需要创建一个 WebService 标记。或者使用 ActionScript 类型的 WebService 对象。

<mx:WebService id="myWebService"
                   useProxy="false"
                   showBusyCursor="true"
                   load="OnServiceLoad(event)"
                   fault="OnFault(event)">      
        <s:operation name="GetInformation" result="onLoad(event)" fault="onFault(event)">           
        </s:operation>
</mx:WebService>

然后您需要指定 WSDL 文档位置并加载它。

myWebService.loadWSDL("http://mfsapi.blisslogix.net/RSS_FEEDS_SERVICE.svc?wsdl");

然后您可以简单地调用 WebService 标记中指定的操作。

myWebService.GetInformation();

这是一个链接”。

First you need to create a WebService tag. Or use ActionScript an object of type WebService.

<mx:WebService id="myWebService"
                   useProxy="false"
                   showBusyCursor="true"
                   load="OnServiceLoad(event)"
                   fault="OnFault(event)">      
        <s:operation name="GetInformation" result="onLoad(event)" fault="onFault(event)">           
        </s:operation>
</mx:WebService>

Then you need to specify the WSDL document location and load it.

myWebService.loadWSDL("http://mfsapi.blisslogix.net/RSS_FEEDS_SERVICE.svc?wsdl");

Then you can simply call the operations specified in the WebService tag.

myWebService.GetInformation();

Here is a link on how to communicate with web services using MXML and AS.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文