10.15
Hi,
I am making a multipart HTTP call with a Bearer Token. When I use the right token I don’t have any problems. I can send a pdf file with that call.
My problems start if I use the wrong Bearer Token. Everything works normally if I send a request with the wrong Token via Postman. I can see the HTTP code as 401, the response as JSON, and also header values without an issue.
When I make the same request from 10.15 webMethods server via “pub.client:http” it throws “com.wm.net.NetException: [ISC.0064.9306] Connection was closed during read” or “com.wm.app.b2b.server.ServiceException: java.net.SocketException: Connection reset” error.
I changed the log level to “Trace” for Integration Server and attached the related piece of logs here.
server.log (11.1 KB)
As I understand from the logs, I am getting 401 in the first place but then the webMethods server makes another call, this time it uses NTLM for authorization then it gets 401 again but this time I see WWW-Authenticate: NTLM in the response header and probably it causes the issue.
I am unsure why it retries after it gets 401 and where this NTLM is coming from. I can provide further info if needed.
Are there any suggestions to solve this?
Many thanks in advance.
#API-Management#Integration-Server-and-ESB#Service-Designer#webMethods#Adapters-and-E-Standards#B2B-Integration