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 7039709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:49:52+00:00 2026-05-28T01:49:52+00:00

Here is my simple code, which works fine if called from php or any

  • 0

Here is my simple code, which works fine if called from php or any other client then adobe air. Same code also works from calling from SWF, there is fluorineFX code for other part of project as well, but then it doesn’t do anything to break this.

I do find one thing that all POST calls were somehow changing to GET, which really amazes me. I would be so glad to get the answer for this. Thanks in Advance everyone. Below is the almost same code from my web service. with AIR code just under it.

[WebMethod(EnableSession = true)]
public bool Authenticate(string UserName,string Password)
{
    try
    {
        if (Membership.ValidateUser(UserName, Password)){
            FormsAuthentication.SetAuthCookie(UserName, true);
            return true;
        }
        return false;
    }
    catch (Exception ex)
    {
        return false;
    }
}

and my call from adobe AIR code as below

var ws:WebService = new WebService();
ws.wsdl="http://mysite.com/myservice.asmx?WSDL";
ws.useProxy=false;
ws.addEventListener(LoadEvent.LOAD,onWSDLLoad);
ws.loadWSDL();
ws.Authenticate.addEventListener(ResultEvent.RESULT,resultHandler);
ws.Authenticate.addEventListener(FaultEvent.FAULT,onLoginFaultHandler);
ws.Authenticate("usrname","password");

protected function onLoginFaultHandler(event:FaultEvent):void
{
    Alert.show('Login Failed with messsage\r\n[ '+event.fault.faultString+' ]');
    /* Error #1085: The element type "br" must be terminated
      by the matching end-tag "</br>". */
       /* checking the content value of fault event shows
      same out put as http://mysite.com/myservice.asmx */
}

protected function onLoginResultHandler(event:ResultEvent):void
{
    /* on success code */
}

This guy tells us following in page http://verveguy.blogspot.com/2008/07/truth-about-flex-httpservice.html

  1. All HTTP GET requests are stripped of headers. It’s not in the Flex stack so it’s probably the underlying Flash player runtime.
  2. All HTTP GET requests that have content type other than “application/x-www-form-url-encoded” are turned into POST requests
  3. All HTTP POST requests that have no actual posted data are turned into GET requests. See 1/ and 2/
  4. All HTTP PUT and HTTP DELETE requests are turned into POST requests. This appears to be a browser limitation that the Flash player is stuck with.

I do see my request above turns into GET, but then I DO have post values in it. OR if those are somehow are not sent or recorded by Web Service Object ?

  • 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-28T01:49:53+00:00Added an answer on May 28, 2026 at 1:49 am

    I finally found the answer myself. turns out I was having cookies set to AutoDetect. Which meant that the AIR would call a URL and it would need to redirect to keep the cookie/session value in side the URI itself.

    Now I switched that to UseCookies and Everything is back to normal. I could test this from a sample web services and realized it was the server-side that was doing something wrong. And from AIR to Browser that’s the only difference of cookies.

    Somehow nusoap for PHP is smart to know that there is AutoDetect or New URI of the Web Services available. But AIR couldn’t locate that. Anyways Thanks everyone for helping me solve this.

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

Sidebar

Related Questions

here is a simple threading program which works fine: import psycopg2 import threading import
Here I tried simple service program. Start service works fine and generates Toast but
Here is some simple code: DIR* pd = opendir(xxxx); struct dirent *cur; while (cur
Here is a simple code that shows what I think is a bug when
So here is the simple code: [System.ComponentModel.DefaultValue(true)] public bool AnyValue { get; set; }
I've got a quite strange problem here. I'm calling some simple code via Ajax.Updater:
Here is a simple piece of code: import java.io.*; public class Read { public
enter code here Hi All, I have a simple windows service application that connects
I'll make it simple, here's the code I've got. public ActionResult DeleteNonCIStaffUser(int id) {
What is the best way to implement simple pagination? Here is the code im

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.