Reto,
It's a namespace qualification problem. (I used OmniOpera to find the
problem.)
You must provide namespace qualifiers for the elements referenced in the in
and out type definitions:
<xsd:complexType name="in">
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" ref="tns:BANKCOUNTRY"/>
<xsd:element maxOccurs="1" minOccurs="1" ref="tns:BANKKEY"/>
<xsd:any maxOccurs="unbounded" minOccurs="0" processContents="lax"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="out">
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" ref="tns:BANK_ADDRESS"/>
<xsd:element maxOccurs="1" minOccurs="1" ref="tns:BANK_DETAIL"/>
<xsd:element maxOccurs="1" minOccurs="1" ref="tns:RETURN"/>
<xsd:any maxOccurs="unbounded" minOccurs="0" processContents="lax"/>
</xsd:sequence>
</xsd:complexType>
Anne
----- Original Message -----
From: "Reto Badertscher" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 30, 2003 1:58 PM
Subject: Re: WSDL2Java
> Anne,
>
> this file is closely as possible to SAP generated ones.
> - WSDLEditor from Cape Cleare reports 'Error: WSDL Text is invalid' with
no
> further indication where at was is wrong
> - when running WSDL2Java i receive the error:
> "java.io.IOException: Element RETURN is referenced but not defined.
...."
>
> Studying currently a book about XML Schema - and for me it looks like the
> RETURN element is defined.
>
> Are there other tools helping validation of WSDL files?
> Can you please tell me what is wrong with this file?
>
> Thanks for any help in advance
>
> Reto
>
> WSDL file:
> --------------------------------------------------------------------------
------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions name="test" targetNamespace="http://193.5.125.246"
> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:tns="http://193.5.125.246"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
> <wsdl:types>
> <xsd:schema targetNamespace="http://193.5.125.246"
> xmlns:tns="http://193.5.125.246"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <xsd:element name="BANKCOUNTRY" type="xsd:string"/>
> <xsd:element name="BANKKEY" type="xsd:string"/>
> <xsd:element name="RETURN">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element maxOccurs="1" minOccurs="1"
name="TYPE"
> type="xsd:string"/>
> <xsd:element maxOccurs="1" minOccurs="1" name="ID"
> type="xsd:string"/>
> <xsd:element maxOccurs="1" minOccurs="1"
name="NUMBER"
> type="xsd:string"/>
> <xsd:element maxOccurs="1" minOccurs="1"
> name="MESSAGE" type="xsd:string"/>
> <xsd:element maxOccurs="1" minOccurs="1"
name="LOG_NO"
> type="xsd:string"/>
> <xsd:element maxOccurs="1" minOccurs="1"
> name="LOG_MSG_NO" type="xsd:string"/>
> <xsd:element maxOccurs="1" minOccurs="1"
> name="MESSAGE_V1" type="xsd:string"/>
> <xsd:element maxOccurs="1" minOccurs="1"
> name="MESSAGE_V2" type="xsd:string"/>
> <xsd:element maxOccurs="1" minOccurs="1"
> name="MESSAGE_V3" type="xsd:string"/>
> <xsd:element maxOccurs="1" minOccurs="1"
> name="MESSAGE_V4" type="xsd:string"/>
> <xsd:element maxOccurs="1" minOccurs="1"
> name="PARAMETER" type="xsd:string"/>
> <xsd:element maxOccurs="1" minOccurs="1"
name="ROW"
> type="xsd:string"/>
> <xsd:element maxOccurs="1" minOccurs="1"
name="FIELD"
> type="xsd:string"/>
> <xsd:element maxOccurs="1" minOccurs="1"
name="SYSTEM"
> type="xsd:string"/>
> <xsd:any maxOccurs="unbounded" minOccurs="0"
> processContents="lax"/>
> </xsd:sequence>
> <xsd:anyAttribute processContents="lax"/>
> </xsd:complexType>
> </xsd:element>
> <xsd:complexType name="in">
> <xsd:sequence>
> <xsd:element maxOccurs="1" minOccurs="1"
> ref="BANKCOUNTRY"/>
> <xsd:element maxOccurs="1" minOccurs="1"
ref="BANKKEY"/>
> <xsd:any maxOccurs="unbounded" minOccurs="0"
> processContents="lax"/>
> </xsd:sequence>
> </xsd:complexType>
> <xsd:complexType name="out">
> <xsd:sequence>
> <xsd:element maxOccurs="1" minOccurs="1"
> ref="BANK_ADDRESS"/>
> <xsd:element maxOccurs="1" minOccurs="1"
> ref="BANK_DETAIL"/>
> <xsd:element maxOccurs="1" minOccurs="1"
ref="RETURN"/>
> <xsd:any maxOccurs="unbounded" minOccurs="0"
> processContents="lax"/>
> </xsd:sequence>
> </xsd:complexType>
> <xsd:element name="BANK_ADDRESS">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element maxOccurs="1" minOccurs="1"
> name="BANK_NAME" type="xsd:string"/>
> <xsd:element maxOccurs="1" minOccurs="1"
name="REGION"
> type="xsd:string"/>
> <xsd:element maxOccurs="1" minOccurs="1"
name="STREET"
> type="xsd:string"/>
> <xsd:element maxOccurs="1" minOccurs="1"
name="CITY"
> type="xsd:string"/>
> <xsd:element maxOccurs="1" minOccurs="1"
> name="SWIFT_CODE" type="xsd:string"/>
> <xsd:element maxOccurs="1" minOccurs="1"
> name="BANK_GROUP" type="xsd:string"/>
> <xsd:element maxOccurs="1" minOccurs="1"
> name="POBK_CURAC" type="xsd:string"/>
> <xsd:element maxOccurs="1" minOccurs="1"
> name="BANK_NO" type="xsd:string"/>
> <xsd:element maxOccurs="1" minOccurs="1"
> name="POST_BANK" type="xsd:string"/>
> <xsd:element maxOccurs="1" minOccurs="1"
> name="BANK_BRANCH" type="xsd:string"/>
> <xsd:element maxOccurs="1" minOccurs="1"
> name="ADDR_NO" type="xsd:string"/>
> <xsd:any maxOccurs="unbounded" minOccurs="0"
> processContents="lax"/>
> </xsd:sequence>
> <xsd:anyAttribute processContents="lax"/>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="BANK_DETAIL">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element maxOccurs="1" minOccurs="1"
> name="CREAT_DATE" type="xsd:string"/>
> <xsd:element maxOccurs="1" minOccurs="1"
> name="CREATOR" type="xsd:string"/>
> <xsd:element maxOccurs="1" minOccurs="1"
name="METHOD"
> type="xsd:string"/>
> <xsd:element maxOccurs="1" minOccurs="1"
> name="FORMATTING" type="xsd:string"/>
> <xsd:element maxOccurs="1" minOccurs="1"
> name="BANK_DELETE" type="xsd:string"/>
> <xsd:any maxOccurs="unbounded" minOccurs="0"
> processContents="lax"/>
> </xsd:sequence>
> <xsd:anyAttribute processContents="lax"/>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
> </wsdl:types>
> <wsdl:message name="bank_get_detailInput">
> <wsdl:part name="composite" type="tns:in"/>
> </wsdl:message>
> <wsdl:message name="bank_get_detailOutput">
> <wsdl:part name="composite" type="tns:out"/>
> </wsdl:message>
> <wsdl:portType name="testPortType">
> <wsdl:operation name="bank_get_detail">
> <wsdl:input message="tns:bank_get_detailInput"
> name="bank_get_detailInput"/>
> <wsdl:output message="tns:bank_get_detailOutput"
> name="bank_get_detailOutput"/>
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="testBinding" type="tns:testPortType">
> <soap:binding style="rpc"
> transport="http://schemas.xmlsoap.org/soap/http"/>
> <wsdl:operation name="bank_get_detail">
> <wsdl:input>
> <soap:body
>
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="test"
> use="encoded"/>
> </wsdl:input>
> <wsdl:output>
> <soap:body
>
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="test"
> use="encoded"/>
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="testService">
> <wsdl:port binding="tns:testBinding" name="testPort0">
> <soap:address location="http://193.5.125.246:5555/soap/rpc"/>
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
> ------------------------------------------------------------
>