Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6663691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:31:37+00:00 2026-05-26T02:31:37+00:00

I am trying to call a webservice using proxy. My settings for proxy-config on

  • 0

I am trying to call a webservice using proxy. My settings for proxy-config on blazeds side are as below:

<destination id="ws-catalog">
    <properties>
        <wsdl>http://feeds.adobe.com/webservices/mxna2.cfc?wsdl</wsdl>
        <soap>*</soap>
    </properties>
    <adapter ref="soap-proxy"/>
</destination>

On Adobe AIR side, my code is:

<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" 
                       xmlns:s="library://ns.adobe.com/flex/spark" 
                       xmlns:mx="library://ns.adobe.com/flex/mx"
                       creationComplete="loadConfiguration()">
    <s:layout>
        <s:VerticalLayout/>
    </s:layout>

    <fx:Script>
        <![CDATA[
            import mx.messaging.ChannelSet;
            import mx.messaging.channels.AMFChannel;
            import mx.rpc.events.FaultEvent;
            import mx.rpc.events.ResultEvent;
            [Bindable]
            private var cs:ChannelSet;

            private function loadConfiguration():void
            {
                var amfChannel:AMFChannel = new AMFChannel("my-amf", 'http://localhost:8400/messagebroker/amf');
                cs = new ChannelSet();
                cs.addChannel(amfChannel);
            }

            protected function ws_resultHandler(event:ResultEvent):void
            {
                var obj:Object = event.result;
            }

            protected function ws_faultHandler(event:FaultEvent):void
            {
                var faultObj:Object = event.fault;
            }

            protected function button1_clickHandler(event:MouseEvent):void
            {
                ws.getOperation('getFeeds').send();
            }

        ]]>
    </fx:Script>

    <fx:Declarations>
        <s:WebService id="ws" 
                      channelSet="{cs}"
                      useProxy="true" 
                      destination="ws-catalog"
                      showBusyCursor="true"
                      result="ws_resultHandler(event)"
                      fault="ws_faultHandler(event)"
                      />
    </fx:Declarations>
    <s:Button label="CallWebService" click="button1_clickHandler(event)"/>
</s:WindowedApplication>

But now, whenever I launch my AIR app, am getting following error:

faultCode: InvokeFailed
faultDetail: Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (null)
faultString: [MessagingError message='Destination 'ws-catalog' either does not exist or the destination has no channels defined (and the application does not define any default channels.)']

Can somebody help me OR point me to a similar solution?
Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T02:31:37+00:00Added an answer on May 26, 2026 at 2:31 am

    Please check the code below. It works on my machine. You need to wait a couple of seconds, getFeeds returns a lot of data.

    <?xml version="1.0" encoding="utf-8"?>
    

    <fx:Script>
        <![CDATA[
            import mx.messaging.ChannelSet;
            import mx.messaging.channels.AMFChannel;
            import mx.rpc.events.FaultEvent;
            import mx.rpc.events.ResultEvent;
            import mx.rpc.soap.LoadEvent;
            import mx.rpc.soap.mxml.*;
            import mx.rpc.wsdl.WSDLOperation;
            [Bindable]
            private var cs:ChannelSet;
            [Bindable]
            var gateway:WebService
    
            private function loadConfiguration():void{
                var amfChannel:AMFChannel = new AMFChannel("my-amf", 'http://localhost:8400/samples/messagebroker/amf');
                cs = new ChannelSet();
                cs.addChannel(amfChannel);
                gateway = new WebService();
                gateway.channelSet = cs;
                gateway.destination = "ws-catalog";
                gateway.useProxy = true;
                gateway.addEventListener(ResultEvent.RESULT,ws_resultHandler);
                gateway.addEventListener(FaultEvent.FAULT,ws_faultHandler);
                gateway.loadWSDL();
            }
    
            protected function ws_resultHandler(event:ResultEvent):void{
                var obj:Object = event.result;
                trace("ok");
            }
    
            protected function ws_faultHandler(event:FaultEvent):void{
                var faultObj:Object = event.fault;
                trace("nok");
                trace(faultObj);
            }
    
            protected function button1_clickHandler(event:MouseEvent):void{
                gateway.getFeeds();
            }
    
    
        ]]>
    </fx:Script>
    
    <s:Button label="CallWebService" click="button1_clickHandler(event)"/>
    

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to call a webservice using ssl. How do i get the
I'm trying to call a php webservice using WCF. I googled some public php
I am trying to call a webservice using WCF that uses the following encoding:
I am playing around trying to call a simple SOAP webservice using the following
I'm trying to call an ASP.NET .asmx webservice, from javascript, using other than the
I'm trying to use groovy ws to call a webservice. One of the properties
I'm trying to call an AspNet WebService (C# 3.5) from PHP (5.3.5) using NuSoap.
I am trying to call the FedEx tracking webservice. Currently I am running the
I am trying to call an ASMX from jQuery using JSON and get a
I developed a webservice in .net and I'm trying to call it in Android.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.