[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-6275) [tester] REST POST/PUT requests are not sending request body

Brian Fitzpatrick (JIRA) jira-events at lists.jboss.org
Wed May 12 11:37:27 EDT 2010


    [ https://jira.jboss.org/jira/browse/JBIDE-6275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12530381#action_12530381 ] 

Brian Fitzpatrick commented on JBIDE-6275:
------------------------------------------

Fixed the issue. You were absolutely correct. I just fat-fingered that line. Sorry for the inconvenience.

Even with fixing that however, I'm getting this back from that JAX-RS service:

java.io.IOException: Server returned HTTP response code: 503 for URL: http://www.webservicex.net/BibleWebservice.asmx/GetBibleWordsByChapterAndVerse

For this SOAP text:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetBibleWordsByChapterAndVerse xmlns="http://www.webserviceX.NET">
      <BookTitle>John</BookTitle>
      <chapter>3</chapter>
      <Verse>2</Verse>
    </GetBibleWordsByChapterAndVerse>
  </soap:Body>
</soap:Envelope>

> [tester] REST POST/PUT requests are not sending request body
> ------------------------------------------------------------
>
>                 Key: JBIDE-6275
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-6275
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Webservices
>    Affects Versions: 3.2.next
>            Reporter: Lukas Jungmann
>            Assignee: Brian Fitzpatrick
>            Priority: Critical
>             Fix For: 3.2.next
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> -open Web Service Tester View
> -test following service:
> Type: JAX-RS
> Method POST
> Service URL: http://www.webservicex.net/BibleWebservice.asmx/GetBibleWordsByChapterAndVerse
> request body: BookTitle=John&chapter=3&Verse=2
> request headers: Content-Type=application/x-www-form-urlencoded, Content-Length=32
> -configure monitor
> -and invoke the service
> => no response comes back from the server and TCP/IP monitor shows only:
> POST /BibleWebservice.asmx/GetBibleWordsByChapterAndVerse HTTP/1.1
> Content-Length: 32
> Content-Type: application/x-www-form-urlencoded
> 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 no content sent to the server
> suspicious code seems to be in JAXRSWSTestView.java:
> 616:	if (!method.equalsIgnoreCase(GET))
> 617:		body = EMPTY_STRING;
> 618:
> 619:	// if no actual text in the request body, set to null
> 620:	if (body.trim().length() == 0) body = null;
> which sets request body to "null" for POST/PUT requests

-- 
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