79284945

Date: 2024-12-16 14:17:15
Score: 1
Natty:
Report link

To everyone that maybe comes to this post, it turned out that the header was being properly added. The whole problem was that the web service that I was trying to access doesn't accept some specific user agents, such as: JAX-WS RI 3.0.0 git-revision#af8101a which was the one from the client generated by JAX-WS lib, and PostmanRuntime/7.35.0.

But the server accepts SoapUI UserAgent: Apache-HttpClient/4.5.5 (Java/16.0.2).

I would never imagine that the server had this restriction, I only figured it out by searching in the HTTP request logs.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Thalys Menezes