| Author |
|
jimatqsi Newbie


Joined: 21 June 2010 Location: United States
Online Status: Offline Posts: 2
|
| Posted: 21 June 2010 at 10:08pm | IP Logged
|
|
|
I'm trying to get away from MSWinsck, so I installed
Ostrosoft. Using Ostrosoft control, the server connects
but refuses to accept the xml data I am sending,
returning an error description of "Data at the root
level is invalid. Line 1, position 1". So from the first
byte it doesn't like what it sees.
The same xml data is accepted by the Winsck control. All
I am changing when I switch controls is the name of the
control being used, and the method used to disconnect.
What could be the problem?
Thanks.
__________________ --
Jim
|
| Back to Top |
|
| |
igor Admin Group

Joined: 20 July 2005 Location: United States
Online Status: Offline Posts: 252
|
| Posted: 22 June 2010 at 4:13pm | IP Logged
|
|
|
Looks like you are not retrieving all data Create a class level variable, and concatenate it in OnDataArrival event Then retrieve the entire string value on OnClose event
|
| Back to Top |
|
| |
jimatqsi Newbie


Joined: 21 June 2010 Location: United States
Online Status: Offline Posts: 2
|
| Posted: 23 June 2010 at 10:11pm | IP Logged
|
|
|
Igor, I am not retrieving any data, I am only sending data.
A server program is to be receiving what I am sending. The
server program is replying with the error that I mentioned
in post #1.
Jim
__________________ --
Jim
|
| Back to Top |
|
| |
igor Admin Group

Joined: 20 July 2005 Location: United States
Online Status: Offline Posts: 252
|
| Posted: 29 June 2010 at 4:51pm | IP Logged
|
|
|
Jim, have you tried sending smaller chunk of XML? Just to make sure it's not a problem with sending buffer size.
Also, try replacing hard returns (CR+LF) in your XML with soft returns (LF). Server my treat hard return as end-of-data command and will stop accepting data before entire XML is sent
|
| Back to Top |
|
| |