PC Review


Reply
Thread Tools Rate Thread

deserialization problem (xmlns=''> was not expected)

 
 
John
Guest
Posts: n/a
 
      6th Sep 2005
Hi,
I am getting error "<DECISION_REQIEST xmlns=''> was not expected.
excepiton: System.InvalidOperationException
any clue: why getting error:


input:
<DECISION_REQUEST xmlnso="http://www.cqds.com/CQDSWebservice"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<CQAuthentication Type="String">
<AccountName>Greenlight</AccountName>
<UserName>greenlight1</UserName>
<UserPassword>greenlight1</UserPassword>
</CQAuthentication>
<Guideline Id="388" ProductID="89" VersionId="259"
RateSheetName=""/>
</DECISION_REQUEST>



class :
Imports System.Xml.Serialization

'<remarks/>
<System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://www.cqds.com/CQDSWebservice"),
_
System.Xml.Serialization.XmlRootAttribute("DECISION_REQUEST",
[Namespace]:="http://www.cqds.com/CQDSWebservice", IsNullable:=False)>
_
Public Class DECISION_REQUESTType

'<remarks/>

'<System.Xml.Serialization.XmlElementAttribute(Form:=System.Xml.Schema.XmlSchemaForm.Unqualified)>
_
Public Guideline As DECISION_REQUESTTypeGuideline

'<remarks/>
'<System.Xml.Serialization.XmlAttributeAttribute()> _
Public Version As String
End Class

'<remarks/>
<System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://www.cqds.com/CQDSWebservice")>
_
Public Class DECISION_REQUESTTypeGuideline
Inherits GuidelineType

'<remarks/>
<System.Xml.Serialization.XmlAttributeAttribute()> _
Public VersionId As Short

'<remarks/>
<System.Xml.Serialization.XmlIgnoreAttribute()> _
Public VersionIdSpecified As Boolean

'<remarks/>
<System.Xml.Serialization.XmlAttributeAttribute()> _
Public RateSheetName As String

'<remarks/>
<System.Xml.Serialization.XmlAttributeAttribute()> _
Public ProductID As String

'<remarks/>
<System.Xml.Serialization.XmlAttributeAttribute()> _
Public ProductName As String
End Class

'<remarks/>
<System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://www.cqds.com/CQDSWebservice")>
_
Public Class GuidelineType

'<remarks/>
<System.Xml.Serialization.XmlAttributeAttribute()> _
Public Id As String

'<remarks/>
<System.Xml.Serialization.XmlAttributeAttribute()> _
Public Name As String
End Class

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
xmlns=''> was not expected. Shailendra Batham Microsoft C# .NET 1 31st Aug 2004 02:42 AM
"<root xmlns=''> was not expected." when DeSerialize from xml string Julia Microsoft Dot NET Framework Forms 1 21st Jul 2004 01:37 PM
"<root xmlns=''> was not expected." when DeSerialize from xml string Julia Microsoft Dot NET 0 21st Jul 2004 12:30 PM
ASP.NET xmlns=''> was not expected problem pei_world Microsoft ASP .NET 4 15th Jun 2004 03:17 PM
XPath problem with two xmlns Gismo Microsoft C# .NET 0 1st Apr 2004 01:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:11 AM.