DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 12 Jul 2007 08:53:18 -0700,    posted on: microsoft.public.dotnet.framework.aspnet.webservices        back       

Thread Index
  1    Jeremy


Invalid hexidecimal characters   
I have a web service returning a class.  Most of the time ther serialization 
and deserialization of the class works perfection.  One of the properties of 
the class is a string which could contain characters (0x08 for example) 
which are not valid in xml.  When this is the case, the web service encodes 
the character as  like it should.  I can see this when I view the 
source of the web methods output.

When I consume this web service from a web app, the web app returns an error 
"There is an error in XML document (39, 13)." with an inner exception of 
"'', hexadecimal value 0x08, is an invalid character. Line 39, position 
13."

It seems to me the serialization of the class to xml by the web service is 
happening fine, but it's the deserialization of the xml back to a class by 
the web app where it's failing.  Why is this?  I would think that the  
encoded characters should be deserializable.  Any way to fix or work around 
this?  I can't base64encode the string in my web service.
Date:Thu, 12 Jul 2007 08:53:18 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us