Hey Karl,
Thanks a lot for reply and throwing some light on the
issue. The inner exception indicates the following code as problematic;
<System.Xml.Serialization.XmlElementAttribute("Ban kAcct",
GetType(BankAcctType), Order:=0), _
System.Xml.Serialization.XmlElementAttribute("Cash ",
GetType(PaymentFormTypeCash), Order:=0), _
System.Xml.Serialization.XmlElementAttribute("Dire ctBill",
GetType(DirectBillType), Order:=0), _
System.Xml.Serialization.XmlElementAttribute("Loya ltyRedemption",
GetType(PaymentFormTypeLoyaltyRedemption), Order:=0), _
System.Xml.Serialization.XmlElementAttribute("Misc ChargeOrder",
GetType(PaymentFormTypeMiscChargeOrder), Order:=0), _
System.Xml.Serialization.XmlElementAttribute("Paym entCard",
GetType(PaymentCardType), Order:=0), _
System.Xml.Serialization.XmlElementAttribute("Vouc her",
GetType(PaymentFormTypeVoucher), Order:=0) _
Public Property Item() As Object
Get
Return Me._item
End Get
Set
If (Me._item <value) Then
Me._item = value
End If
End Set
End Property
Can u tell me what am I doing Wrong?
Thanks,
Nis
Karl Seguin wrote:
Somewhere you have a piece of code that does
x <y
where y is a variable of type PaymentCardType and x is of type
Nothing....and VB doesn't know how to compare nothing to PaymentCardType.
You should probably check X for nothing before moving on...
Karl
--
http://www.openmymind.net/
http://www.fuelindustries.com/
"imonline" <ni****@gmail.comwrote in message
news:11**********************@l12g2000cwl.googlegr oups.com...
Hi,
I have developed a webservice with OTA compliance using WSCF 0.6.
Now eveything works fine but the soap messages with paymentcard node is
giving me following error.
(70, 29). ---> System.InvalidCastException: Operator '<>'
is not defined for 'Nothing'
and type 'PaymentCardType'
Please let me know what am I doing wrong.
Regards,
Nis