Go Back   DailyFX Forum > FXCM Products and Services > FXProgrammers > Discussion / Support Forum > Price Engine Client SDK Support

Reply
 
Thread Tools Rate Thread
  #1 (permalink)  
Old 09-25-2009, 01:53 PM
Registered User
 
Join Date: Aug 2009
Posts: 1
creoman is an unknown quantity at this point
Exclamation PEC loadStationDescriptor always returns false

Hi!
I created simple console solution in VS2008 and copied these lines of code from your example (which btw works):

Code:
if (!ConnectionManagerEx::init(true)){
		return 0;
	}

	ConnectionManagerEx::setDebug(true);
	ConnectionManagerEx::setNoReconnectAttempts(10);
	ConnectionManagerEx::setNoReloginAttempts(10);
	ConnectionManagerEx::setAsync(false);
	ConnectionManagerEx::setSecurePreferable(false);

	IUserSession* _session = ConnectionManagerEx::createUserSession("http://www.fxcorporate.com/Hosts.jsp", "develop", "PriceServer", "test1", "password1", NULL);

	bool result = _session->loadStationDescriptor();
result is always FALSE.

Please help!!!

Below is debug trace:
Quote:
HostReader::setHttpTimeout. 180000
UniversalUserSession::loadStationDescriptor.....
HostReader::read from Host develop
HostReader::getHttpContent. Start
HostReader::getHttpContent. InternetConnect. Host=www.fxcorporate.com
HostReader::getHttpContent. InternetConnect. Port=80. Done
HostReader::getHttpContent. Use method POST
HostReader::getHttpContent. HttpOpenRequest. URL=/Hosts.jsp?ID=376546500&PN=develop&SN=
HostReader::getHttpContent. Set HTTP timeout = 180000
HostReader::getHttpContent. HttpSendRequest
HostReader::getHttpContent. InternetQueryDataAvailable Start.
HostReader::getHttpContent. InternetQueryDataAvailable End. Number of available bytes 1252
HostReader::getHttpContent. InternetReadFile Start. Number of bytes to read1252
HostReader::getHttpContent. InternetReadFile End. Number of bytes received 1252
HostReader::getHttpContent. InternetQueryDataAvailable Start.
HostReader::getHttpContent. InternetQueryDataAvailable End. Number of available bytes 0
HostReader::getHttpContent. Response received
HostReader::getHttpContent. HttpQueryInfo Status Code=200
HostReader::getHttpContent. Finish. Return 1252 bytes
HostReader::read from Host. Done UniversalUserSession::loadStationDescriptor done.....
UniversalUserSession::loadStationDescriptor something wrong up there


Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




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.

All times are GMT -5. The time now is 08:00 PM.
Copyright ©2009 Daily FX. All Rights Reserved.