Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User ram4soft's Avatar
    Join Date
    Jul 2007
    Posts
    279
    Hello,
    I experienced a problem with "Purchase Ticket Verification API" my back end server follows this url and the sent data is:
    Code:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?><PurchaseVerificationRequest xmlns="http://payment.ovi.com/iap"><PurchaseTicket transactionId="203491061159" transactionTime="2011-09-30T22:22:04.000Z" productId="675193" applicationId="675199" accountId="70a956379cf106702bc1704f682fd38775f101d4cfe5c95e66669f4cb3dab20ccb2b0c9c9aa87925aa962ce9710649bd2b42acf4c389967e036f1596c4c8d4da" imei="da770ec91053e736bc1c4af77551d57a915d7f46ca504df2ca1e06d4246d6102e228694096f809bc664986b93ed0e635c295bd1c9b214947387ba28672a7b6f1" imsi="da4d9c98a784b9f5f35a4584e68f7a9f01ff993d5256975cfbe209346104fd78cd8e3af072f3d41a490600d5cc4aaf140e3cb82650e3c5756255c296953eabe4" signature="7bd5cd30576996a90cdac1c61a9f4e43d59242c1"/></PurchaseVerificationRequest>
    but it got "bad request 404"
    kindly try to solve this problem
    thanks
    Ram

  2. #2
    Registered User ram4soft's Avatar
    Join Date
    Jul 2007
    Posts
    279
    here is my used code in C#
    Code:
    internal XmlDocument OVIReciecpt(string TransactionID,
                                string TransactionTime,
                                string ProductId,
                                string ApplicationId,
                                string AccountId,
                                string imei,
                                string imsi,
                                string Signature)
        {
            XmlDocument XMLReturn = new XmlDocument();
    
            string url = "https://payment.ovi.com/iap/1.0/purchases/verify?method=GET";
    
            HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
            request.Method = "POST";
            request.ContentType = "application/x-www-form-urlencoded; charset=UTF-8";
            Stream dataStream = request.GetRequestStream();
            request.Timeout = 100000;
            string postData = String.Format("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>" +
                                "<PurchaseVerificationRequest xmlns=\"http://payment.ovi.com/iap\">" +
                                "<PurchaseTicket" +
                                " transactionId=\"{0}\"" +
                                " transactionTime=\"{1}\"" +
                                " productId=\"{2}\"" +
                                " applicationId=\"{3}\"" +
                                " accountId=\"{4}\"" +
                                " imei=\"{5}\"" +
                                " imsi=\"{6}\"" +
                                " signature=\"{7}\"/>" +
                                "</PurchaseVerificationRequest>",
    
                                TransactionID,
                                TransactionTime,
                                ProductId,
                                ApplicationId,
                                AccountId,
                                imei,
                                imsi,
                                Signature);
    
            //XmlDocument doc = new XmlDocument();
            //doc.LoadXml(postData);
    
            //XmlSerializer ser = new XmlSerializer(postData.GetType());
            //ser.Serialize(dataStream, postData);
    
            byte[] byteArray = Encoding.UTF8.GetBytes(postData);
            dataStream.Write(byteArray, 0, byteArray.Length);
            dataStream.Close();
    
            HttpWebResponse response = (HttpWebResponse)request.GetResponse();
            StreamReader reader = new StreamReader(response.GetResponseStream());
            string pageContents = reader.ReadToEnd();
            if (pageContents.Contains("OK"))
                XMLReturn =  getVideosXML(int.Parse(ProductId));
    
            return XMLReturn;
        }

  3. #3
    Registered User pablopoo's Avatar
    Join Date
    Nov 2008
    Location
    Chile
    Posts
    21
    Hi,

    the post parameter "content" is not present:

    Code:
    string postData = String.Format("content=<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>"
    Just add content=
    --
    Pablo

  4. #4
    Registered User ram4soft's Avatar
    Join Date
    Jul 2007
    Posts
    279
    Thanks Pablo so much the "content" solved the problem
    Ram

Similar Threads

  1. Symbian Account verification problem
    By jsscb in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 5
    Last Post: 2012-06-22, 14:54
  2. Account Verification Problem
    By TheOtherUser in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 4
    Last Post: 2011-07-22, 13:39
  3. S60 Verification problem
    By Kathyqe in forum Feedback - Nokia Developer Services
    Replies: 4
    Last Post: 2010-01-19, 14:04
  4. j2me Midlet Verification/Validation Problem
    By Nikolaos in forum Mobile Java Networking & Messaging & Security
    Replies: 5
    Last Post: 2008-06-16, 16:31
  5. S60 (FP1) Installation/Verification Problem
    By Kathyqe in forum Tools and SDK Feedback (Closed)
    Replies: 5
    Last Post: 2007-03-10, 18:36

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved