wood burning stoves 2.0*
The moose likes Web Services and the fly likes Error creatin Top down web service with Eclipse Helios Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Error creatin Top down web service with Eclipse Helios" Watch "Error creatin Top down web service with Eclipse Helios" New topic
Author

Error creatin Top down web service with Eclipse Helios

D. Formenton
Ranch Hand

Joined: Mar 20, 2008
Posts: 47
Hi all,

I have a big problem to create a web service from WSDL.

The context is: Eclipse Helios, Tomcat 7.0.11, axis2 v. 1.5.1 and a WSDL that seems correct.

When I try to create the web service (File --> new --> Other --> Web Services --> Web Service)
I get the following error message:


Exception occurred during code generation for the WSDL:
org.apache.axis2.wsdl.codegen.CodeGenerationException:
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: WSDL writing failed!

Can somebody suggest the cause of error?

Than you very much!

Domenico

WSDL:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:p1="http://www.selex-comms.com/xi/cs/w2/ordiniServizioSV"
name="miLegacyArticoli"
targetNamespace="http://www.selex-comms.com/xi/cs/w2/ordiniServizioSV">
<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:p1="http://www.selex-comms.com/xi/basis"
xmlns="http://www.selex-comms.com/xi/cs/w2/ordiniServizioSV"
targetNamespace="http://www.selex-comms.com/xi/cs/w2/ordiniServizioSV">
<xsd:import namespace="http://www.selex-comms.com/xi/basis"/>
<xsd:element name="mtLegacyArticoli" type="dtLegacyArticoli"/>
<xsd:complexType name="articolo">
<xsd:sequence>
<xsd:element name="articolo" type="articolo" minOccurs="0">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
73feaab05b2911deb2b60013725b02df
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
49aa2e105b2911de82290013725b02df
</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="pn" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
49aa2e115b2911debd090013725b02df
</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="descrizione" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
49aa2e125b2911dea1f00013725b02df
</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="nuc" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
49aa2e135b2911deca3e0013725b02df
</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="revisione" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
49aa2e145b2911debec80013725b02df
</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="schemaelettrico" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
49aa2e155b2911debf970013725b02df
</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="disegnoassieme" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
49aa2e165b2911de88810013725b02df
</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="tipologia" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
49aa2e175b2911de8dcc0013725b02df
</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="simbolocircuitale" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
49aa2e185b2911debff90013725b02df
</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:complexType name="dtLegacyArticoli">
<xsd:sequence>
<xsd:element name="xiheader" type="p1:XiHeader" minOccurs="0">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
c66f5c90019711de98da0013725b02df
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="ordineServizio" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
511c84a05b2311dea3fb0013725b02df
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="listamateriali">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
17b13351e09911dda9410013725b03df
</xsd:appinfo>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="materiale" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
cccdf7405b3811dea8270013725b02df
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="revisione" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
6dafac105f2d11deba5b001c23b70f20
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="articolo" type="articolo" minOccurs="0">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
37ed5fe05b2311deb4470013725b02df
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.selex-comms.com/xi/basis"
targetNamespace="http://www.selex-comms.com/xi/basis">
<xsd:complexType name="XiHeader">
<xsd:sequence>
<xsd:element name="EMAIL_MITT" minOccurs="0">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
fccfe2f02ed011dcaaf6ec69ac134630
</xsd:appinfo>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="50"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="MANDT_MITT" minOccurs="0">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
fccfe2f12ed011dcbe75ec69ac134630
</xsd:appinfo>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="3"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="SISTEMA_MITT" minOccurs="0">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
fccfe2f22ed011dcae47ec69ac134630
</xsd:appinfo>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="32"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="UTENTE_MITT" minOccurs="0">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
fccfe2f32ed011dc928bec69ac134630
</xsd:appinfo>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="12"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="PARAM1_MITT" minOccurs="0">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
d3fa9f40307011dcaacfff3bac134515
</xsd:appinfo>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="50"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="PARAM2_MITT" minOccurs="0">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
d3fa9f41307011dcb79fff3bac134515
</xsd:appinfo>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="50"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="PARAM3_MITT" minOccurs="0">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
d3fa9f42307011dc85c0ff3bac134515
</xsd:appinfo>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="50"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
<wsdl:message name="mtLegacyArticoli">
<wsdl:part name="mtLegacyArticoli" element="p1:mtLegacyArticoli"/>
</wsdl:message>
<wsdl:portType name="miLegacyArticoli">
<wsdlperation name="miLegacyArticoli">
<wsdl:input message="p1:mtLegacyArticoli"/>
</wsdlperation>
</wsdl:portType>

<wsdl:binding name="miLegacyArticoliBinding" type="p1:miLegacyArticoli">
<soap:binding xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdlperation name="miLegacyArticoli">
<soapperation xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
soapAction="urn:miLegacyArticoli" style="document"/>
<wsdl:input>
<soap:body use="literal" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
</wsdl:input>
</wsdlperation>
</wsdl:binding>

<wsdl:service name="miLegacyArticoliService">
<wsdl:port name="miLegacyArticoliPort"
binding="p1:miLegacyArticoliBinding">
<soap:address location="http://localhost:8080/axis2/services/miLegacyArticoliService"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Harsha Gedala
Ranch Hand

Joined: Jun 04, 2008
Posts: 41

Hi Formenton,
Are you trying to generate client / trying to generate to utilize the service?

If you are trying to generate client:
Right click on WSDL -> Webservices -> Generate Client

else
Right click on WSDL -> Webservices -> Generate Java Bean Skeleton

 
 
subject: Error creatin Top down web service with Eclipse Helios
 
Similar Threads
WDSL2Java using Axis2 via Ant in Eclipse
Can't generate java classes from WSDL file
arrayType declarations
problem with WSDL2Java and nested complex types
Web Service message level Encryption Decryption through public and private key