Return-Path:
X-Original-To: apmail-axis-java-dev-archive@www.apache.org
Delivered-To: apmail-axis-java-dev-archive@www.apache.org
Received: from mail.apache.org (hermes.apache.org [140.211.11.3])
by minotaur.apache.org (Postfix) with SMTP id 39D0019711
for ;
Thu, 7 Apr 2016 08:59:26 +0000 (UTC)
Received: (qmail 89983 invoked by uid 500); 7 Apr 2016 08:59:25 -0000
Delivered-To: apmail-axis-java-dev-archive@axis.apache.org
Received: (qmail 89815 invoked by uid 500); 7 Apr 2016 08:59:25 -0000
Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm
Precedence: bulk
List-Help:
List-Unsubscribe:
List-Post:
List-Id:
Reply-To: java-dev@axis.apache.org
Delivered-To: mailing list java-dev@axis.apache.org
Received: (qmail 89806 invoked by uid 99); 7 Apr 2016 08:59:25 -0000
Received: from arcas.apache.org (HELO arcas) (140.211.11.28)
by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Apr 2016 08:59:25 +0000
Received: from arcas.apache.org (localhost [127.0.0.1])
by arcas (Postfix) with ESMTP id 736C62C1F58
for ; Thu, 7 Apr 2016 08:59:25 +0000 (UTC)
Date: Thu, 7 Apr 2016 08:59:25 +0000 (UTC)
From: =?utf-8?Q?Pascal_Kn=C3=BCppel_=28JIRA=29?=
To: java-dev@axis.apache.org
Message-ID:
In-Reply-To:
References:
Subject: [jira] [Updated] (AXIS2-5754) axis2-wsdl2code-maven-plugin creates
invalid sources
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394
[ https://issues.apache.org/jira/browse/AXIS2-5754?page=3Dcom.atlassia=
n.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pascal Kn=C3=BCppel updated AXIS2-5754:
----------------------------------
Attachment: onlineService.zip
here are the wsdl with the xsd files.=20
> axis2-wsdl2code-maven-plugin creates invalid sources
> ----------------------------------------------------
>
> Key: AXIS2-5754
> URL: https://issues.apache.org/jira/browse/AXIS2-5754
> Project: Axis2
> Issue Type: Bug
> Components: adb
> Affects Versions: 1.7.1
> Reporter: Pascal Kn=C3=BCppel
> Priority: Blocker
> Attachments: onlineService.zip
>
>
> I configured my axis2-wsdl2code-maven-plugin like so
> {code:title=3Dpom.xml|borderStyle=3Dsolid}
>
> org.apache.axis2
> axis2-wsdl2code-maven-plugin
> ${axis2-version}
>
>
> generate-sources
>
> wsdl2code
>
>
> de.fiverx.steuerberater.ws.v1
> etc/XML/WSDL/v1/SteuerberaterOnline=
.wsdl
> adb
> true
> true
> true
> true
>
> http://ws.gfi-bremen.de/SteuerberaterOnli=
ne/v1=3Dde.fiverx.steuerberater.gfi_bremen.v1,http://ws.gfi-bremen.de/onlin=
e/services/SteuerberaterOnline/v1=3Dde.fiverx.steuerberater.gfi_bremen.v1,h=
ttp://ws.gfi-bremen.de/types/v1=3Dde.fiverx.steuerberater.gfi_bremen,http:/=
/fiverx.de/spec/abrechnungsservice=3Dde.fiverx.steuerberater.spec.abrechnun=
gsservice
>
>
>
>
>
> {code}
> the result is, that the plugin is generating sources that do not compile.=
For example:
> {code:title=3D Pw_type1.java|borderStyle=3Dsolid}
> {color:red}public class Pw_type1 implements org.apache.axis2.databinding.=
ADBBean {color}{
> ...
> /**
> *
> * @param parentQName
> * @param factory
> * @return org.apache.axiom.om.OMElement
> */
> public org.apache.axiom.om.OMElement getOMElement(
> final javax.xml.namespace.QName parentQName,
> final org.apache.axiom.om.OMFactory factory)
> throws org.apache.axis2.databinding.ADBException {
> return {color:red}factory.createOMElement(new org.apache.axis2.da=
tabinding.ADBDataSource(
> this, MY_QNAME));{color}
> }
> ...
> }
> {code}
> the lines "that I unfortunately could not get red" are invalid since org.=
apache.axis2.databinding.ADBDataSource is an abstract class and the generat=
ed class *Pw_type1* does not implement the abstract methods. Also is it try=
ing to directly instantiate the abstract class.=20
> Or am I doing something really stupid here that is causing this problem?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org