You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Dennis Kieselhorst (JIRA)" <ji...@apache.org> on 2017/06/22 08:16:00 UTC
[jira] [Resolved] (CXF-7423) Wrong @XmlElement namspace generated
from wsdl
[ https://issues.apache.org/jira/browse/CXF-7423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Kieselhorst resolved CXF-7423.
-------------------------------------
Resolution: Invalid
Fix Version/s: Invalid
You are right the generation is done by jaxb.
> Wrong @XmlElement namspace generated from wsdl
> ----------------------------------------------
>
> Key: CXF-7423
> URL: https://issues.apache.org/jira/browse/CXF-7423
> Project: CXF
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.7.13
> Environment: cxf-codegen-plugin version 2.7.13
> Reporter: Norbert Kiss
> Assignee: Dennis Kieselhorst
> Fix For: Invalid
>
> Attachments: ActivationServicePortType.wsdl
>
>
> Wrong namespace generated from the attached wsdl. The problem is in the generated GetT4DataResponseContent.java file.
> @XmlAccessorType(XmlAccessType.FIELD)
> @XmlType(name = "", propOrder = {
> "name"
> })
> @Generated(value = "com.sun.tools.xjc.Driver", date = "2017-06-21T04:57:52+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
> public static class Nameofuser {
> @XmlElement(name = "Name", {color:#f6c342}namespace = "http://eeszt.gov.hu/ns/iam/ws/IAMService/ActivationMessages/v1"{color}, required = true)
> @Generated(value = "com.sun.tools.xjc.Driver", date = "2017-06-21T04:57:52+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
> protected Name name;
> The Name field XmlElement annotation has wrong namespace.
> XSD from the wsdl
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://eeszt.gov.hu/ns/iam/ws/IAMService/ActivationMessages/v1" xmlns:ns2="http://eeszt.gov.hu/ns/iam/cdm/name/v1" xmlns:ns1="http://eeszt.gov.hu/ns/common/ws/messageTypes/v1" targetNamespace="http://eeszt.gov.hu/ns/iam/ws/IAMService/ActivationMessages/v1" version="1.0">
> ..........
> <xs:complexType name="GetT4DataResponseContent">
> <xs:sequence>
> <xs:element minOccurs="0" name="birthDate" type="xs:date"></xs:element>
> <xs:element name="birthName">
> <xs:complexType>
> <xs:sequence>
> <xs:element form="qualified" minOccurs="0" name="Name" type="ns2:Name"></xs:element>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element minOccurs="0" name="birthPlace" type="xs:string"></xs:element>
> <xs:element name="motherName">
> <xs:complexType>
> <xs:sequence>
> <xs:element form="qualified" minOccurs="0" name="Name" type="ns2:Name"></xs:element>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="nameofuser">
> <xs:complexType>
> <xs:sequence>
> <xs:element form="qualified" name="Name" type="ns2:Name"></xs:element>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element minOccurs="0" name="RID" type="xs:string"></xs:element>
> </xs:sequence>
> </xs:complexType>
> .......
> Maybe it is a JAXB bug. Thanks for the help.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)