468,738 Members | 2,641 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,738 developers. It's quick & easy.

System.Xml.XmlException: The data at the root level is invalid. Line 1, position 1.

Hi All,

I have a remoting service which consumes the web service in another server.
I have the following exception throw by the web service.
System.Xml.XmlException: The data at the root level is invalid. Line 1, position 1.
There is an error in XML document (0, 0).
<?xml version="1.0" encoding="utf-8"?>
<MSVBalanceEnquiry xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<RequestID>f21c8623-99ca-4366-8ba1-3b3a92f9e5a8</RequestID>
<Requestor>kuat99</Requestor>
<InstitutionCode>KK</InstitutionCode>
<RequestSend>9999-12-31T23:59:59.9999999+08:00</RequestSend>
<ResponseDate>9999-12-31T23:59:59.9999999+08:00</ResponseDate>
<RequestType>10</RequestType>
<IsNew>true</IsNew>
<StatusCode />
<StatusDesc />

<Payer>
<Payer_CPF_NO>S7776051B</Payer_CPF_NO>
<Visit_Date>2007-09-07</Visit_Date>
<MSV_CBal>0</MSV_CBal>
<Status_Code />
</Payer>

</MSVBalanceEnquiry>


I have check my outputTrace.webinfo and xml contents it looks fine. Please help me.

Rgds,
Aye Myat
Sep 10 '07 #1
1 11168
Shashi Sadasivan
1,435 Expert 1GB
this might help you http://www.bdragon.com/lair/2005/08/...he_data_at_th/

If not, have u tried parsing your xml file with the schema (if it has any)
Sep 10 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Martin Honnen | last post: by
2 posts views Thread by =?Utf-8?B?am1ncm8=?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.