org.xml.sax.SAXParseException: The content of elements must consist of well-formed character data or — oracle-tech

    Forum Stats

  • 3,701,008 Users
  • 2,239,261 Discussions
  • 7,834,970 Comments

Discussions

org.xml.sax.SAXParseException: The content of elements must consist of well-formed character data or

Damir DevDamir Dev Posts: 43
edited August 2019 in SOA Suite Discusssions

Hello!

I have composite (Oracle SOA Suite 11g) for one-way invoke REST GET service.

  <reference name="RestService"

             ui:wsdlLocation="RestService.wsdl">

      ...

      <property name="http.verb" type="xs:string" many="false">GET</property>

      <property name="endpointURI" type="xs:string" many="false">http://rest-server/processor.testform</property>

      <property name="http.payload" type="xs:string" many="false">url-encoded</property>

    </binding.ws>

  </reference>

Request to REST GET service is successful, and response with code=200 looks like

HTTP/1.1 200 OK

Date: Mon, 30 Jul 2019 21:42:35 GMT

rlog_pk: 10015220307165

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=310260800457152,0:1)

Content-Length: 0

I wait the http code only for response from rest service, no any business data.

But it has fault in BPEL

<part  name="summary">

<summary>oracle.fabric.common.FabricInvocationException: Unable to invoke endpoint URI "http://rest-server/processor.testform" successfully due to: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Unable to read response: org.xml.sax.SAXParseException; lineNumber: 24; columnNumber: 24; The content of elements must consist of well-formed character data or markup.</summary>

</part>

<part  name="detail">

<detail>Unable to invoke endpoint URI "http://rest-server/processor.testform" successfully due to: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Unable to read response: org.xml.sax.SAXParseException; lineNumber: 24; columnNumber: 24; The content of elements must consist of well-formed character data or markup.</detail>

</part>

<part  name="code">

<code>200</code>

</part>

</remoteFault>

Could you please tell me how to fix this problem? What should I check?

Tagged:

Answers

  • Damir DevDamir Dev Posts: 43
    edited August 2019

    I guess, I should make two-way invoke REST service instead one-way, because I receive http=200 from REST service.

    I must create xsd for response from REST service. But I receive Content-Type: text/html;charset=windows-1251 from REST service, and it makes me confused, because I dont really know what should be in xsd for response.

Sign In or Register to comment.