Plz, create jira issue. On 12/15/06, Geert Engels <[EMAIL PROTECTED]> wrote:
Using Ant wsgen task from xfire 1.2.3 against WSDL from https://adwords.google.com/api/adwords/v8/CampaignService?wsdl I get: [wsgen] 15-Dec-2006 09:20:04 org.codehaus.xfire.gen.Wsdl11Generator generate [wsgen] INFO: Generating code for WSDL at file:/c:/work/workspace/bcp/src/etc/wsdl/ggl/CampaignService.wsdl with a ba e URI of file:/c:/work/workspace/bcp/src/etc/wsdl/ggl/CampaignService.wsdl [wsgen] 15-Dec-2006 09:20:04 org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator generate [wsgen] INFO: Creating class com.teracode.bcp.api.ggl.CampaignInterface BUILD FAILED C:\work\workspace\bcp\build\build.xml:72: org.codehaus.xfire.gen.GenerationException: Could not find holder type. This seems to be the same as question posted on Nov 2nd here http://www.mail-archive.com/[email protected]/msg01259.html to which there never was a reply. Running the Ant task through a debugger, I can intercept an embedded ClassCastException, which originates at line org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator.java:252. The code there is as follows: protected JType getHolderType(GenerationContext context,MessagePartInfo part) throws GenerationException { JType genericType = context.getSchemaGenerator().getType(context, part.getName(), part.getSchemaType().getSchemaType()); try { JClass holder = context.getCodeModel().ref("javax.xml.ws.Holder"); holder = holder.narrow((JClass) genericType); /* THIS IS WHERE THE CLASSCASTEXCEPTION OCCURS */ return holder; } catch (Exception e) { throw new GenerationException("Could not find holder type.", e); } } The MessagePartInfo, when the ClassCast is thrown, contains a schemaType which stringifies to "org.codehaus.xfire.aegis.type.basic.ObjectType[class=<null>, QName={https://adwords.google.com/api/adwords/v8}responseTime]". Anybody know how to get Xfire wsgen to work with this WSDL? All others from WSDLs from Google AdWords API, not only this service but all others, and not only v8 but v7 and v6 as well, fail in the same way. Thanks ! Geert.
-- ----- When one of our products stops working, we'll blame another vendor within 24 hours. --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
