Hi Dimuthu, Thanks for your prompt reply! That did the trick :)
Cheers, Sérgio --- On Thu, Mar 13, 2008 at 1:50 AM, Dimuthu Gamage <[EMAIL PROTECTED]> wrote: > Hi Sérgio, > > Yea there is a bug in identifying simple types in the stub. Those > types should be prefixed with adb_ and post fix with _t*. And the > relevant header files should be included. > In any case you can correct this in the generated code, I have > attached the corrected code for you wsdl (just stub.c and stub.h). We > will fix this asap in the code. > > Thanks > Dimuthu > > > > On Thu, Mar 13, 2008 at 12:30 AM, Sérgio Gomes <[EMAIL PROTECTED]> wrote: > > Hello, > > > > I'm using the code generator to get stubs for an existing WSDL ( > > https://adwords.google.com/api/adwords/v11/CampaignService?wsdl ), but > > the generator is producing some unexpected (and non-compilable) > > results. Namely, it generates the following as a function header: > > > > axis2_stub_op_CampaignService_getCampaignStats( axis2_stub_t *stub, > > const axutil_env_t *env, > > > > adb_getCampaignStats_t* _getCampaignStats, > > useragent > _useragent, > > password _password, > > email _email, > > clientEmail > > _clientEmail, > > > > clientCustomerId _clientCustomerId, > > developerToken > > _developerToken, > > > > applicationToken _applicationToken); > > > > but then it doesn't generate the "useragent", "password", "email", > > etc. types (which are just complexTypes with a single restriction: to > > be a string, if you look at the WSDL). This of course causes the > > compiler to complain that the types aren't defined. I've generated the > > code with ADB support, and the "adb_useragent_t" is in fact defined, > > but not "useragent" (same goes for other types). > > > > I'm using the latest nightly build (as of 12 Mar 19:00 UTC) with the > > standard options sugegsted in the documentation (-d adb -u). > > > > Can anyone provide any tips? > > > > Thanks, > > Sérgio > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
