Social XAPI call not returning any response

Hi,

 

I have a code to make the XAPI call, Collab log registers an XAPI call but I don’t see the result and the call does not get registered within Fiddler. Any ideas?

 

Here is the piece of code:

 

CommunityDataServiceIf service = CommunityHelper.createService(username, realmID, domainID, domainID);

ManageSiteMembershipAction mAction = new ManageSiteMembershipAction();

SimpleActionData actionData = new SimpleActionData();

actionData.addParam("domain", domainID);

actionData.addParam("site", siteName);

actionData.addParam("type", "UserProfile");

actionData.addParam("name", username);

actionData.addParam("object", (String)request.getAttribute("profileOID"));

actionData.addParam("join", "join");

Response responseObject = service.getClientService().post(actionData.getParams(), "ManageSiteMembership");

 

Regards,

Mukul

 

 

Comments

  • It’s a POST action, so the “result” will be most likely a status code.    What you’re looking for is the responseObject’s response code to see if the POST was successful (responseObject.getResponseCode).

     

    For example (pseudocode):

     

    If (responseObject == null || responseObject.getResponseCode() == HttpServletResponse.SC_UNAUTHORIZED || responseObject.getResponseCode() == HttpServletResponse.SC_INTERNAL_SERVER_ERROR):

                    return “error”

     

     

    -Curtis

     

    From: eLink Entry: OpenText Social Communities (Vignette Community) Forum [mailto:[email protected]]
    Sent: Friday, October 03, 2014 2:13 PM
    To: eLink Recipient
    Subject: Social XAPI call not returning any response

     

    Social XAPI call not returning any response

     

    Posted by[email protected] (Bishnoi, Mukul) On 10/03/2014 04:12 PM

     

     

    Hi,

     

    I have a code to make the XAPI call, Collab log registers an XAPI call but I don’t see the result and the call does not get registered within Fiddler. Any ideas?

     

    Here is the piece of code:

     

    CommunityDataServiceIf service = CommunityHelper.createService(username, realmID, domainID, domainID);

    ManageSiteMembershipAction mAction = new ManageSiteMembershipAction();

    SimpleActionData actionData = new SimpleActionData();

    actionData.addParam("domain", domainID);

    actionData.addParam("site", siteName);

    actionData.addParam("type", "UserProfile");

    actionData.addParam("name", username);

    actionData.addParam("object", (String)request.getAttribute("profileOID"));

    actionData.addParam("join", "join");

    Response responseObject = service.getClientService().post(actionData.getParams(), "ManageSiteMembership");

     

    Regards,

    Mukul

     

     


    [To post a comment, use the normal reply function]

    Forum:

    OpenText Social Communities (Vignette Community) Forum

    Content Server:

    Knowledge Center

     

  • Thanks Curtis!

    There is no error the response code is 204.

    Regards,

    Mukul

     

    From: eLink Entry: OpenText Social Communities (Vignette Community) Forum [mailto:[email protected]]
    Sent: Friday, October 03, 2014 4:33 PM
    To: eLink Recipient
    Subject: RE Social XAPI call not returning any response

     

    RE Social XAPI call not returning any response

     

    Posted by[email protected] (Hyder, Curtis) On 10/03/2014 04:32 PM

     

     

    It’s a POST action, so the “result” will be most likely a status code.    What you’re looking for is the responseObject’s response code to see if the POST was successful (responseObject.getResponseCode).

     

    For example (pseudocode):

     

    If (responseObject == null || responseObject.getResponseCode() == HttpServletResponse.SC_UNAUTHORIZED || responseObject.getResponseCode() == HttpServletResponse.SC_INTERNAL_SERVER_ERROR):

                    return “error”

     

     

    -Curtis

     

    From: eLink Entry: OpenText Social Communities (Vignette Community) Forum [mailto:[email protected]]
    Sent: Friday, October 03, 2014 2:13 PM
    To: eLink Recipient
    Subject: Social XAPI call not returning any response

     

    Social XAPI call not returning any response

     

    Posted by [email protected] (Bishnoi, Mukul) On 10/03/2014 04:12 PM

     

     

    Hi,

     

    I have a code to make the XAPI call, Collab log registers an XAPI call but I don’t see the result and the call does not get registered within Fiddler. Any ideas?

     

    Here is the piece of code:

     

    CommunityDataServiceIf service = CommunityHelper.createService(username, realmID, domainID, domainID);

    ManageSiteMembershipAction mAction = new ManageSiteMembershipAction();

    SimpleActionData actionData = new SimpleActionData();

    actionData.addParam("domain", domainID);

    actionData.addParam("site", siteName);

    actionData.addParam("type", "UserProfile");

    actionData.addParam("name", username);

    actionData.addParam("object", (String)request.getAttribute("profileOID"));

    actionData.addParam("join", "join");

    Response responseObject = service.getClientService().post(actionData.getParams(), "ManageSiteMembership");

     

    Regards,

    Mukul

     

     


    [To post a comment, use the normal reply function]

    Forum:

    OpenText Social Communities (Vignette Community) Forum

    Content Server:

    Knowledge Center

     


    [To post a comment, use the normal reply function]

    Topic:

    Social XAPI call not returning any response

    Forum:

    OpenText Social Communities (Vignette Community) Forum

    Content Server:

    Knowledge Center

     

  • Which I think is right but it’s not performing the action, which it is supposed to do.

     

    From: eLink Entry: OpenText Social Communities (Vignette Community) Forum [mailto:[email protected]]
    Sent: Friday, October 03, 2014 4:39 PM
    To: eLink Recipient
    Subject: RE RE Social XAPI call not returning any response

     

    RE RE Social XAPI call not returning any response

     

    Posted by[email protected] (Bishnoi, Mukul) On 10/03/2014 04:39 PM

     

     

    Thanks Curtis!

    There is no error the response code is 204.

    Regards,

    Mukul

     

    From: eLink Entry: OpenText Social Communities (Vignette Community) Forum [mailto:[email protected]]
    Sent: Friday, October 03, 2014 4:33 PM
    To: eLink Recipient
    Subject: RE Social XAPI call not returning any response

     

    RE Social XAPI call not returning any response

     

    Posted by [email protected] (Hyder, Curtis) On 10/03/2014 04:32 PM

     

     

    It’s a POST action, so the “result” will be most likely a status code.    What you’re looking for is the responseObject’s response code to see if the POST was successful (responseObject.getResponseCode).

     

    For example (pseudocode):

     

    If (responseObject == null || responseObject.getResponseCode() == HttpServletResponse.SC_UNAUTHORIZED || responseObject.getResponseCode() == HttpServletResponse.SC_INTERNAL_SERVER_ERROR):

                    return “error”

     

     

    -Curtis

     

    From: eLink Entry: OpenText Social Communities (Vignette Community) Forum [mailto:[email protected]]
    Sent: Friday, October 03, 2014 2:13 PM
    To: eLink Recipient
    Subject: Social XAPI call not returning any response

     

    Social XAPI call not returning any response

     

    Posted by [email protected] (Bishnoi, Mukul) On 10/03/2014 04:12 PM

     

     

    Hi,

     

    I have a code to make the XAPI call, Collab log registers an XAPI call but I don’t see the result and the call does not get registered within Fiddler. Any ideas?

     

    Here is the piece of code:

     

    CommunityDataServiceIf service = CommunityHelper.createService(username, realmID, domainID, domainID);

    ManageSiteMembershipAction mAction = new ManageSiteMembershipAction();

    SimpleActionData actionData = new SimpleActionData();

    actionData.addParam("domain", domainID);

    actionData.addParam("site", siteName);

    actionData.addParam("type", "UserProfile");

    actionData.addParam("name", username);

    actionData.addParam("object", (String)request.getAttribute("profileOID"));

    actionData.addParam("join", "join");

    Response responseObject = service.getClientService().post(actionData.getParams(), "ManageSiteMembership");

     

    Regards,

    Mukul

     

     


    [To post a comment, use the normal reply function]

    Forum:

    OpenText Social Communities (Vignette Community) Forum

    Content Server:

    Knowledge Center

     


    [To post a comment, use the normal reply function]

    Topic:

    Social XAPI call not returning any response

    Forum:

    OpenText Social Communities (Vignette Community) Forum

    Content Server:

    Knowledge Center

     


    [To post a comment, use the normal reply function]

    Topic:

    Social XAPI call not returning any response

    Forum:

    OpenText Social Communities (Vignette Community) Forum

    Content Server:

    Knowledge Center

     

  • As I mentioned, the response code is 204, it should be 200, which case the call did what it was supposed to do. Am I missing something?

     

    From: eLink Entry: OpenText Social Communities (Vignette Community) Forum [mailto:[email protected]]
    Sent: Friday, October 03, 2014 4:33 PM
    To: eLink Recipient
    Subject: RE Social XAPI call not returning any response

     

    RE Social XAPI call not returning any response

     

    Posted by[email protected] (Hyder, Curtis) On 10/03/2014 04:32 PM

     

     

    It’s a POST action, so the “result” will be most likely a status code.    What you’re looking for is the responseObject’s response code to see if the POST was successful (responseObject.getResponseCode).

     

    For example (pseudocode):

     

    If (responseObject == null || responseObject.getResponseCode() == HttpServletResponse.SC_UNAUTHORIZED || responseObject.getResponseCode() == HttpServletResponse.SC_INTERNAL_SERVER_ERROR):

                    return “error”

     

     

    -Curtis

     

    From: eLink Entry: OpenText Social Communities (Vignette Community) Forum [mailto:[email protected]]
    Sent: Friday, October 03, 2014 2:13 PM
    To: eLink Recipient
    Subject: Social XAPI call not returning any response

     

    Social XAPI call not returning any response

     

    Posted by [email protected] (Bishnoi, Mukul) On 10/03/2014 04:12 PM

     

     

    Hi,

     

    I have a code to make the XAPI call, Collab log registers an XAPI call but I don’t see the result and the call does not get registered within Fiddler. Any ideas?

     

    Here is the piece of code:

     

    CommunityDataServiceIf service = CommunityHelper.createService(username, realmID, domainID, domainID);

    ManageSiteMembershipAction mAction = new ManageSiteMembershipAction();

    SimpleActionData actionData = new SimpleActionData();

    actionData.addParam("domain", domainID);

    actionData.addParam("site", siteName);

    actionData.addParam("type", "UserProfile");

    actionData.addParam("name", username);

    actionData.addParam("object", (String)request.getAttribute("profileOID"));

    actionData.addParam("join", "join");

    Response responseObject = service.getClientService().post(actionData.getParams(), "ManageSiteMembership");

     

    Regards,

    Mukul

     

     


    [To post a comment, use the normal reply function]

    Forum:

    OpenText Social Communities (Vignette Community) Forum

    Content Server:

    Knowledge Center

     


    [To post a comment, use the normal reply function]

    Topic:

    Social XAPI call not returning any response

    Forum:

    OpenText Social Communities (Vignette Community) Forum

    Content Server:

    Knowledge Center

     

  • The parameters to ManageSiteMembership should be:

     

           actionData.addParam("site_1", siteName);

           actionData.addParam("action_1", “join”);

     

     

    From: eLink Entry: OpenText Social Communities (Vignette Community) Forum [mailto:[email protected]]
    Sent: Friday, October 03, 2014 2:53 PM
    To: eLink Recipient
    Subject: RE Social XAPI call not returning any response

     

    RE Social XAPI call not returning any response

     

    Posted by[email protected] (Bishnoi, Mukul) On 10/03/2014 04:52 PM

     

     

    As I mentioned, the response code is 204, it should be 200, which case the call did what it was supposed to do. Am I missing something?

     

    From: eLink Entry: OpenText Social Communities (Vignette Community) Forum [mailto:[email protected]]
    Sent: Friday, October 03, 2014 4:33 PM
    To: eLink Recipient
    Subject: RE Social XAPI call not returning any response

     

    RE Social XAPI call not returning any response

     

    Posted by [email protected] (Hyder, Curtis) On 10/03/2014 04:32 PM

     

     

    It’s a POST action, so the “result” will be most likely a status code.    What you’re looking for is the responseObject’s response code to see if the POST was successful (responseObject.getResponseCode).

     

    For example (pseudocode):

     

    If (responseObject == null || responseObject.getResponseCode() == HttpServletResponse.SC_UNAUTHORIZED || responseObject.getResponseCode() == HttpServletResponse.SC_INTERNAL_SERVER_ERROR):

                    return “error”

     

     

    -Curtis

     

    From: eLink Entry: OpenText Social Communities (Vignette Community) Forum [mailto:[email protected]]
    Sent: Friday, October 03, 2014 2:13 PM
    To: eLink Recipient
    Subject: Social XAPI call not returning any response

     

    Social XAPI call not returning any response

     

    Posted by [email protected] (Bishnoi, Mukul) On 10/03/2014 04:12 PM

     

     

    Hi,

     

    I have a code to make the XAPI call, Collab log registers an XAPI call but I don’t see the result and the call does not get registered within Fiddler. Any ideas?

     

    Here is the piece of code:

     

    CommunityDataServiceIf service = CommunityHelper.createService(username, realmID, domainID, domainID);

    ManageSiteMembershipAction mAction = new ManageSiteMembershipAction();

    SimpleActionData actionData = new SimpleActionData();

    actionData.addParam("domain", domainID);

    actionData.addParam("site", siteName);

    actionData.addParam("type", "UserProfile");

    actionData.addParam("name", username);

    actionData.addParam("object", (String)request.getAttribute("profileOID"));

    actionData.addParam("join", "join");

    Response responseObject = service.getClientService().post(actionData.getParams(), "ManageSiteMembership");

     

    Regards,

    Mukul

     

     


    [To post a comment, use the normal reply function]

    Forum:

    OpenText Social Communities (Vignette Community) Forum

    Content Server:

    Knowledge Center

     


    [To post a comment, use the normal reply function]

    Topic:

    Social XAPI call not returning any response

    Forum:

    OpenText Social Communities (Vignette Community) Forum

    Content Server:

    Knowledge Center

     


    [To post a comment, use the normal reply function]

    Topic:

    Social XAPI call not returning any response

    Forum:

    OpenText Social Communities (Vignette Community) Forum

    Content Server:

    Knowledge Center

     

  • With these parameters, I get a response code of 301.

     

    From: eLink Entry: OpenText Social Communities (Vignette Community) Forum [mailto:[email protected]]
    Sent: Friday, October 03, 2014 5:05 PM
    To: eLink Recipient
    Subject: RE RE Social XAPI call not returning any response

     

    RE RE Social XAPI call not returning any response

     

    Posted by[email protected] (Hyder, Curtis) On 10/03/2014 05:05 PM

     

     

    The parameters to ManageSiteMembership should be:

     

           actionData.addParam("site_1", siteName);

           actionData.addParam("action_1", “join”);

     

     

    From: eLink Entry: OpenText Social Communities (Vignette Community) Forum [mailto:[email protected]]
    Sent: Friday, October 03, 2014 2:53 PM
    To: eLink Recipient
    Subject: RE Social XAPI call not returning any response

     

    RE Social XAPI call not returning any response

     

    Posted by [email protected] (Bishnoi, Mukul) On 10/03/2014 04:52 PM

     

     

    As I mentioned, the response code is 204, it should be 200, which case the call did what it was supposed to do. Am I missing something?

     

    From: eLink Entry: OpenText Social Communities (Vignette Community) Forum [mailto:[email protected]]
    Sent: Friday, October 03, 2014 4:33 PM
    To: eLink Recipient
    Subject: RE Social XAPI call not returning any response

     

    RE Social XAPI call not returning any response

     

    Posted by [email protected] (Hyder, Curtis) On 10/03/2014 04:32 PM

     

     

    It’s a POST action, so the “result” will be most likely a status code.    What you’re looking for is the responseObject’s response code to see if the POST was successful (responseObject.getResponseCode).

     

    For example (pseudocode):

     

    If (responseObject == null || responseObject.getResponseCode() == HttpServletResponse.SC_UNAUTHORIZED || responseObject.getResponseCode() == HttpServletResponse.SC_INTERNAL_SERVER_ERROR):

                    return “error”

     

     

    -Curtis

     

    From: eLink Entry: OpenText Social Communities (Vignette Community) Forum [mailto:[email protected]]
    Sent: Friday, October 03, 2014 2:13 PM
    To: eLink Recipient
    Subject: Social XAPI call not returning any response

     

    Social XAPI call not returning any response

     

    Posted by [email protected] (Bishnoi, Mukul) On 10/03/2014 04:12 PM

     

     

    Hi,

     

    I have a code to make the XAPI call, Collab log registers an XAPI call but I don’t see the result and the call does not get registered within Fiddler. Any ideas?

     

    Here is the piece of code:

     

    CommunityDataServiceIf service = CommunityHelper.createService(username, realmID, domainID, domainID);

    ManageSiteMembershipAction mAction = new ManageSiteMembershipAction();

    SimpleActionData actionData = new SimpleActionData();

    actionData.addParam("domain", domainID);

    actionData.addParam("site", siteName);

    actionData.addParam("type", "UserProfile");

    actionData.addParam("name", username);

    actionData.addParam("object", (String)request.getAttribute("profileOID"));

    actionData.addParam("join", "join");

    Response responseObject = service.getClientService().post(actionData.getParams(), "ManageSiteMembership");

     

    Regards,

    Mukul

     

     


    [To post a comment, use the normal reply function]

    Forum:

    OpenText Social Communities (Vignette Community) Forum

    Content Server:

    Knowledge Center

     


    [To post a comment, use the normal reply function]

    Topic:

    Social XAPI call not returning any response

    Forum:

    OpenText Social Communities (Vignette Community) Forum

    Content Server:

    Knowledge Center

     


    [To post a comment, use the normal reply function]

    Topic:

    Social XAPI call not returning any response

    Forum:

    OpenText Social Communities (Vignette Community) Forum

    Content Server:

    Knowledge Center

     


    [To post a comment, use the normal reply function]

    Topic:

    Social XAPI call not returning any response

    Forum:

    OpenText Social Communities (Vignette Community) Forum

    Content Server:

    Knowledge Center

     

Sign In or Register to comment.