13
Views
1
Comments
[AsyncGold] CallbackHandlerService_POST_URL
Question
asyncgold
Service icon
Forge asset by Goldy Lukka
Application Type
Service

The "CallbackHandlerService_POST_URL" says it can be optional but I have found it has to be provided.

Is this correct?

UserImage.jpg
David Eastaugh

I think the code for "validateInputs" is not validating the "ssCallbackHandlerService_POST_URL" correctly and needs to be changed to:

//validate callback URL 

            {

                validation = new STValidationStructure();

                validation.ssParameter = ("CallbackHandlerService_POST_URL");

                if (ssCallbackHandlerService_POST_URL != null && ssCallbackHandlerService_POST_URL.Trim().Length > 0)

                {

                    if (ssCallbackHandlerService_POST_URL.Equals(ssServerActionWrapper_REST_URL))

                        validation.ssIsValid = false;

                    else

                        validation.ssIsValid = Uri.IsWellFormedUriString(ssCallbackHandlerService_POST_URL, UriKind.Absolute);

                }


                else

                {

                    validation.ssIsValid = true;

                }

                ack.ssSTAck.ssValidationReport.Add(addValidation(validation));

                ack.ssSTAck.ssAccepted = ack.ssSTAck.ssAccepted == validation.ssIsValid ? false : validation.ssIsValid;

            }

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.