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

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi,
I am getting error "<DECISION_REQIEST xmlns=''> was not expected.
excepiton: System.InvalidOperationException
any clue: why getting error:


input:
<DECISION_REQUEST xmlns:po="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
 
Back
Top