IBM Support

webMethods Knowlegebase : Query string parameters are not being passed to backend service (1783070)

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

[{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSQKXP","label":"IBM webMethods API Management"},"ARM Category":[{"code":"a8mKe00000000AQIAY","label":"webMethods Mediator (formerly X-Broker) (SMG)"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Red Hat Enterprise Linux"}],"Version":"9.7"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
20 March 2025

UID

ibm17196763