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

  • Home
  • SEARCH
  • 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 449225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T21:44:54+00:00 2026-05-12T21:44:54+00:00

I am using BlazeDS java client to get info from this page . This

  • 0

I am using BlazeDS java client to get info from this page.
This page has a form in the middle that when you select a type, the location combo on the button gets updated.

I am trying to use BlazeDS to get those values in java.
I have been using Charles web proxy to debug, and this are the screenshots from the request and the response:

My code so far is the following:

        // Create the AMF connection.
        AMFConnection amfConnection = new AMFConnection();

        // Connect to the remote url.
        String url = "http://orlandoinfo.com/flex2gateway/";
        try
        {
            amfConnection.connect(url);
        }
        catch (ClientStatusException cse)
        {
            System.out.println(cse);
            return;
        }

        // Make a remoting call and retrieve the result.
        try
        {
//          amfConnection.registerAlias("flex.messaging.io.ArrayCollection", "flex.messaging.io.ArrayCollection");
            amfConnection.call("ColdFusion.getLocations", new Object[] {"consumer", "attractions", "ATTR"});

        }

        catch (ClientStatusException cse)
        {
            System.out.println(cse);
        }
        catch (ServerStatusException sse)
        {
            System.out.println(sse);
        }

        // Close the connection.
        amfConnection.close();

When I run it I get a:

ServerStatusException 
    data: ASObject(15401342){message=Unable to find source to invoke, rootCause=null, details=null, code=Server.Processing}
    HttpResponseInfo: HttpResponseInfo 
    code: 200
    message: OK

Can anyone spot what’s wrong?

Thanks for reading!

  • 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-12T21:44:54+00:00Added an answer on May 12, 2026 at 9:44 pm

    I ended up using Charles Web Proxy. Sniffing AMF parameters and running my code with -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=8888

    I compare both calls and modify to look alike.
    The working code looks like this:

    String url = "http://www.theGateWayurl.com";
    // Generates the connection to the amf gateway.
    AMFConnection amfConnection = new AMFConnection();
    
    // Must register the class that this library will use to load the
    // AMF object information.
    // The library will read AMF object variables and use setters from
    // the java bean stated in this line.
    AMFConnection.registerAlias("", new LabelData().getClass().getName());
    
    try {
        // Do the connection.
        amfConnection.connect(url);
    
        // This page requires a certain headers to function.
        // The Content-type is used to sniff with Charles Web Proxy.
        amfConnection.addHttpRequestHeader("Content-type", "application/x-amf");
        // The Referer is used by the webpage to allow gathering information.
        amfConnection.addHttpRequestHeader("Referer", "http://orlandoinfo.com/ws/b2c/sitesearch/customtags/comSearch.swf");
    
        // The rest of the HTTP POST sent by this library is wrapped
        // inside a RemotingMessage.
        // Prepare the msg to send.
        RemotingMessage msg = new RemotingMessage();
    
        // The method called in the server.
        msg.setOperation("getLocations");
    
        // Where the request came from. Similar to referer.
        msg.setSource("ws.b2c.sitesearch.components.myService");
    
        // The destination is a needed parameter.
        msg.setDestination("ColdFusion");
    
        // Create the body with the parameters needed to call the
        // operation set with setOperation()
        msg.setBody(new Object[] {"consumer", "attractions"});
    
        // This is needed but not used.
        msg.setMessageId("xxxxxxxxxx");
    
        // Send the msg.
        AcknowledgeMessage reply = (AcknowledgeMessage) amfConnection.call("null", msg);
    
        // Parse the reply from the server.
        ArrayCollection body = (ArrayCollection) reply.getBody();
        for (Object obj : body) {
            LabelData location = (LabelData) obj;
            // Do something with the info.
        }
    
    } catch (ClientStatusException cse) {
        // Do something with the exception.
    
    } catch (ServerStatusException sse) {
        // Do something with the exception.
    } finally {
        amfConnection.close();
    }
    

    The LabelData is just a java bean with with two vars: Data and Label.
    I tried to comment every line for a better understanding.
    Take into account what Stu mention in previous comments about crossdomain.xml to see if you have the rights to do this kind of things.

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

Sidebar

Ask A Question

Stats

  • Questions 221k
  • Answers 222k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You mean like an autocomplete ? If you use jQuery… May 13, 2026 at 12:16 am
  • Editorial Team
    Editorial Team added an answer Without any backend stuff your only option is using a… May 13, 2026 at 12:16 am
  • Editorial Team
    Editorial Team added an answer As I found in this post, .gitignore only works for… May 13, 2026 at 12:16 am

Related Questions

I'm writing a Flex app on top of a Java web application using BlazeDS.
I am confused about authentication with BlazeDS. Most of the few examples I have
First post here... I normally develop using PHP and Symfony with Propel and ActionScript
I am a newbie trying to figure out the pros and cons of using

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.