[jira] [Resolved] (CXF-7062) wsdl2java generates incorrect @XmlElement(namespace=“…”)

2017-03-22 Thread Daniel Kulp (JIRA)

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

Daniel Kulp resolved CXF-7062.
--
Resolution: Not A Problem

> wsdl2java generates incorrect @XmlElement(namespace=“…”)
> 
>
> Key: CXF-7062
> URL: https://issues.apache.org/jira/browse/CXF-7062
> Project: CXF
>  Issue Type: Bug
>  Components: Soap Binding
>Affects Versions: 3.1.7
> Environment: MacOSX 10.11, Java v1.8
>Reporter: Randy Leonard
>Assignee: Daniel Kulp
>Priority: Blocker
> Fix For: Invalid
>
>
> I am using Apache CXF 3.1.7, and the wsdl2java command is generating code 
> with missing/incorrect namespace attributes on the @XMLEment annotation.
> Note I generally use four distinct namespaces within each WSDL document, 
> which are as follows:
>   • Shared data types across many WSDL documents 
> (http://v1_0_0.datatypes.provider.soap.foundation.rps.com)
>   • Domain-specific data types 
> (http://v1_0_0.datatypes.provider.soap.common.masterdata.rps.com)
>   • Parameter types 
> (http://v1_0_0.parameters.provider.soap.common.masterdata.rps.com)
>   • Service types (http://v1_0_0.provider.soap.common.masterdata.rps.com)
> This gives a nice separation of data types, and has worked quite well for me 
> with Axis2. I am having issues, however, when applying this approach to CXF. 
> Below is an example WSDL document with the namespaces defined above:
> ———
> 
>  targetNamespace="http://v1_0_0.provider.soap.common.masterdata.rps.com;
> xmlns:foundationTypes="http://v1_0_0.datatypes.provider.soap.foundation.rps.com;
>   
> xmlns:masterdataCommonTypes="http://v1_0_0.datatypes.provider.soap.common.masterdata.rps.com;
> xmlns:parameter="http://v1_0_0.parameters.provider.soap.common.masterdata.rps.com;
>  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/;
>   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/; 
> xmlns:tns="http://v1_0_0.provider.soap.common.masterdata.rps.com;
> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/; 
> xmlns:xs="http://www.w3.org/2001/XMLSchema;
>   xmlns:wsoap12="http://schemas.xmlsoap.org/wsdl/soap12/; 
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/;
> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
>   xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/;>
>   
>elementFormDefault="qualified" 
> targetNamespace="http://v1_0_0.parameters.provider.soap.common.masterdata.rps.com;
> >
>namespace="http://v1_0_0.datatypes.provider.soap.foundation.rps.com; 
> schemaLocation="schemas/FoundationTypes.xsd" />
>namespace="http://v1_0_0.datatypes.provider.soap.common.masterdata.rps.com; 
> schemaLocation="schemas/MasterDataCommonTypes.xsd" />
>   
>   
>   
>   
>   
>name="paymentSchemeId" type="xs:string" minOccurs="0" />
>type="xs:string" minOccurs="0" />
>   
>   
>   
>   
>   
>   
>   
>   
>type="foundationTypes:Status" />
>type="masterdataCommonTypes:ConsumerChannel" minOccurs="0"
> maxOccurs="unbounded" />
>   
>   
>   
>   
>   
>   
>   
>   
>name="paymentSchemeId" type="xs:string" minOccurs="0" />
>type="xs:string" minOccurs="0" />
>   
>   
>   
>   
>   
>   
>   
>   
>type="foundationTypes:Status" />
>   
>   
>   
>   
>   
>   
>name="request" />
>   
>   
>name="response" />
>   
>   
>name="request" />
>   
>   
>name="response" />
>   
>   

[jira] [Resolved] (CXF-7062) wsdl2java generates incorrect @XmlElement(namespace=“…”)

2016-09-22 Thread Daniel Kulp (JIRA)

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

Daniel Kulp resolved CXF-7062.
--
   Resolution: Not A Problem
 Assignee: Daniel Kulp
Fix Version/s: Invalid


The "status" elements are within the  element the has a 
targetNamespace of 
http://v1_0_0.parameters.provider.soap.common.masterdata.rps.com

and elementFormDefault="qualified" .  Thus, they SHOULD have that namespace on 
the XmlElement as per spec.  This is working correctly.   The "type" parameter 
on the element (and it's namespace) has NO bearing on the namespace of the 
element itself.

> wsdl2java generates incorrect @XmlElement(namespace=“…”)
> 
>
> Key: CXF-7062
> URL: https://issues.apache.org/jira/browse/CXF-7062
> Project: CXF
>  Issue Type: Bug
>  Components: Soap Binding
>Affects Versions: 3.1.7
> Environment: MacOSX 10.11, Java v1.8
>Reporter: Randy Leonard
>Assignee: Daniel Kulp
>Priority: Blocker
> Fix For: Invalid
>
>
> I am using Apache CXF 3.1.7, and the wsdl2java command is generating code 
> with missing/incorrect namespace attributes on the @XMLEment annotation.
> Note I generally use four distinct namespaces within each WSDL document, 
> which are as follows:
>   • Shared data types across many WSDL documents 
> (http://v1_0_0.datatypes.provider.soap.foundation.rps.com)
>   • Domain-specific data types 
> (http://v1_0_0.datatypes.provider.soap.common.masterdata.rps.com)
>   • Parameter types 
> (http://v1_0_0.parameters.provider.soap.common.masterdata.rps.com)
>   • Service types (http://v1_0_0.provider.soap.common.masterdata.rps.com)
> This gives a nice separation of data types, and has worked quite well for me 
> with Axis2. I am having issues, however, when applying this approach to CXF. 
> Below is an example WSDL document with the namespaces defined above:
> ———
> 
>  targetNamespace="http://v1_0_0.provider.soap.common.masterdata.rps.com;
> xmlns:foundationTypes="http://v1_0_0.datatypes.provider.soap.foundation.rps.com;
>   
> xmlns:masterdataCommonTypes="http://v1_0_0.datatypes.provider.soap.common.masterdata.rps.com;
> xmlns:parameter="http://v1_0_0.parameters.provider.soap.common.masterdata.rps.com;
>  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/;
>   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/; 
> xmlns:tns="http://v1_0_0.provider.soap.common.masterdata.rps.com;
> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/; 
> xmlns:xs="http://www.w3.org/2001/XMLSchema;
>   xmlns:wsoap12="http://schemas.xmlsoap.org/wsdl/soap12/; 
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/;
> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
>   xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/;>
>   
>elementFormDefault="qualified" 
> targetNamespace="http://v1_0_0.parameters.provider.soap.common.masterdata.rps.com;
> >
>namespace="http://v1_0_0.datatypes.provider.soap.foundation.rps.com; 
> schemaLocation="schemas/FoundationTypes.xsd" />
>namespace="http://v1_0_0.datatypes.provider.soap.common.masterdata.rps.com; 
> schemaLocation="schemas/MasterDataCommonTypes.xsd" />
>   
>   
>   
>   
>   
>name="paymentSchemeId" type="xs:string" minOccurs="0" />
>type="xs:string" minOccurs="0" />
>   
>   
>   
>   
>   
>   
>   
>   
>type="foundationTypes:Status" />
>type="masterdataCommonTypes:ConsumerChannel" minOccurs="0"
> maxOccurs="unbounded" />
>   
>   
>   
>   
>   
>   
>   
>   
>name="paymentSchemeId" type="xs:string" minOccurs="0" />
>type="xs:string" minOccurs="0" />
>   
>   
>   
>   
>   
>   
>   
>