title: REST org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file
body: <p>I use SOA Suite 11g.</p>
  
  <ol>
  <li>Composite has component</li>
  </ol>
  
  <pre><code>  &lt;component name="ClientPrepare" version="2.0"&gt;
      &lt;implementation.bpel src="ClientPrepare.bpel"/&gt;
      &lt;property name="bpel.config.oneWayDeliveryPolicy" type="xs:string"
                many="false"&gt;async.persist&lt;/property&gt;
    &lt;/component&gt;
  </code></pre>
  
  <p>and reference (rest service, get method)</p>
  
  <pre><code>  &lt;reference name="PrepareService"
               ui:wsdlLocation="PrepareService.wsdl"&gt;
      &lt;interface.wsdl interface="http://xmlns.oracle.com/pcbpel/adapter/http/ClientPrepare/PrepareService#wsdl.interface(ClientPrepare_ptt)"/&gt;
      &lt;binding.ws port="ns#wsdl.endpoint(srv/prt)"
                  location="PrepareService.wsdl" supports="http"&gt;
        &lt;property name="http.verb" type="xs:string" many="false"&gt;GET&lt;/property&gt;
        &lt;property name="endpointURI" type="xs:string" many="false"&gt;"&lt;some url&gt;"&lt;/property&gt;
        &lt;property name="http.payload" type="xs:string" many="false"&gt;url-encoded&lt;/property&gt;
        &lt;property name="oracle.webservices.http.invocation" type="xs:string" many="false"&gt;false&lt;/property&gt;
      &lt;/binding.ws&gt;
    &lt;/reference&gt;
  </code></pre>
  
  <ol start="2">
  <li>When component invokes rest service, it receives success http 200, but component process has fault</li>
  </ol>
  
  <pre><code>Unable to invoke endpoint URI "&lt;some url&gt;" successfully due to: javax.xml.soap.SOAPException: Unable to read response: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.
  </code></pre>
  
  <ol start="3">
  <li>Rest Service receives http header only, without content:</li>
  </ol>
  
  <pre><code>HTTP/1.1 200 OK
  Date: Tue, 14 Jan 2020 09:03:24 GMT
  rlog_pk: 10005254841979
  Content-Type: text/html;charset=windows-1251
  Content-Language: en
  Connection: Keep-Alive
  Keep-Alive: timeout=5, max=999
  Server: Oracle-Fusion-Middleware/11g (11.1.1.9) Apache-Coyote/1.1 Oracle-Web-Cache-11g/11.1.1.9.0 (N;ecid=733173134358256,0:1)
  Content-Length: 0
  </code></pre>
  
  <ol start="4">
  <li>Rest Service response is:</li>
  </ol>
  
  <pre><code>&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>Could you please tell me, what should I do for solving?</p>