Darkkane78
asked on
WSDL.exe and VB.NET Case insensitive / Duplicate name
Hi,
When I used the tool WSDL.exe and i take VB.NET language, I have a little problem with duplicate name.
I've got the error ID:BC30663 Attribute 'GeneratedCodeAttribute' cannot be applied multiple times.
MSDN suggest to add Attribute Usage with the option AllowMultiple at true, but the error still here.
Any suggestion?
Here a part of the generated code...
<System.CodeDom.Compiler.G eneratedCo deAttribut e("wsdl", "2.0.50727.42"), _
System.SerializableAttribu te(), _
System.Diagnostics.Debugge rStepThrou ghAttribut e(), _
System.ComponentModel.Desi gnerCatego ryAttribut e("code"), _
System.Xml.Serialization.X mlTypeAttr ibute(Anon ymousType: =True, [Namespace]:="http://xxx.com")> _
Partial Public Class GetAccountInformationRespo nse
Private getAccountInformationRespo nseField As GetAccountInformationRespo nse
...
End Class
<System.CodeDom.Compiler.G eneratedCo deAttribut e("wsdl", "2.0.50727.42"), _
System.SerializableAttribu te(), _
System.Diagnostics.Debugge rStepThrou ghAttribut e(), _
System.ComponentModel.Desi gnerCatego ryAttribut e("code"), _
System.Xml.Serialization.X mlTypeAttr ibute(Anon ymousType: =True, [Namespace]:="AccountProdu ctOperatio ns/BankAcc ountManage ment/2-0") > _
Partial Public Class getAccountInformationRespo nse
When I used the tool WSDL.exe and i take VB.NET language, I have a little problem with duplicate name.
I've got the error ID:BC30663 Attribute 'GeneratedCodeAttribute' cannot be applied multiple times.
MSDN suggest to add Attribute Usage with the option AllowMultiple at true, but the error still here.
Any suggestion?
Here a part of the generated code...
<System.CodeDom.Compiler.G
System.SerializableAttribu
System.Diagnostics.Debugge
System.ComponentModel.Desi
System.Xml.Serialization.X
Partial Public Class GetAccountInformationRespo
Private getAccountInformationRespo
...
End Class
<System.CodeDom.Compiler.G
System.SerializableAttribu
System.Diagnostics.Debugge
System.ComponentModel.Desi
System.Xml.Serialization.X
Partial Public Class getAccountInformationRespo
ASKER
The difference between the 2 partial class is
GetAccountInformationRespo nse
getAccountInformationRespo nse
The first letter is uppercase for the first one and lowercase the second.I have tried before post this error to change the second class with a different name, but I not sure that'll cause problem when I'll call the web service.
GetAccountInformationRespo
getAccountInformationRespo
The first letter is uppercase for the first one and lowercase the second.I have tried before post this error to change the second class with a different name, but I not sure that'll cause problem when I'll call the web service.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Bob