Latest post Wed, Apr 15 2015 12:20 PM by olenad. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • Mon, Apr 13 2015 10:37 AM

    • giapnt
    • Not Ranked
    • Joined on Sat, Nov 22 2014
    • Posts 5
    • Points 55

    iNEWS API with Java

    Dear,

    In C#, the web service will provide a class called CookieContainer which will store the session after INewsSystem call login, so other services such as INewsQueue can use as followed
    CookieContainer cookieJar = new CookieContainer();
    _svc.CookieContainer = cookieJar;
    _qsvc.CookieContainer = cookieJar;

    However, we don’t have a similar container in Java, so the question is, how do we handle the cookies in this case? After logged in successfully with
    response = _svc.getINEWSSystemPort().connect(connect);

    We try to call setCurrentQueue from INEWSQueue but this prompts error saying we must login first. Could anyone share us some opinions here? 

    Best regards,

    Giap

     

    Filed under:
  • Tue, Apr 14 2015 10:16 AM In reply to

    • olenad
    • Not Ranked
    • Joined on Thu, Nov 6 2014
    • Posts 34
    • Points 375

    Re: iNEWS API with Java

    Hi Giap, 

     

    Your question is about difference between C# and Java languages and I am not sure if I can find JAVA expert to help you with the answer.

    I'll be back to you if I will.

     

    Thanks,

    Olena

  • Wed, Apr 15 2015 3:05 AM In reply to

    • giapnt
    • Not Ranked
    • Joined on Sat, Nov 22 2014
    • Posts 5
    • Points 55

    Re: iNEWS API with Java

    Hi Olena,

    Thank you for your attention!

    Looking for the feedback.

    Best regards,

    Giap

  • Wed, Apr 15 2015 12:20 PM In reply to

    • olenad
    • Not Ranked
    • Joined on Thu, Nov 6 2014
    • Posts 34
    • Points 375

    Re: iNEWS API with Java

    Hi Giap,

     

    I do not have some examples for you since I nobody here has such experience.

    But it is recommended to google for "cookie in HttpComponents" hints since JAVA uses this modules to handle web connections: it has HttpClient, Coockie class etc.

    Hope this helps.

     

    Thanks,

    Olena

Page 1 of 1 (4 items)

© Copyright 2011 Avid Technology, Inc.  Terms of Use |  Privacy Policy |  Site Map |  Find a Reseller