cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Javier Delgadillo (JIRA)" <>
Subject [jira] Created: (CXF-1482) List<Double> parameters don't map to xsd:double in generated WSDL
Date Thu, 20 Mar 2008 23:13:24 GMT
List<Double> parameters don't map to xsd:double in generated WSDL

                 Key: CXF-1482
             Project: CXF
          Issue Type: Bug
          Components: Aegis Databinding, Soap Binding
    Affects Versions: 2.1
         Environment: Glassfish App Server
            Reporter: Javier Delgadillo

When using the Mar 14 snapshot build of 2.1, CXF outputs less than desirable WSDL for any
service that has an input parameter of type List<Double> when used in conjuction with
Aegis Mapping files.

With previous builds, the List<Double> would map to xsd:double, but now it creates its
own namespace.

Here's the interface:
public interface Foo
    int bar( List<Double> doublesList );

Here's the Aegis mapping file:
<?xml version="1.0"?>
<!-- xmlns="" -->
        <method name="bar">
            <parameter index="0" mappedName="doublesList" componentType="java.lang.Double"/>

Here's the generated WSDL:
<?xml version="1.0" encoding="UTF-8"?><wsdl:definitions xmlns:soap=""
xmlns:tns="" xmlns:wsdl="" xmlns:xsd=""
name="Foo" targetNamespace="">
<xsd:schema xmlns:tns="" attributeFormDefault="qualified" elementFormDefault="qualified"
    <xsd:complexType name="Double">
            <xsd:element minOccurs="0" name="infinite" type="xsd:boolean"/>
            <xsd:element minOccurs="0" name="naN" type="xsd:boolean"/>
    <xsd:complexType name="ArrayOfDouble">
            <xsd:element maxOccurs="unbounded" minOccurs="0" name="Double" nillable="true"
<xsd:schema xmlns:ns0="" attributeFormDefault="unqualified" elementFormDefault="qualified"
    <xsd:import namespace=""/>
    <xsd:element name="bar">
                <xsd:element name="doublesList" type="ns0:ArrayOfDouble"/>
    <xsd:element name="barResponse">
                <xsd:element name="return" type="xsd:int"/>
  <wsdl:message name="barResponse">
    <wsdl:part element="tns:barResponse" name="parameters"/>
  <wsdl:message name="bar">
    <wsdl:part element="tns:bar" name="parameters"/>
  <wsdl:portType name="FooPortType">
    <wsdl:operation name="bar">
      <wsdl:input message="tns:bar" name="bar"/>
      <wsdl:output message="tns:barResponse" name="barResponse"/>
  <wsdl:binding name="FooSoapBinding" type="tns:FooPortType">
    <soap:binding style="document" transport=""/>
    <wsdl:operation name="bar">
      <soap:operation soapAction="" style="document"/>
      <wsdl:input name="bar">
        <soap:body use="literal"/>
      <wsdl:output name="barResponse">
        <soap:body use="literal"/>
  <wsdl:service name="Foo">
    <wsdl:port binding="tns:FooSoapBinding" name="FooPort">
      <soap:address location="http://localhost:8080/soap/Foo"/>

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

View raw message