Troubleshooting
Problem
Customer is invoking a virtual REST service via the Mediator (GET method), including a query string with parameters.
The parameters are not being forwarded to the backend service. If the service is directly called, it works.
Further investigations showed that:
- When the initial reqeust contains a HTTP Content-Type header, the query parameters are not being passed to the backend service.
2017-07-07 09:24:01 CEST [ISC.0039.0001D] GET
/ws/vs_KL_Incident5289237/sayHello/du/asdjklasjd?language=de&sdfasdf=wq
2017-07-07 09:24:01 CEST [ISC.0038.0002D] <-- Accept-Encoding:
gzip,deflate
2017-07-07 09:24:01 CEST [ISC.0038.0002D] <-- sdjkfjk: sdfsdfsdfsdf
2017-07-07 09:24:01 CEST [ISC.0038.0002D] <-- ApiKey:
ZyUevuMrfL16JLAc4e3f
2017-07-07 09:24:01 CEST [ISC.0038.0002D] <-- Content-Type:
application/json
2017-07-07 09:24:01 CEST [ISC.0038.0002D] <-- Host:
iawmsme02.dc.hn.de.kaufland:35555
2017-07-07 09:24:01 CEST [ISC.0038.0002D] <-- Connection: Keep-Alive
2017-07-07 09:24:01 CEST [ISC.0038.0002D] <-- User-Agent:
Apache-HttpClient/4.1.1 (java 1.5)
2017-07-07 09:24:01 CEST [ISC.0038.0002D] --> GET
/rest/KL_Incident5289237/ws/sayHello/du/asdjklasjd HTTP/1.1
2017-07-07 09:24:01 CEST [ISC.0038.0002D] --> User-Agent: Mozilla/4.0
[en] (WinNT; I)
2017-07-07 09:24:01 CEST [ISC.0038.0002D] --> Accept: image/gif, */*
2017-07-07 09:24:01 CEST [ISC.0038.0002D] --> Host:
dedcw28eai201.de.int.kaufland:35555
2017-07-07 09:24:01 CEST [ISC.0038.0002D] --> Content-Type:
application/json
2017-07-07 09:24:01 CEST [ISC.0038.0002D] --> ApiKey:
ZyUevuMrfL16JLAc4e3f
2017-07-07 09:24:01 CEST [ISC.0038.0002D] --> Accept-Encoding:
gzip,deflate
2017-07-07 09:24:01 CEST [ISC.0038.0002D] --> sdjkfjk: sdfsdfsdfsdf
2017-07-07 09:24:03 CEST [ISC.0040.0001D] HTTP/1.1 200
2017-07-07 09:24:03 CEST [ISC.0038.0002D] <-- Content-Type:
application/json
2017-07-07 09:24:03 CEST [ISC.0038.0002D] <-- Content-Length: 108
2017-07-07 09:24:03 CEST [ISC.0038.0002D] --> HTTP/1.1 200 OK
2017-07-07 09:24:03 CEST [ISC.0038.0002D] --> Content-Type:
application/json; charset=UTF-8
2017-07-07 09:24:03 CEST [ISC.0038.0002D] --> Content-Encoding: gzip
2017-07-07 09:24:03 CEST [ISC.0038.0002D] --> Content-Length: 116
- When the initial request does not contain the HTTP Content-Type header, the query parameters are being passed to the backend service.
2017-07-07 09:24:52 CEST [ISC.0039.0001D] GET
/ws/vs_KL_Incident5289237/sayHello/du/asdjklasjd?language=de&sdfasdf=wq
2017-07-07 09:24:52 CEST [ISC.0038.0002D] <-- Accept-Encoding:
gzip,deflate
2017-07-07 09:24:52 CEST [ISC.0038.0002D] <-- sdjkfjk: sdfsdfsdfsdf
2017-07-07 09:24:52 CEST [ISC.0038.0002D] <-- ApiKey:
ZyUevuMrfL16JLAc4e3f
2017-07-07 09:24:52 CEST [ISC.0038.0002D] <-- Host:
iawmsme02.dc.hn.de.kaufland:35555
2017-07-07 09:24:52 CEST [ISC.0038.0002D] <-- Connection: Keep-Alive
2017-07-07 09:24:52 CEST [ISC.0038.0002D] <-- User-Agent:
Apache-HttpClient/4.1.1 (java 1.5)
2017-07-07 09:24:52 CEST [ISC.0038.0002D] --> GET
/rest/KL_Incident5289237/ws/sayHello/du/asdjklasjd?sdfasdf=wq&language=d
e HTTP/1.1
2017-07-07 09:24:52 CEST [ISC.0038.0002D] --> User-Agent: Mozilla/4.0
[en] (WinNT; I)
2017-07-07 09:24:52 CEST [ISC.0038.0002D] --> Accept: image/gif, */*
2017-07-07 09:24:52 CEST [ISC.0038.0002D] --> Host:
dedcw28eai201.de.int.kaufland:35555
2017-07-07 09:24:52 CEST [ISC.0038.0002D] --> Content-Type:
application/x-www-form-urlencoded
2017-07-07 09:24:52 CEST [ISC.0038.0002D] --> ApiKey:
ZyUevuMrfL16JLAc4e3f
2017-07-07 09:24:52 CEST [ISC.0038.0002D] --> Accept-Encoding:
gzip,deflate
2017-07-07 09:24:52 CEST [ISC.0038.0002D] --> sdjkfjk: sdfsdfsdfsdf
2017-07-07 09:24:54 CEST [ISC.0038.0002D] --> GET
/rest/KL_Incident5289237/ws/sayHello/du/asdjklasjd?sdfasdf=wq&language=d
e HTTP/1.1
2017-07-07 09:24:54 CEST [ISC.0038.0002D] --> User-Agent: Mozilla/4.0
[en] (WinNT; I)
2017-07-07 09:24:54 CEST [ISC.0038.0002D] --> Accept: image/gif, */*
2017-07-07 09:24:54 CEST [ISC.0038.0002D] --> Host:
dedcw28eai201.de.int.kaufland:35555
2017-07-07 09:24:54 CEST [ISC.0038.0002D] --> Content-Type:
application/x-www-form-urlencoded
2017-07-07 09:24:54 CEST [ISC.0038.0002D] --> ApiKey:
ZyUevuMrfL16JLAc4e3f
2017-07-07 09:24:54 CEST [ISC.0038.0002D] --> Accept-Encoding:
gzip,deflate
2017-07-07 09:24:54 CEST [ISC.0038.0002D] --> sdjkfjk: sdfsdfsdfsdf
2017-07-07 09:24:54 CEST [ISC.0040.0001D] HTTP/1.1 200
2017-07-07 09:24:54 CEST [ISC.0038.0002D] <-- Content-Type:
application/json
2017-07-07 09:24:54 CEST [ISC.0038.0002D] <-- Content-Length: 42
2017-07-07 09:24:54 CEST [ISC.0038.0002D] --> HTTP/1.1 200 OK
2017-07-07 09:24:54 CEST [ISC.0038.0002D] --> Content-Type:
application/json; charset=UTF-8
2017-07-07 09:24:54 CEST [ISC.0038.0002D] --> Content-Encoding: gzip
2017-07-07 09:24:54 CEST [ISC.0038.0002D] --> Content-Length: 57
This is weird, since the content-type header was being ignored by Mediator.
Document Location
Worldwide
Log InLog in to view more of this document
Was this topic helpful?
Document Information
Modified date:
20 March 2025
UID
ibm17196763