DailyFX Home | Español | Français | 中文 | Deutsch | Italiano | العربية | Sverige | Ελληνικά


+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    lior.nabat is offline Registered User lior.nabat is an unknown quantity at this time
    Join Date
    May 2009
    Posts
    4

    Possible Problem with getReportUrl

    Hi,
    i'm using the getReportURL function.
    it's works fine and generate the URL.
    however, the format that i got is not what i asked.
    checkout this link:
    https://fxpa.fxcorporate.com/fxpa/ge...OUNT_STATEMENT

    - i asked to get it in XLS format and i get it in XML !!
    - when i asked XML , i get blank doc with 'Server Error .... '
    - HTML and PDF works fine.

    any insight ?

    Lior,

  2. #2
    Natalya is offline Gold Member Natalya is an unknown quantity at this time
    Join Date
    Apr 2009
    Posts
    636
    I have double checked the getReportURL function. It works fine for me. Please see the GetReportURL sample in the folder with ForexConnect (for example, the C# .NET 2.0 sample is located by default in the folder ForexConnectAPI\Sample\cs\dotnet20\SimpleSamples\NonTableManagerSamples\GetReportUrl).

    Please note that XLS format means that the report willl have the Microsoft Excel XML document format. Please see also: O2GSession.getReportURL

  3. #3
    lior.nabat is offline Registered User lior.nabat is an unknown quantity at this time
    Join Date
    May 2009
    Posts
    4
    HI,
    thanks !
    i don't think that the problem is with the function but in the server.
    the function return a link fine.
    it works with all other formats but XML.
    when i execute it ( the link in a browser)
    i get back a file contain:
    " Server error
    We apologize for inconvenience. If the problem persists, please feel free to contact the {Customer Support}."

  4. #4
    Natalya is offline Gold Member Natalya is an unknown quantity at this time
    Join Date
    Apr 2009
    Posts
    636
    Hi,

    I have discussed the issue with the developers. They have promised to fix the problem.
    For now you can use the following workaround. Just pass the 'Format' parameter in the lower case ('xml' instead of 'XML') in the O2GSession.getReportURL method. This should eliminate the error.

    I do apologize for the inconvenience.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Disclaimer: Trading foreign exchange on margin carries a high level of risk, and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to trade foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with foreign exchange trading, and seek advice from an independent financial advisor if you have any doubts. Any opinions, news, research, analyses, prices, or other information contained on this website is provided as general market commentary and does not constitute investment advice. Forex Capital Markets LLC. will not accept liability for any loss or damage, including without limitation to, any loss of profit, which may arise directly or indirectly from use of or reliance on such information.