When generating stub classes for consuming the Fredhopper webservice with Visual Basic.NET and the WCF (SvcUtil or using the Visual Studio IDE "Add Service Reference") the reference will not properly compile, and instead an error message will be shown:
'Public Overloads Property value As String' has multiple definitions with identical signatures.
The property for the 'value' XML attribute on the 'name' element is assigned the same name with only differences in capitalization as the actual textual content ('Value' property).
This error can be resolved by manually adjusting the generated stub classes.
- Locate the property definition
- Change the name of the property to 'nonMlValue'
Unable to find source-code formatter for language: vb. Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml
'''<remarks/> <System.Xml.Serialization.XmlAttributeAttribute()> _ Public Overloads Property nonMlValue() As String Get Return Me.valueField End Get Set(ByVal value As String) Me.valueField = value Me.RaisePropertyChanged("value") End Set End Property
| The name 'nonMlValue' is also used in other places in the documentation, and is required when using the Fredhopper Query Language library. |
Comments
0 comments
Please sign in to leave a comment.