Skip to main content
15-Moonstone
Oct 27, 2016 12:57 PM UTC
Question

REcommendation existing how to handle Sessions using Web Services?

First of all:  We are running right now  Integrity 10.4.

I'm facing from time to time trouble with Web Services commands (for eg. getConfigurationPath), but I can't say why.

I postulate maybe a problem with the Session Handling  or  Timeout trouble.

Usually for periodic activity every hour (for example) I prepare a set of commands beginning with connect and ending with disconnect.

In the Documentation for Web Service I've found this inf (document:  WebServicesReference_Integrity_10_4.pdf, page 67):

checkconnection.jpg

Does anyone have experiences with such an approach?

Our server's timeout settings are as short as possible ....

Thanks for every hint.

Klaus

    8 replies

    16-Pearl
    Oct 27, 2016 5:02 PM UTC

    Hello Klaus Hoppe‌,

    If you don't disconnect and reconnect, does the session still get disconnected?

    Kind Regards,

    Kael

    Translate
    5-Regular Member
    Nov 1, 2016 9:43 PM UTC

    Hi Klaus,

    How are these web services being used, or in what context?  It sounds like your issue, is that the web service session is held too long?  You don't mean it's getting disconnected too soon, do you?  Web services does its own management of sessions, so it may be for your use-case, it's not releasing them soon enough?

    Are triggers fired or involved here, at all?

    I ask, because if I remember correctly, there are trigger related issues that can cause API sessions to not be released.  But, it doesn't sound like that is involved here.

    You may want to open a Support case, to look into this.

    Translate
    khoppe15-MoonstoneAuthor
    15-Moonstone
    Nov 2, 2016 8:50 AM UTC

    Additional info for usage of WebServices in this context

    An  application developed by another company sends around every hour some commands to fetch Project Structure and look for new/changed member.

    From time to time the commands fail, but after that they succeed again.

    My intention for this question is, if this could have to do with Session handling.

    I remember of timeout settings for GUI-/CLI-activities and ask myself if something similar might cause trouble we are facing here.

    Sorry to be not precise enoguh in my first posting.

    To the questions:

    I can't say whether sessions have been disconnected and reconnected. Following the documentation the App Provider does not do such activities.

    AND there are no trigger involved now.

    Best regards,

    Klaus

    Translate
    16-Pearl
    Nov 2, 2016 8:01 PM UTC

    I think there's a defect that can cause sessions to disconnect after an hour, regardless of activity, but I can't remember the SPR, nor the versions affected.  It's probably worth opening a case to investigate.

    -Kael

    Translate
    5-Regular Member
    Nov 2, 2016 9:24 PM UTC

    Possibly defect SPR # 6175680, if that is the problem Klaus is seeing with this.

    https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS247361

    Translate