You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Glen Mazza (JIRA)" <ji...@apache.org> on 2008/04/22 17:41:23 UTC
[jira] Created: (CXF-1540) Maven cxf-codegen-plugin (probably
wsdl2java) not creating correct default package names
Maven cxf-codegen-plugin (probably wsdl2java) not creating correct default package names
----------------------------------------------------------------------------------------
Key: CXF-1540
URL: https://issues.apache.org/jira/browse/CXF-1540
Project: CXF
Issue Type: Bug
Affects Versions: 2.0.5
Reporter: Glen Mazza
Priority: Minor
For the below WSDL, the default package name is stripping off a zero in the package name.
It is giving a package name of:
package org.example.doubleit._1_0_0;
but it should be:
package org.example.doubleit._1_0_0_0;
Note if I change the namespace to end in characters it comes out correctly:
http://www.example.org/DoubleIt/1.0.0.0/abc
Correctly turns out to:
package org.example.doubleit._1_0_0_0.abc;
Using the Maven plugin given in: http://issues.apache.org/jira/browse/CXF-1539
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="DoubleIt"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.example.org/DoubleIt/1.0.0.0"
targetNamespace="http://www.example.org/DoubleIt/1.0.0.0">
<wsdl:types>
<xsd:schema targetNamespace="http://www.example.org/DoubleIt/1.0.0.0">
<xsd:element name="DoubleIt">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="numberToDouble" type="xsd:integer"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="DoubleItResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="doubledNumber" type="xsd:integer" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="DoubleItRequest">
<wsdl:part element="tns:DoubleIt" name="parameters" />
</wsdl:message>
<wsdl:message name="DoubleItResponse">
<wsdl:part element="tns:DoubleItResponse" name="parameters" />
</wsdl:message>
<wsdl:portType name="DoubleItPortType">
<wsdl:operation name="DoubleIt">
<wsdl:input message="tns:DoubleItRequest" />
<wsdl:output message="tns:DoubleItResponse" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="DoubleItBinding" type="tns:DoubleItPortType">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="DoubleIt">
<soap:operation soapAction=""/>
<wsdl:input><soap:body use="literal"/></wsdl:input>
<wsdl:output><soap:body use="literal"/></wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="DoubleItService">
<wsdl:port name="DoubleItPort" binding="tns:DoubleItBinding">
<soap:address
location="http://localhost:8080/doubleit/services/doubleit"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.