Re: Reference: .net: Unable to generate a temporary class (result=1), OperationResult

2010-12-06 Thread AdWords API Advisor
Hi James,

Thanks for pointing this out, I'll document this as part of the .NET
library's NoClientLibrary.wiki article and pass it onto the AdWords
team.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Dec 3, 7:11 pm, James Baxter  wrote:
> Sorry for some reason I could not reply to the original thread 
> here:http://groups.google.com/group/adwords-api/browse_frm/thread/2dbde66d...
>
> In schema definition, I found that by moving the cardinality rules
> onto the sequence element rather than the child, .NET 2.0 and WCF code
> generation does not collapse the sequences, and thus does not expose
> the bug you have found.
>
> Try
> < xsd:complexType name="C">
>   < xsd:sequence maxOccurs="unbounded" minOccurs="0">
>     < xsd:element name="someDate" type="xsd:date"/>
>   < /xsd:sequence>
> < /xsd:complexType>
>
> Rather than
> < xsd:complexType name="C">
>   < xsd:sequence>
>     < xsd:element maxOccurs="unbounded" minOccurs="0" name="someDate"
> type="xsd:date"/>
>   < /xsd:sequence>
> < /xsd:complexType>
>
> James

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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


Reference: .net: Unable to generate a temporary class (result=1), OperationResult

2010-12-03 Thread James Baxter
Sorry for some reason I could not reply to the original thread here:
http://groups.google.com/group/adwords-api/browse_frm/thread/2dbde66de2326e2c?tvc=1

In schema definition, I found that by moving the cardinality rules
onto the sequence element rather than the child, .NET 2.0 and WCF code
generation does not collapse the sequences, and thus does not expose
the bug you have found.

Try
< xsd:complexType name="C">
  < xsd:sequence maxOccurs="unbounded" minOccurs="0">
< xsd:element name="someDate" type="xsd:date"/>
  < /xsd:sequence>
< /xsd:complexType>

Rather than
< xsd:complexType name="C">
  < xsd:sequence>
< xsd:element maxOccurs="unbounded" minOccurs="0" name="someDate"
type="xsd:date"/>
  < /xsd:sequence>
< /xsd:complexType>

James

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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