Hi Guys
I have configured correctly the WebNotification to perform the cache refresh when some of our records has changed.
Everything looks fine, the plugin is triggered but I am getting and POST return as (401) Unauthorized from the Portal.
Here is the log of the plugin execution:
WebNotificationPlugin: Execute: Begin
WebNotificationPlugin: Execute: SdkMessageProcessingStepMode: Asynchronous
WebNotificationPlugin: Execute: Unsecure Config XML: <Settings><setting name="webNotificationUrls"><value><urls><add id="12cdf13d-9e31-e811-a83b-02bf0a006754" token="AKEDJo3l5TusjQ6iYJmfqOwDUWXR26CDcUAZ9l5Np2gFkf80TMBhUGxNpo/t6UyaDw==">mysite.ie/WebNotification.axd</add></urls></value></setting></Settings>
WebNotificationPlugin: SendNotifications: {"MessageName":"Update","RelatedEntities":null,"Relationship":null,"Target":{"Id":"8d774021-0831-e811-a83b-02bf0a006754","LogicalName":"contact","Name":null}}
WebNotificationPlugin: GetResponse: POST request: mysite.ie/WebNotification.axd
WebNotificationPlugin: WriteResponseTrace: POST response: mysite.ie/WebNotification.axd (401) Unauthorized | Elapsed: 3 ms | FAIL
WebNotificationPlugin: Execute: Elapsed: 5 ms
WebNotificationPlugin: Execute: End
Here is the info from the Portal trace.axd :
Request Details
Session Id:
Request Type: POST
Time of Request: 27/03/2018 10:09:28
Status Code: 401
Request Encoding: Unicode (UTF-8)
Response Encoding: Unicode (UTF-8)
Headers Collection
Name Value
Connection Keep-Alive
Content-Length 160
Content-Type application/json
Authorization Basic AKEDJo3l5TusjQ6iYJmfqOwDUWXR26CDcUAZ9l5Np2gFkf80TMBhUGxNpo/t6UyaDw==;12cdf13d-9e31-e811-a83b-02bf0a006754
Expect 100-continue
Host mysite.ie
Server Variables
Name Value
ALL_HTTP HTTP_CONNECTION:Keep-Alive HTTP_CONTENT_LENGTH:160 HTTP_CONTENT_TYPE:application/json HTTP_AUTHORIZATION:Basic AKEDJo3l5TusjQ6iYJmfqOwDUWXR26CDcUAZ9l5Np2gFkf80TMBhUGxNpo/t6UyaDw==;12cdf13d-9e31-e811-a83b-02bf0a006754 HTTP_EXPECT:100-continue HTTP_HOST:mysite.ie
ALL_RAW Connection: Keep-Alive Content-Length: 160 Content-Type: application/json Authorization: Basic AKEDJo3l5TusjQ6iYJmfqOwDUWXR26CDcUAZ9l5Np2gFkf80TMBhUGxNpo/t6UyaDw==;12cdf13d-9e31-e811-a83b-02bf0a006754 Expect: 100-continue Host: mysite.ie
APPL_MD_PATH /LM/W3SVC/1/ROOT
APPL_PHYSICAL_PATH C:\inetpub\wwwroot\
AUTH_TYPE
AUTH_USER
AUTH_PASSWORD
LOGON_USER
REMOTE_USER
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE
CERT_SECRETKEYSIZE
CERT_SERIALNUMBER
CERT_SERVER_ISSUER
CERT_SERVER_SUBJECT
CERT_SUBJECT
CONTENT_LENGTH 160
CONTENT_TYPE application/json
GATEWAY_INTERFACE CGI/1.1
HTTPS off
HTTPS_KEYSIZE
HTTPS_SECRETKEYSIZE
HTTPS_SERVER_ISSUER
HTTPS_SERVER_SUBJECT
INSTANCE_ID 1
INSTANCE_META_PATH /LM/W3SVC/1
LOCAL_ADDR 10.0.103.59
PATH_INFO /WebNotification.axd
PATH_TRANSLATED C:\inetpub\wwwroot\WebNotification.axd
QUERY_STRING
REMOTE_ADDR 10.0.103.7
REMOTE_HOST 10.0.103.7
REMOTE_PORT 50996
REQUEST_METHOD POST
SCRIPT_NAME /WebNotification.axd
SERVER_NAME mysite.ie
SERVER_PORT 80
SERVER_PORT_SECURE 0
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Microsoft-IIS/10.0
URL /WebNotification.axd
HTTP_CONNECTION Keep-Alive
HTTP_CONTENT_LENGTH 160
HTTP_CONTENT_TYPE application/json
HTTP_AUTHORIZATION Basic AKEDJo3l5TusjQ6iYJmfqOwDUWXR26CDcUAZ9l5Np2gFkf80TMBhUGxNpo/t6UyaDw==;12cdf13d-9e31-e811-a83b-02bf0a006754
HTTP_EXPECT 100-continue
HTTP_HOST mysite.ie
Do you have any idea on how to address this problem? I tried everything.
Any help will be very apreciated...
Thanks guys...
*This post is locked for comments