Hi David, Unfortunately, I've never worked with generated classes in DotNet. It looks like the NoClientLibrary wiki page for the DotNet library mentions this is a known issue: http://code.google.com/p/google-api-adwords-dotnet/wiki/NoClientLibrary#b._wsdl.exe_doesn't_generate_some_types_properly.
- Kevin Winter AdWords API Team On Wednesday, March 7, 2012 3:36:58 PM UTC-5, okieb...@gmail.com wrote: > > Kevin, > Sorry to hijack this thread, but the same problem exists with both > wsdl.exe and svcutil.exe for this class generation from the provided wsdl. > TargetingService class is not generated and the TargetingIdeaPage > references unwrapped definition. > As pointed out the TargetingIdeaPage generates: > > <System.CodeDom.Compiler.GeneratedCodeAttribute("svcutil", > "3.0.4506.648"), _ > System.SerializableAttribute(), _ > System.Diagnostics.DebuggerStepThroughAttribute(), _ > System.ComponentModel.DesignerCategoryAttribute("code"), _ > System.Xml.Serialization.XmlTypeAttribute([Namespace]:=" > https://adwords.google.com/api/adwords/o/v201109")> _ > Partial Public Class TargetingIdeaPage > > Private totalNumEntriesField As Integer > > Private totalNumEntriesFieldSpecified As Boolean > > Private entriesField()() As Type_AttributeMapEntry > > '''<remarks/> > <System.Xml.Serialization.XmlElementAttribute(Order:=0)> _ > Public Property totalNumEntries() As Integer > Get > Return Me.totalNumEntriesField > End Get > Set > Me.totalNumEntriesField = value > End Set > End Property > > '''<remarks/> > <System.Xml.Serialization.XmlIgnoreAttribute()> _ > Public Property totalNumEntriesSpecified() As Boolean > Get > Return Me.totalNumEntriesFieldSpecified > End Get > Set > Me.totalNumEntriesFieldSpecified = value > End Set > End Property > > '''<remarks/> > <System.Xml.Serialization.XmlArrayAttribute(Order:=1), _ > System.Xml.Serialization.XmlArrayItemAttribute("data", > GetType(Type_AttributeMapEntry), IsNullable:=false)> _ > Public Property entries() As Type_AttributeMapEntry()() > Get > Return Me.entriesField > End Get > Set > Me.entriesField = value > End Set > End Property > End Class > > > Rather than: > > <System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", > "2.0.50727.1432")> _ > <System.SerializableAttribute()> _ > <System.Diagnostics.DebuggerStepThroughAttribute()> _ > <System.ComponentModel.DesignerCategoryAttribute("code")> _ > <System.Xml.Serialization.XmlTypeAttribute([Namespace]:=" > https://adwords.google.com/api/adwords/o/v201109")> _ > Partial Public Class TargetingIdeaPage > Private totalNumEntriesField As Integer > > Private totalNumEntriesFieldSpecified As Boolean > > Private entriesField As TargetingIdea() > > Public Property totalNumEntries() As Integer > Get > Return Me.totalNumEntriesField > End Get > Set(ByVal value As Integer) > Me.totalNumEntriesField = value > Me.totalNumEntriesSpecified = True > End Set > End Property > > <System.Xml.Serialization.XmlIgnoreAttribute()> _ > <EditorBrowsable(EditorBrowsableState.Never)> _ > Public Property totalNumEntriesSpecified() As Boolean > Get > Return Me.totalNumEntriesFieldSpecified > End Get > Set(ByVal value As Boolean) > Me.totalNumEntriesFieldSpecified = value > End Set > End Property > > <System.Xml.Serialization.XmlElementAttribute("entries")> _ > Public Property entries() As TargetingIdea() > Get > Return Me.entriesField > End Get > Set(ByVal value As TargetingIdea()) > Me.entriesField = value > End Set > End Property > End Class > > I manually edit my class output to correct this, but it can be a tough one > to debug for the newbies. Can you pass along to the web services team to > see if there is a solution for upcoming releases? > > David > > On Tuesday, December 27, 2011 5:14:08 PM UTC-5, Kevin Winter wrote: >> >> Hi Maxim, >> One of the previous maintainers of the current java library mentioned >> that there's a flag for WSDL2JAVA and you need to tell it to generate >> "all", all="true" for the ant task, --all for command line. >> >> - Kevin Winter >> >> On Tuesday, December 27, 2011 1:22:22 PM UTC-5, Maxim wrote: >>> >>> We are still on v201008 and I'm building v201109 client. >>> Sounds like an axis config problem. I'm on a skiing trip at the >>> moment, but I'll try different settings. Thanks for your help. >>> >> > On Tuesday, December 27, 2011 5:14:08 PM UTC-5, Kevin Winter wrote: >> >> Hi Maxim, >> One of the previous maintainers of the current java library mentioned >> that there's a flag for WSDL2JAVA and you need to tell it to generate >> "all", all="true" for the ant task, --all for command line. >> >> - Kevin Winter >> >> On Tuesday, December 27, 2011 1:22:22 PM UTC-5, Maxim wrote: >>> >>> We are still on v201008 and I'm building v201109 client. >>> Sounds like an axis config problem. I'm on a skiing trip at the >>> moment, but I'll try different settings. Thanks for your help. >>> >> > On Tuesday, December 27, 2011 5:14:08 PM UTC-5, Kevin Winter wrote: >> >> Hi Maxim, >> One of the previous maintainers of the current java library mentioned >> that there's a flag for WSDL2JAVA and you need to tell it to generate >> "all", all="true" for the ant task, --all for command line. >> >> - Kevin Winter >> >> On Tuesday, December 27, 2011 1:22:22 PM UTC-5, Maxim wrote: >>> >>> We are still on v201008 and I'm building v201109 client. >>> Sounds like an axis config problem. I'm on a skiing trip at the >>> moment, but I'll try different settings. Thanks for your help. >>> >> > On Tuesday, December 27, 2011 5:14:08 PM UTC-5, Kevin Winter wrote: >> >> Hi Maxim, >> One of the previous maintainers of the current java library mentioned >> that there's a flag for WSDL2JAVA and you need to tell it to generate >> "all", all="true" for the ant task, --all for command line. >> >> - Kevin Winter >> >> On Tuesday, December 27, 2011 1:22:22 PM UTC-5, Maxim wrote: >>> >>> We are still on v201008 and I'm building v201109 client. >>> Sounds like an axis config problem. I'm on a skiing trip at the >>> moment, but I'll try different settings. Thanks for your help. >>> >> -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en