Sunil Menon
04-24-2002, 12:46 AM
Dear All,
I had written a mail before this regarding the same problem. From Willam
I got to know the following:
Well, Hex 0x00 is a Null character, and is not displayable nor can it
beused in places of a Null string. If you are trying to retrieve the data
for display (or to manipulate) into a string, you need to capture the fact
and handle accordinally. (I.E. strField = ds("Field"): If ds("Field") is
Nothing Then strField &= "")
Now to the problem:
I have a WebService which calls a Object's function present in another
dll. This function fetches a record for me. If the function fails it throw
an SQLException defined by me. I catch this SQLException in my WebService
and using SoapFormatter I deserialize this object into an XMLNode and pass
this XML node into the details paramter of a SoapException and throw the
SoapException. But when I throw this SoapException it gives me the error
"hexadecimal value 0x00, is an invalid character".
If I create a exception at my WebService and deserialize and send the SoapException
it Works!!.
I have tried really hard to trace the problem. But I have not been able to
as yet. Could someone help me out with this.
Thanks a lot in advance.
Many Regards
Sunil
I had written a mail before this regarding the same problem. From Willam
I got to know the following:
Well, Hex 0x00 is a Null character, and is not displayable nor can it
beused in places of a Null string. If you are trying to retrieve the data
for display (or to manipulate) into a string, you need to capture the fact
and handle accordinally. (I.E. strField = ds("Field"): If ds("Field") is
Nothing Then strField &= "")
Now to the problem:
I have a WebService which calls a Object's function present in another
dll. This function fetches a record for me. If the function fails it throw
an SQLException defined by me. I catch this SQLException in my WebService
and using SoapFormatter I deserialize this object into an XMLNode and pass
this XML node into the details paramter of a SoapException and throw the
SoapException. But when I throw this SoapException it gives me the error
"hexadecimal value 0x00, is an invalid character".
If I create a exception at my WebService and deserialize and send the SoapException
it Works!!.
I have tried really hard to trace the problem. But I have not been able to
as yet. Could someone help me out with this.
Thanks a lot in advance.
Many Regards
Sunil