Note that there are some explanatory texts on larger screens.

plurals
  1. POAdobe AIR & Web Service Call. Errors with Error #1085: The element type "br" must be terminated by the matching end-tag "</br>"
    primarykey
    data
    text
    <p>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. </p> <p>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.</p> <pre><code>[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; } } </code></pre> <p>and my call from adobe AIR code as below</p> <pre><code>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 "&lt;/br&gt;". */ /* 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 */ } </code></pre> <hr> <p>This guy tells us following in page <a href="http://verveguy.blogspot.com/2008/07/truth-about-flex-httpservice.html" rel="nofollow">http://verveguy.blogspot.com/2008/07/truth-about-flex-httpservice.html</a></p> <ol> <li>All HTTP GET requests are stripped of headers. It's not in the Flex stack so it's probably the underlying Flash player runtime.</li> <li>All HTTP GET requests that have content type other than "application/x-www-form-url-encoded" are turned into POST requests</li> <li>All HTTP POST requests that have no actual posted data are turned into GET requests. See 1/ and 2/</li> <li>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.</li> </ol> <p>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 ?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload