How to resolve this message in requestservice.log: "Failed to read XML data from a stream, error on line 1: (0xc00ce56f) Switch from current encoding to specified encoding not supported."
search cancel

How to resolve this message in requestservice.log: "Failed to read XML data from a stream, error on line 1: (0xc00ce56f) Switch from current encoding to specified encoding not supported."

book

Article ID: 30718

calendar_today

Updated On:

Products

Automation Point

Issue/Introduction

When you try to communicate to another server that has been setup for web services with Tomcat the attempt is failing.
You find the following in the RequestService.log file, wrapped in XML tags:

"Failed to read XML data from a stream, error on line 1: (0xc00ce56f) Switch from current encoding to specified encoding not supported."You will also notice a HTTP1.1 500 error (internal server error)."

 

 

Environment

Release: AP327020100-11.5-Automation Point-3270/5250 Interface Option
Component:

Cause

You are using an 11.4.1.0 (or later release) RequestService (Web Services) client with an 11.4.0.0 server; development released some updates in 11.4.1 to better handle character encoding soon after 11.4 went GA, so the older Web Services server cannot interpret the updated character encodings sent by the updated WS client.

 

Resolution

You will needs to upgrade to at least 11.4.1.0 (SP1) on the AP Server that is running the Web Services listening and serving the client requests; alternatively, you can downgrade the RequestService client on the remote system whose making the web service request to 11.4.0.0. You can find the RequestServiceClientDist.zip in the %AP_HOME%\Sample\websvc directory. Follow the instructions here to install the RequestService client on your remote system.