[
https://jira.jboss.org/jira/browse/JBIDE-6281?page=com.atlassian.jira.plu...
]
Lukas Jungmann commented on JBIDE-6281:
---------------------------------------
re 1) no but the basic problem here is that URL doesn't contain '?' to
separate these params from service URL.
It can be just my understanding of request parameter term - for GET it's part of URL
(in a query string), for POST its part of request body
re 2) it would be nice if you could "move" info from the monitor to some
uneditable "raw" tab in the tester. That would not require user to switch
between views/have opened 2 views.
[tester] REST POST/PUT request params should be sent within request
body
------------------------------------------------------------------------
Key: JBIDE-6281
URL:
https://jira.jboss.org/jira/browse/JBIDE-6281
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Webservices
Affects Versions: 3.2.next
Reporter: Lukas Jungmann
Assignee: Brian Fitzpatrick
Fix For: 3.2.next
-open tester
-test following service:
Type: JAX-RS
Method POST
Service URL:
http://www.webservicex.net/BibleWebservice.asmx/GetBibleWordsByChapterAnd...
request parameters: BookTitle=John, chapter=3 and Verse=2
request headers: Content-Type=application/x-www-form-urlencoded, Content-Length=32
request body: empty
-configure monitor
-and invoke the service
=> no response comes back from the server and TCP/IP monitor shows only:
POST
/BibleWebservice.asmx/GetBibleWordsByChapterAndVersechapter=2&BookTitle=John&verse=2
HTTP/1.1
content-type: application/x-www-form-urlencoded
content-length: 32
User-Agent: Java/1.6.0_18
Host: localhost:8077
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
which means that there's wrong request sent to the server
problem here is that request params should be sent with request body and not as part of
url, so we should either do not take request params into account for POST/PUT requests or
send them within request body and automatically set content-type(?) and content-length
headers for the request
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira