Uploaded image for project: 'Pentaho Data Integration - Kettle'
  1. Pentaho Data Integration - Kettle
  2. PDI-8242

Rest class to support the MediaType.TEXT_XML type ( TEXT_XML_TYPE ).

    XMLWordPrintable

    Details

    • PDI Sub-component:
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.

      Description

      REST Client Step does not work when request sent has POST.

      Please find the attached Sample.ktr.

      In this ktr we are trying to call a http://www.w3schools.com/webservices/tempconvert.asmx web service.

      It returns with an error instead of a valid response.

      2012/07/27 16:47:06 - REST Client.0 - Header parameter [Content-Type]='text/xml;charset=utf-8'
      2012/07/27 16:47:06 - REST Client.0 - Adding Http body value [<?xml version="1.0" encoding="utf-8"?><soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"><soap12:Body><CelsiusToFahrenheit xmlns="http://tempuri.org/"><Celsius>10</Celsius></CelsiusToFahrenheit></soap12:Body></soap12:Envelope>]
      2012/07/27 16:47:07 - REST Client.0 - Response time (milliseconds): [1018] for http://www.w3schools.com/webservices/tempconvert.asmx
      2012/07/27 16:47:07 - REST Client.0 - The response code is 415
      2012/07/27 16:47:07 - REST Client.0 - Connecting to http://www.w3schools.com/webservices/tempconvert.asmx ...
      2012/07/27 16:47:07 - REST Client.0 - Header parameter [Content-Type]='null'
      2012/07/27 16:47:07 - REST Client.0 - Adding Http body value []
      2012/07/27 16:47:08 - REST Client.0 - Response time (milliseconds): [752] for http://www.w3schools.com/webservices/tempconvert.asmx
      2012/07/27 16:47:08 - REST Client.0 - The response code is 500

      xml_request_desc:

      <?xml version="1.0" encoding="utf-8"?><soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"><soap12:Body><CelsiusToFahrenheit xmlns="http://tempuri.org/"><Celsius>10</Celsius></CelsiusToFahrenheit></soap12:Body></soap12:Envelope>

      Content_type:

      text/xml;charset=utf-8

      But the same request work correctly using curl command.

      curl -H "Content-Type: application/xml; charset=utf-8" -d@25237temp.xml http://www.w3schools.com/webservices/tempconvert.asmx > suport_test.xml

      Here is the response from the CURL commnad

      <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><CelsiusToFahrenheitResponse xmlns="http://tempuri.org/"><CelsiusToFahrenheitResult>50</CelsiusToFahrenheitResult></CelsiusToFahrenheitResponse></soap:Body></soap:Envelope>

        Attachments

        1. 25237temp.xml
          0.3 kB
        2. error.txt
          2 kB
        3. Sample.ktr
          12 kB
        4. suport_test.xml
          0.4 kB

          Activity

            People

            Assignee:
            cboyden Curtis Boyden (Inactive)
            Reporter:
            gboranna Gangadhara Boranna (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: