REST org.xml.sax.SAXParseException; lineNumber:1; columnNumber:1;文件过早结束

时间:2020-01-15 15:41:14

标签: rest soa bpel saxparseexception

我使用的是SOA Suite 11g。

  1. 复合有成分
  <component name="ClientPrepare" version="2.0">
    <implementation.bpel src="ClientPrepare.bpel"/>
    <property name="bpel.config.oneWayDeliveryPolicy" type="xs:string"
              many="false">async.persist</property>
  </component>

和参考(休息服务,获取方法)

  <reference name="PrepareService"
             ui:wsdlLocation="PrepareService.wsdl">
    <interface.wsdl interface="http://xmlns.oracle.com/pcbpel/adapter/http/ClientPrepare/PrepareService#wsdl.interface(ClientPrepare_ptt)"/>
    <binding.ws port="ns#wsdl.endpoint(srv/prt)"
                location="PrepareService.wsdl" supports="http">
      <property name="http.verb" type="xs:string" many="false">GET</property>
      <property name="endpointURI" type="xs:string" many="false">"<some url>"</property>
      <property name="http.payload" type="xs:string" many="false">url-encoded</property>
      <property name="oracle.webservices.http.invocation" type="xs:string" many="false">false</property>
    </binding.ws>
  </reference>
  1. 当组件调用休息服务时,它会收到成功http 200,但组件进程有故障
Unable to invoke endpoint URI "<some url>" successfully due to: javax.xml.soap.SOAPException: Unable to read response: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.
  1. Rest服务仅接收http标头,不包含内容:
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
  1. 其他服务的响应是:
<html><head></head><body></body></html>

您能告诉我,我该怎么解决?

0 个答案:

没有答案
相关问题