From my Windows Service I am passing a well-formed XML string to a Java Web Service.
The Java Web Service will process the data and return me a status code. Though I am passing a well formatted XML file. I am getting an error from the Java Web Service of:
Invalid byte 1 of 1 utf-8 sequence in vb.net
What is the reason for this?
Transferred from answer by author:
Sorry for not providing more details. Here is the sample XML I am generating from VB.net Windows service and there are CDATA tags for a few elements.
<?xml version="1.0" encoding="utf-8"?>
<bookstore>
<book category="COOKING">
<title lang="en">Everyday Italian</title>
<author>Giada De Laurentiis</author>
<year>2005</year>
<price>30.00</price>
</book>
<book category="CHILDREN">
<title lang="en">Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</book>
<book category="WEB">
<title lang="en">Learning XML</title>
<author>Erik T. Ray</author>
<year>2003</year>
<price>39.95</price>
</book>
</bookstore>
I am passing the above XML to the Java Web Service.
The XML received by the Java Application though is not cleanly formatted. For some reason few closing tags are broken and appearing in next line.
For example:
<book category="WEB">
<title lang="en">Learning XML</tit
le>
<author>Erik T. Ray</aut
hor>
<year>2003</year>
<price>39.95</price>
</book>
Could this be part of the trouble?