You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2019/09/05 09:27:13 UTC

[GitHub] [royale-asjs] greg-dove edited a comment on issue #466: HTTPRequest returns a result with OPTIONS but not POST

greg-dove edited a comment on issue #466: HTTPRequest returns a result with OPTIONS but not POST
URL: https://github.com/apache/royale-asjs/issues/466#issuecomment-528280063
 
 
   [Edited to get XML formatting to appear in the comment]
   Hi Fred, I took another look at this. It's actually working in terms of the sequence I think, but not decoding the xml to the requested:
   
   service.resultFormat = HTTPService.RESULT_FORMAT_OBJECT;
   
   you can print the result in the result handler with
   resultEvent.message.body
   
   instead of resultEvent.result
   
   I switched it to:
   RESULT_FORMAT_E4X
   
   and that makes the attempt to create the result as XML
   but gives:
   ```
    [RPC Fault faultString="Error #1088: The markup in the document following the root element must be well-formed." faultCode="Client.CouldNotDecode" faultDetail="null"]
   ```
   
   because the XML seems to be missing a root tag:
   ```
   <?xml version="1.0" encoding="utf-8"?><success>false</success><retryable>false</retryable><localStatus>SESSION_NO_SUCH_CUSTOMER</localStatus>
   ```
   There might still be bugs or things to improve, but I think it's working for the most part.
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services