You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "CXFUser (JIRA)" <ji...@apache.org> on 2009/05/22 19:49:45 UTC
[jira] Commented: (CXF-2232) CXF wsdltojava client generation fails
to generated the service with targetnamespace
[ https://issues.apache.org/jira/browse/CXF-2232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12712183#action_12712183 ]
CXFUser commented on CXF-2232:
------------------------------
Does anyone know why JAXB fails to generate the service stub with appropriate targetnamspace. CXF client generation with JAXB bindings fails this operation. I do not get any error during compliation of the service. This looks like JAXB fails to generate the client bindings when the server side code has collection of enum types.
> CXF wsdltojava client generation fails to generated the service with targetnamespace
> ------------------------------------------------------------------------------------
>
> Key: CXF-2232
> URL: https://issues.apache.org/jira/browse/CXF-2232
> Project: CXF
> Issue Type: Bug
> Environment: Java based webservice application with CXF 2.2.1
> Reporter: CXFUser
>
> Sample Java Code
> package com.test
> public enum Status {
> OPEN,
> CLOSED,
> }
> package com.test
> public class ServiceRequest{
> public Collection<Status > getStatus();
> }
> package com.service
> @WebService(name="TestService ",
> serviceName="TestService ",
> portName="TestServicePort")
> public interface TestService {
> public void getAllServiceRequest();
> }
> When i run the wsdl to java for CXF . The generated stub for TestService has the targetnamespace to be empty string. This happens with CXF 2.2.1 and CXF 2.1.4 . Also when i change getStatus() on ServiceRequest to have Collection<String> then client generated code looks fine.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.