Developer forum

Forum » Integration » Padding is invalid and cannot be removed

Padding is invalid and cannot be removed

Kim Søjborg Pedersen
Reply

Hi, the customer has made a setup and I am testing it with the "Dynamicweb Service Test App" 

I get the Response "Padding is invalid and cannot be removed" 

See the attachment

What canI tell the administrator to do?

DwTestService.png

Replies

 
Kim Søjborg Pedersen
Reply

Hi Dynamicweb, any hints about where I should look?

 
Nicolai Høeg Pedersen
Reply

Hi Kim

Do not know this error - i've asked a developer to look into the matter.

Nicolai

 
Dmitriy Benyuk
Reply

Hi Kim,
It looks like you get some cryptographic error. Coud you check if the "DW Service secret" text is the same in your Dynamicweb service config file?
http://localhost:8090/DynamicwebService: config file section <appSettings>:

line:

<add key="Secret" value="test" />

Regards, Dmitrij

 
Kim Søjborg Pedersen
Reply

Hi Dmitriy,
I asked the administrator to check the secret, and it looks like there was something wrong, but now he gets a different message "The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'Negotiate…"

Do you know what that can be?

See attachment

2014-09-15_0912.png
 
Dmitriy Benyuk
Reply
This post has been marked as an answer

Hi Kim,

it is an authentication exception. You need to check from the DynamicwebService config file the add-in settings. If you are using AX or NAV connectors there are the security settings for the UserName, Password and Domain, try to check if this user has permissions to query your ERP system.

Also this error maybe related to your ERP system web service configuration, try to check the bindings that are used in your ERP web service:

Try setting 'clientCredentialType' to 'Windows' instead of 'Ntlm'.

http://forums.asp.net/t/1302832.aspx?The+authentication+header+received+from+the+server+was+Negotiate+NTLM+

Regards, Dmitrij

 

Votes for this answer: 1

 

You must be logged in to post in the forum