[ https://issues.apache.org/jira/browse/CXF-2235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12712099#action_12712099 ]
Deboschère Tony edited comment on CXF-2235 at 5/22/09 7:12 AM: --------------------------------------------------------------- And I'm using the apache cxf maven plugin to generate my Client. Here are the excerpt : <plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-codegen-plugin</artifactId> <version>2.1.4</version> <executions> <execution> <id>generate-sources</id> <phase>generate-sources</phase> <configuration> <sourceRoot>${basedir}/src/main/java/</sourceRoot> <wsdlOptions> <wsdlOption> <wsdl>${basedir}/src/main/resources/wsdl/syncTest.wsdl</wsdl> <bindingFiles> <bindingFile>${basedir}/src/main/resources/jaxb/bindings.xml</bindingFile> <bindingFile>${basedir}/src/main/resources/jaxws/bindings.xml</bindingFile> </bindingFiles> <extraargs> <extraarg>-exsh</extraarg> <extraarg>true</extraarg> <extraarg>-client</extraarg> </extraargs> </wsdlOption> </wsdlOptions> </configuration> <goals> <goal>wsdl2java</goal> </goals> </execution> </executions> </plugin> The bindings contain only package renaming information. was (Author: radamanth): And I'm using the apache cxf maven plugin to generate my Client. Here are the excerpt : <plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-codegen-plugin</artifactId> <version>2.1.4</version> <executions> <execution> <id>generate-sources</id> <phase>generate-sources</phase> <configuration> <sourceRoot>${basedir}/src/main/java/</sourceRoot> <wsdlOptions> <wsdlOption> <wsdl>${basedir}/src/main/resources/wsdl/syncTest.wsdl</wsdl> <bindingFiles> <bindingFile>${basedir}/src/main/resources/jaxb/bindings.xml</bindingFile> <bindingFile>${basedir}/src/main/resources/jaxws/bindings.xml</bindingFile> </bindingFiles> <extraargs> <extraarg>-exsh</extraarg> <extraarg>true</extraarg> <extraarg>-client</extraarg> </extraargs> </wsdlOption> </wsdlOptions> </configuration> <goals> <goal>wsdl2java</goal> </goals> </execution> </executions> </plugin> > WSDL2JAVA fail to create the good java method - missing one argument > --------------------------------------------------------------------- > > Key: CXF-2235 > URL: https://issues.apache.org/jira/browse/CXF-2235 > Project: CXF > Issue Type: Bug > Components: Tooling > Affects Versions: 2.2.1 > Environment: ECLIPSE 3.4 > CXF 2.2.1 > MAVEN PLUGIN : cxf-codegen-plugin 2.1.4 > JAVA 5 > Windows operating system > Reporter: Deboschère Tony > Attachments: syncTest.wsdl > > > Hi. > When I try to generate the java client with wsdl2java. > I have a missing parameter. > here are excerpt for my wsdl : > I have this operation in the portType section > <operation name="JobSubmit"> > <input message="xoa:JobSubmitRequest"/> > <output message="xoa:JobSubmitResult"/> > </operation> > And here is the 2 message : > <message name="JobSubmitRequest"> > <part element="xoa:JobSubmitRequest" name="parameter"/> > <part element="xoa:Request" name="request_header"/> > </message> > <message name="JobSubmitResult"> > <part element="xoa:JobSubmitResult" name="parameter"/> > <part element="xoa:Response" name="response_header"/> > </message> > As you can see both message have a 'part' named 'parameter' > I think that it's the source of the problem. > But I have no option for modifying the wsdl. > I think jaxb binding could be a solution but I can't get jaxb binding to work > properly (see https://issues.apache.org/jira/browse/CXF-2225) > by the way I think that it's still a bug for CXF plugin didn't give me an > error or something. > Regards. > Tony -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.