[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-6281) [tester] REST POST/PUT request params should be sent within request body

Lukas Jungmann (JIRA) jira-events at lists.jboss.org
Thu May 13 06:18:27 EDT 2010


[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


-open tester
-test following service:

 Type: JAX-RS
 Method POST
 Service URL: http://www.webservicex.net/BibleWebservice.asmx/GetBibleWordsByChapterAndVerse
 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

        


More information about the jbosstools-issues mailing list