In my previous comment, I mention the documentation that generally covers most if not all cases. I don't think that the URL you specify as the "target" values is incorrect, for this is the standard way you specify a path with search in URL. Therefore, this invocation is to get a document from this location that match the specific values defined with the query string.
As the question mentions "semantics", this might indicated what you specified as the value for "http-method" that I previously mentioned is using an unsupported value. As the documentation states specific to semantics and I highlighted. is documented as follows and indicates that you shouldn't need to define/include "http-method. As you're providing only a snippet of code without context, there's not much beyond what can be provided, but Thomas mentions exactly what is returned/logged, which should assist in debugging. If you're unable to get this working with the on-box serviceability, you might need to open a service ticket where they will need to obtains the full set of involved artifacts.
--------------------------------------
The semantics for send and receive depend on the type of URL. For HTTP, send corresponds to a client POST request and receive corresponds to the server response.
If you do not specify content in the dp:url-open
element, the DataPower Gateway does an HTTP GET request instead of an HTTP POST request. This behavior can be changed by specifying a value for the http-method
attribute. The http-method
attribute can be used with the HTTP or HTTPS protocols only.
------------------------------
F Hackerman
------------------------------
Original Message:
Sent: Wed August 10, 2022 11:50 AM
From: F Hackerman
Subject: How use query parameters in target of dp:url-open
In the provided example, I see an item that doesn't match the dp:url-open documentation -
- The value for "http-method" should be lowercase
http-method="get"
I don't know whether this will resolve your semantic issue, but want to call out that if you use a GET method specified as 'http-method="get"', that if there's content it'll become a POST.
------------------------------
F Hackerman
Original Message:
Sent: Tue August 02, 2022 08:56 AM
From: Alexander Thompson
Subject: How use query parameters in target of dp:url-open
Hi everyone,
How can I use a url with query parameters, it generates an error in semantics when I add ?identification=2345190&consumer=interfly.
<dp:url-open
target="http://localhost:8080/test/client?identification=2345190&consumer=interfly"
response="ignore"
http-method="GET"
>
</dp:url-open>
thanks for your help
------------------------------
Alexander Thompson
------------------------------