cancel
Showing results for 
Search instead for 
Did you mean: 

SoapFault:faultstring=Error reading XMLStreamReader: Unexpected character

taherbalazzi
Explorer
0 Kudos
164

Hi Expert

I’m facing an issue while working on a SOAP web service call in my ABAP program, and I’m seeking your guidance.

Error Details:

During the execution of the web service, I encounter the following error:

taherbalazzi_0-1737398441211.png

taherbalazzi_1-1737398578272.png

Scenario:

  • Web Service Type: SOAP
  • Proxy Class: Used for calling the service in ABAP.
  • Payload: Sent from the ABAP program using a generated proxy class.

The error seems to suggest that the response or request payload contains invalid characters or is not properly formatted XML. This happens when sending the SOAP request to a CPI endpoint.


What I’ve Checked So Far:

  1. Payload Structure:

    • Ensured the payload has the correct SOAP envelope and namespace definitions.
    • Verified all required fields are populated.
  2. CPI Logs:

    • Checked logs in SAP Integration Suite (CPI) and observed issues during payload processing.
  3. Proxy Configuration:

    • Verified endpoint, authentication, and proxy configurations in the ABAP program.
  4. Request Validation:

    • Used HTTP tools (Postman , soapUI) to send the same payload, and it worked as expected, pointing to an issue in the ABAP-generated payload.

 

Any insights or suggestions would be greatly appreciated!

Thanks in advance for your help!

Best regards,
Taher

 

 

Accepted Solutions (0)

Answers (1)

Answers (1)

PRanavMalhotra
Discoverer
0 Kudos

Please check RFC destination at S4 end and make sure UTF-8 encoding is used