Getting Error When Calling Web Service Method - XML parsing error: com.sun.xml.rpc.sp.ParseException:1: Document root element is missing (Doc ID 1356989.1)

Last updated on NOVEMBER 03, 2016

Applies to:

Oracle Java CAPS - Version 5.1.3 and later
Information in this document applies to any platform.
Checked for relevance on 03-11-2014

Symptoms

When attempting to call a Web Service method running on WebSphere from a JCD, it fails with the following error:

XML parsing error: com.sun.xml.rpc.sp.ParseException:1: Document root element is missing



The receiver (WebSphere) side records this error:

8/18/11 14:29:49:787 EDT] 00000032 Message E
org.apache.axis.Message writeTo java.io.IOException:
java.io.UnsupportedEncodingException: &quot

Changes

WebSphere is rejecting the message because of the quotes around the charset in the HTTP header. 


Content-Type: text/xml; charset="utf-8"

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms