[ 
https://issues.apache.org/jira/browse/CXF-1463?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christian Schneider resolved CXF-1463.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.4
         Assignee: Christian Schneider

I just tried to generate a wsdl from a java service that contains a Map in one 
data class. 

public class Customer {
    Map<String, String> products;

    public Map<String, String> getProducts() {
        return products;
    }

    public void setProducts(Map<String, String> products) {
        this.products = products;
    }
}

The wsdl was generated without errors and contains the following:
<xs:complexType name="customer">
                                <xs:sequence>
                                        <xs:element name="products">
                                                <xs:complexType>
                                                        <xs:sequence>
                                                                <xs:element 
maxOccurs="unbounded" minOccurs="0" name="entry">
                                                                        
<xs:complexType>
                                                                                
<xs:sequence>
                                                                                
        <xs:element minOccurs="0" name="key" type="xs:string" />
                                                                                
        <xs:element minOccurs="0" name="value" type="xs:string" />
                                                                                
</xs:sequence>
                                                                        
</xs:complexType>
                                                                </xs:element>
                                                        </xs:sequence>
                                                </xs:complexType>
                                        </xs:element>
                                </xs:sequence>
                        </xs:complexType>

So I think this issue is solved. Please reopen if this is incorrect.

> java2ws produces mystifying error when service attempts to use a Map with 
> JAX-B
> -------------------------------------------------------------------------------
>
>                 Key: CXF-1463
>                 URL: https://issues.apache.org/jira/browse/CXF-1463
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.1
>            Reporter: Benson Margulies
>            Assignee: Christian Schneider
>             Fix For: 2.2.4
>
>
> Step 1: build the current tip, including the distribution directory.
> Step 2: apply the current build to itself, as follows.
> I don't know what this error is trying to tell me.
> bim-1330% $CXF_HOME/bin/java2ws -cp 
> /home/benson/cxf/trunk/systests/target/test-classes 
> org.apache.cxf.systest.aegis.AegisJaxWs
> Error: org.apache.cxf.service.factory.ServiceConstructionException
> JavaToWS Error: org.apache.cxf.service.factory.ServiceConstructionException

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to