Page 1 of 2 12 LastLast
Results 1 to 15 of 24
  1. #1
    gld1881
    Guest

    Default Create Demo Account

    I used webservice to create a demo account, but I am getting only null value.

    I already replace "74.54.46.178/vertexweb10" with my one and passing below information-

    fname
    tel
    userid
    email
    Address
    deposit
    country
    IPAddress

  2. #2
    b_morar
    Guest

    Post WCF-Create demo account

    Dear Sir,


    Create demo account feature using WCF has been disabled by your dealing room.

    Please contact with your dealing room to enable it .

  3. #3
    gld1881
    Guest

    Default

    now its working but now account is created on vertex system.

    I already replace 74.54.46.178/vertexweb10 with main, but still account is created on vertex system. why it is so please clarify.

  4. #4
    b_morar
    Guest

    Post

    Dear Sir,


    The following sample describe how create account:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    <head>
    
        <title>CreateDemoAccount</title>
    
    <script src="http://code.jquery.com/jquery-latest.js"></script>
    
    </head>
    
     <script  type="text/javascript" >
    
        $(document).ready(function () {
    
    
    
            var urlStr = "http://5.153.9.98/webtrader/WebService.svc";
    
            jQuery.support.cors = true;
    
            $("#progress").ajaxStart(function () { $(this).css("display", "block"); });
    
            $("#progress").ajaxComplete(function () { $(this).css("display", "none"); });
    
            function onSuccessResult(response) {
    
                response = eval('(' + response + ')')
    
                if (response.UserId == -1 || response.UserId == -207) {
    
                    $("#resultData").html("Invalid username or password");
    
                }
    
                else if (response.UserId == -231) {
    
                    $("#resultData").html("You must have at least one account");
    
                }
    
                else if (response == null || response == "" || response.UserId < 0) {
    
                    $("#resultData").html("Error while login.Please try later");
    
                }
    
                else {
    
                    $("#resultData").html("SuccessResult ... UserId is :" + response.UserId);
    
                }
    
            }
    
            $("#resultAction").ajaxError(function (result) { $(this).html('An error occured'); });
    
            function onErrorResult(result) {
    
                alert('Service call faild : ' + result.status + ' ' + result.statusText);
    
            }
    
            $("#btnAction").click(function () {
    
                $.getJSON(urlStr + "/CreateDemoAccount?fname=" + $("#txtfname").val() + "&tel=" + $("#txttel").val() + "&email=" + $("#txtemail").val() + "&address=" + $("#txtaddress").val() + "&deposit=" + $("#txtdeposit").val() + "&country=" + $("#txtcountry").val() + "&IPAddress=" + $("#txtIPAddress").val() + "&callback=?" , onSuccessResultOrder);
    
                function onSuccessResultOrder(dataResult) {
    
                    var rst = "";
    
                    var result = eval('(' + dataResult + ')');
    
                    if (result.UserName == "WAITDEMO") {
    
                        rst = "Could not create Demo account at this time, Please try again later"
    
                    }
    
                    else if (result.UserName == "ERRDEMO") {
    
                        rst = "Could not create Demo account at this time, Please Check your data or try again later";
    
                    }
    
                    else {
    
                        rst = "UserName is : " + result.UserName + "<br/>"
    
                        rst += "Password was sent to your email: " + result.Email;
    
                    }
    
                    $("#resultAction").html(rst);
    
                }
    
            });
    
        });
    
    </script>
    
    <body>
    
    <table border="1px">
    
    <tbody>
    
    <tr>
    
    <td>fname:<input type="text" id="txtfname" value="websample"/>
    
    tel: <input type="text" id="txttel" value="079864232"/>
    
    </td>
    
    </tr>
    
    <tr>
    
    <td>email:<input type="text" id="txtemail" value="support@hyrid-solutions.com"/>
    
       address: <input type="text" id="txtaddress" value="Jordan-Amman"/>
    
    </td>
    
    </tr>
    
    <tr>
    
    <td>deposit:<input type="text" id="txtdeposit" value="50000"/>
    
       country: <input type="text" id="txtcountry" value="Jordan"/>
    
       IPAddress:<input type="text" id="txtIPAddress" value="hybrid-solutions"/> 
    
    </td>
    
    </tr>
    
    <tr>
    
    <td><button id="btnAction"> CreateDemoAccount </button></td>
    
    </tr>
    
    </tbody>
    
    </table>
    
    <div id="resultData"> </div>
    
    <div id="resultAction"> </div>
    
    <div style="display:none" id="progress">Loading ... </div>
    
    </body>
    
    </html>
    The problem was you used invalid WCF link, The correct is:
    http://5.153.9.98/webtrader/WebService.svc

  5. #5
    gld1881
    Guest

    Default

    when i use above program to create demo account it create account on vertex server and deliver below email message on my email which i used in this form -

    Dear Sir/Madam, Welcome To VertexFX Web Trader version 10.
    Thank you websample for creating a demo account with .
    Below are your login information:
    Username: USER2522
    Password: 0R2N
    Note: All transactions that will be made using this account (Demo Account) are fake transactions and not real transactions. Fake transactions are originated automatically from the price feed and are not originated or placed or executed in any exchange.


    This is same as i am getting previously, but i want to create account on my server not on vertex. So please if you understand my problem, provide solution for it. If you need any further clarifications please do not hesitate to call me at +971 4 4270833

    thanks

  6. #6
    Salah-HS
    Guest

    Post

    Dear sir,

    This email is sent according to your Web Service settings. If you want to update the email body, kindly open a ticket with our technical support team and they will assist you further. But the demo account is opened correctly at your server since we used the Web Service of your system in the code.

    Let me know if anything else needed

  7. #7
    gld1881
    Guest

    Default

    I am very sorry not to explain you, what i want. Ok let me try once again.

    Currently we are using http://www.gld1881.com/investment.php?p=28 which contain http://5.10.73.87/GLDDemo/ in iframe to create a online demo account for client. Once client submit this form, demo account created on webtrader which is also reflected on our backoffice application.

    Now i have created a form with similar fields and use webservice to create similar online demo account. Which must reflect on our backoffice application. But it is not reflecting on our backoffice application.

    For this purpose i need a webservice. I hope this explanation will give you some more clarity. If you have any other query feel free to call us on phone.

  8. #8
    Salah-HS
    Guest

    Post

    You are welcome Sir
    kindly let me check the case, I will update you soon.

  9. #9
    Salah-HS
    Guest

    Post Refresh Accounts

    Dear Sir,


    Kindly try the "Refresh account" button in your backoffice if the new demo account doesn't appear.
    please check it now and update me.

  10. #10
    gld1881
    Guest

    Default

    Account is created at backoffice application but it is under GLD1881 Demo in account tree, but if I create account using http://5.10.73.87/GLDDemo/ it is created under Web Form Accounts within STD Bullion GRP in account tree. Email format is also not similar is both these cases.

    Now please tell me how can i create an account, using my program, under particular section of account tree.

  11. #11
    Administrator Hassan-HS's Avatar
    Join Date
    Jun 2013
    Posts
    795

    Post Creating Demo Account.

    Dear Sir,

    To add the new demo account under demo accounts tree, You should provide your developer with:
    1- A dealer that is have a privilege on demo accounts tree.
    2-The username of the group.


    As for the email format you can change it by opening a ticket to our support department.

    Please dont hesitate to contact me if you have any further questions

  12. #12
    gld1881
    Guest

    Default

    If i have these information which part of coding should i use it. please refer to my earlier posting for code, which i am using.

  13. #13
    Administrator Hassan-HS's Avatar
    Join Date
    Jun 2013
    Posts
    795

    Post Creating Demo Account.

    Dear Sir,


    This issue belongs to your developers, So you should contact your ISV to help you.

  14. #14
    gld1881
    Guest

    Default

    what this ISV stand for?

  15. #15
    b_morar
    Guest

    Post

    Dear Sir,

    Independent Software Vendor (ISV) Partnership Program is a dedicated program for Software and IT companies that have the interest in developing Software applications, Plugins, Trading Scripts using VertexFX API's and development Toolkit.
    You can find a detailed description for this ISV in the following link:
    http://www.hybrid-solutions.com/sales/partnership/isv-program.html

    What I meant, is that you have to contact your developer who made this form to you in order to know where to put these information.

    Let me know if anything else needed.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Unable to get account summary and open positions from demo account
    By nhasan in forum VertexFX API/VTL Forum
    Replies: 15
    Last Post: 07-11-2013, 04:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •