Query String vs Query Parameters on Servicebus

So when you call REST API, there are several ways to input the data — both GET and POST.

The common GET method API is using query string, while for POST usually using body.

http://detik.com/index.php?page=2&lang=id

“page=2&lang=id” is what we called query-string in http transport. It’s located in outbound->transport->request.

we can also use query-parameters for alternative. It’s actually similar to query-string.

<tp:query-parameters xmlns:tp="http://www.bea.com/wli/sb/transports/http">
<tp:parameter name="page" value="2" />
<tp:parameter name="lang" value="id" />
</tp:query-parameters>

But i found out lately that several services can only be called using the latter one.

Well, it’s all depend on what client-backend-or-we want.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s