Vincenzo created AXIS2C-1658:
--------------------------------
Summary: Problem generate axis2 ws client (axis2-1.6)
(http://es.ubi.it/srv/datifondi}TDatiFondiFault' must be defined with
'element=QN ame' and not 'type=QName')
Key: AXIS2C-1658
URL: https://issues.apache.org/jira/browse/AXIS2C-1658
Project: Axis2-C
Issue Type: Bug
Components: code generation
Affects Versions: 1.6.0
Environment: Windows XP
Reporter: Vincenzo
I'm try to generate an axis2 webservice client using wsdl2Java and i get the
following error:
C:\axis2-1.6\bin>%AXIS2_HOME%\bin\WSDL2Java -uri DatiFondiSOAP.wsdl -p it.object
way.owfs.external.portfolio.provider.webservices -d adb -s
Using AXIS2_HOME: C:\axis2-1.6
Using JAVA_HOME: C:\jdk1.5.0_22
Retrieving document at 'DatiFondiSOAP.wsdl'.
log4j:WARN No appenders could be found for logger (org.apache.axis2.description.
WSDL11ToAllAxisServicesBuilder).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException
: Error parsing WSDL
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:175)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: org.apache.axis2.AxisFault: Part 'DatiFondiFault' of fault message '{
http://es.ubi.it/srv/datifondi}TDatiFondiFault' must be defined with 'element=QN
ame' and not 'type=QName'
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameRefer
ence(WSDL11ToAxisServiceBuilder.java:1377)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBindi
ng(WSDL11ToAxisServiceBuilder.java:903)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpo
int(WSDL11ToAxisServiceBuilder.java:552)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpo
ints(WSDL11ToAxisServiceBuilder.java:503)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
ce(WSDL11ToAxisServiceBuilder.java:373)
at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateA
llServices(WSDL11ToAllAxisServicesBuilder.java:107)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:169)
... 2 more
Here my wsdl:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://es.ubi.it/srv/datifondi"
xmlns:intf="http://es.ubi.it/srv/datifondi"
xmlns:tns1="http://es.ubi.it/typ/cm"
xmlns:tns2="it.objectway.owfs.external.data.impl"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://es.ubi.it/srv/datifondi">
<wsdl:types>
<schema targetNamespace="http://es.ubi.it/typ/cm"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://es.ubi.it/srv/datifondi"/>
<import
namespace="it.objectway.owfs.external.data.impl"/>
<import
namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="Contesto">
<sequence>
<element name="guid" type="xsd:string"/>
<element name="token" nillable="true"
type="xsd:string"/>
<element name="abi" type="xsd:integer"/>
<element name="codRichiedente"
type="xsd:string"/>
<element name="dataEsecuzione"
type="xsd:dateTime"/>
<element name="matricola"
nillable="true" type="xsd:string"/>
<element name="employNumber"
nillable="true" type="xsd:string"/>
<element name="puntoOperativo"
nillable="true" type="xsd:integer"/>
</sequence>
</complexType>
<complexType name="ContestoSIA">
<complexContent>
<extension base="tns1:Contesto">
<sequence>
<element
name="codiceSIA" type="xsd:string"/>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="ContestoEsterno">
<complexContent>
<extension base="tns1:Contesto">
<sequence>
<element
name="codiceUtenza" type="xsd:string"/>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="BustaIN">
<sequence>
<element name="contesto"
type="tns1:Contesto"/>
</sequence>
</complexType>
<complexType name="Esito">
<sequence>
<element name="esito" nillable="true"
type="xsd:boolean"/>
<element name="codice" nillable="true"
type="xsd:string"/>
<element name="messaggio"
nillable="true" type="xsd:string"/>
<element name="avvertenza"
nillable="true" type="xsd:boolean"/>
</sequence>
</complexType>
<complexType name="BustaOUT">
<sequence>
<element name="esito"
type="tns1:Esito"/>
</sequence>
</complexType>
<complexType name="Errore">
<sequence>
<element name="id" nillable="true"
type="xsd:string"/>
<element name="tipo" nillable="true"
type="xsd:string"/>
<element name="messaggio"
nillable="true" type="xsd:string"/>
<element name="guid" nillable="true"
type="xsd:string"/>
</sequence>
</complexType>
</schema>
<schema targetNamespace="http://es.ubi.it/srv/datifondi"
xmlns="http://www.w3.org/2001/XMLSchema">
<import
namespace="it.objectway.owfs.external.data.impl"/>
<import namespace="http://es.ubi.it/typ/cm"/>
<import
namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="BINDatiFondi">
<complexContent>
<extension base="tns1:BustaIN">
<sequence>
<element
name="inputDatiFondi" type="xsd:string"/>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="BOUDatiFondi">
<complexContent>
<extension base="tns1:BustaOUT">
<sequence>
<element
name="outputDatiFondi" type="tns2:listaPosizioni"/>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="tDatiFondiFault">
<complexContent>
<extension base="tns1:Errore">
<sequence/>
</extension>
</complexContent>
</complexType>
</schema>
<schema elementFormDefault="qualified"
targetNamespace="it.objectway.owfs.external.data.impl"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://es.ubi.it/srv/datifondi"/>
<import namespace="http://es.ubi.it/typ/cm"/>
<import
namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="listaPosizioni">
<sequence>
<element maxOccurs="unbounded"
minOccurs="0" name="item" type="xsd:string"/>
</sequence>
</complexType>
</schema>
</wsdl:types>
<wsdl:message name="DatiFondiRequest">
<wsdl:part name="DatiFondiRequest" type="intf:BINDatiFondi"/>
</wsdl:message>
<wsdl:message name="DatiFondiResponse">
<wsdl:part name="DatiFondiResponse" type="intf:BOUDatiFondi"/>
</wsdl:message>
<wsdl:message name="TDatiFondiFault">
<wsdl:part name="DatiFondiFault" type="intf:tDatiFondiFault"/>
</wsdl:message>
<wsdl:portType name="DatiFondiServices">
<wsdl:operation name="DatiFondi"
parameterOrder="DatiFondiRequest">
<wsdl:input name="DatiFondiRequest"
message="impl:DatiFondiRequest"/>
<wsdl:output name="DatiFondiResponse"
message="impl:DatiFondiResponse"/>
<wsdl:fault name="TDatiFondiFault"
message="impl:TDatiFondiFault"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="DatiFondiSOAPSoapBinding"
type="intf:DatiFondiServices">
<wsdlsoap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="DatiFondi">
<wsdlsoap:operation
soapAction="http://es.ubi.it/srv/analysis/DatiFondi"/>
<wsdl:input name="DatiFondiRequest">
<wsdlsoap:body use="literal"
namespace="http://es.ubi.it/srv/analysis"/>
</wsdl:input>
<wsdl:output name="DatiFondiResponse">
<wsdlsoap:body use="literal"
namespace="http://es.ubi.it/srv/datifondi"/>
</wsdl:output>
<wsdl:fault name="TDatiFondiFault">
<wsdlsoap:fault name="TDatiFondiFault"
use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="DatiFondiServices">
<wsdl:port name="DatiFondiSOAP"
binding="intf:DatiFondiSOAPSoapBinding">
<wsdlsoap:address
location="http://192.168.132.231:9081/FFWsPcf/services/DatiFondiSOAP"/>
</wsdl:port>
</wsdl:service>
<!--WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)-->
</wsdl:definitions>
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]