Hi Yasemin,
The error indicates there are invalid characters (not allowed in xml documents) in response SOAP message. This response was sent by remote service. The investigation should be done from service provider side.
Can you please investigate in this regard please ?
We have Other Cases where the issue has occurred where SAP is WS provider trying to contact other WS provider, are you using SAP as WS provider, and is it a JEE application ?
and
This error and it's variants (different Unicode value) all stem from one of two reasons.
- You are setting an invalid header or header value
- You are not sending a complete SOAP message
The prolog refers to the headers of the SOAP message. When the headers are parsed, normally on a reply but possibly on a request, if there is an error or bad data, this exception is thrown. https://www.w3.org/TR/xml/#charsets. Thus this S is not expected or the data after is not set.
If you look at the http://en.wikipedia.org/wiki/List_of_HTTP_header_fields , you can see few use a capital S:
- Server
- If-Modified-Since
- If-Unmodified-Since
- Set-Cookie
- Status
- Strict-Transport-Security
- X-XSS-Protection
- Content-Security-Policy
Note that not all are acceptable for all messages. If you set one of these, check to make sure the spelling is valid, it is valid for this message, and the content with it is valid. In one case, there was a POST header that was valid, however, there was nothing past the headers in the SOAP message due to a code error. This threw the same exception on the P in POST since it could not locate the data to post.
Therefore, make sure your headers are well formed, correctly spelled, valid, and the message is complete.
------------------------------
Sriram Bharadwaj Sampathkumar
------------------------------
Original Message:
Sent: Tue March 21, 2023 10:16 AM
From: YASEMİN ALADI
Subject: Call External Web Service Error
Hello,
We tried to call a web service in ibm baw. We have called this web service since February. But, now we got an error. The error message is
CWTBG0019E: Unexpected exception during execution. Exception information: 'An exception occurred in activity "Script Task" of "Service Flow" with name "WServer". Task instance id "Task.". Details: "javax.xml.stream.XMLStreamException: An invalid XML character (Unicode: 0x35) was found in the prolog of the document.".'.
Is there anybody knows the solution of that error? Please help.
------------------------------
YASEMİN ALADI
------------------------------