<xs:element name="checkAccountResponse">

                <xs:complexType>

                    <xs:sequence>
                        <xs:element maxOccurs="unbounded" minOccurs="0"
nillable="true"
                                    type="ns0:BankResult"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>

there is no name for inner element. change it like this

<xs:element name="param1" maxOccurs="unbounded" minOccurs="0"
nillable="true"
                                    type="ns0:BankResult"/>

thanks,
Amila.



On Thu, May 8, 2008 at 4:30 PM, <[EMAIL PROTECTED]> wrote:

> Hi Keith,
>
> here is the wsdl created by axis:
>
>  <?xml version="1.0" encoding="UTF-8" ?>
> - <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
> xmlns:ns4="http://bank.ws.uniserv";
> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
> xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
> xmlns:ns0="http://bank.ws.uniserv/xsd"; xmlns:ns1="http://ws.uniserv/xsd";
> xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl";
> xmlns:ns3="http://io.java/xsd"; xmlns:ns2="http://rmi.java/xsd";
> xmlns:xs="http://www.w3.org/2001/XMLSchema";
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
> targetNamespace="http://bank.ws.uniserv";>
>  <wsdl:documentation>BankValidator</wsdl:documentation>
> - <wsdl:types>
> - <xs:schema xmlns:ax24="http://bank.ws.uniserv/xsd";
> attributeFormDefault="qualified" elementFormDefault="qualified"
> targetNamespace="http://bank.ws.uniserv/xsd";>
> - <xs:complexType name="Parameter">
> - <xs:sequence>
>  <xs:element minOccurs="0" name="parIbanCase" nillable="true"
> type="xs:string" />
>  <xs:element minOccurs="0" name="parIbanFormat" nillable="true"
> type="xs:string" />
>  <xs:element minOccurs="0" name="parListMax" nillable="true"
> type="xs:string" />
>  <xs:element minOccurs="0" name="parMinMval" nillable="true"
> type="xs:string" />
>  <xs:element minOccurs="0" name="parReduce" nillable="true"
> type="xs:string" />
>  <xs:element minOccurs="0" name="parTimeOut" nillable="true"
> type="xs:string" />
>  </xs:sequence>
>  </xs:complexType>
> - <xs:complexType name="Bank">
> - <xs:sequence>
>  <xs:element minOccurs="0" name="account" nillable="true"
> type="xs:string" />
>  <xs:element minOccurs="0" name="bankCodeNumber" nillable="true"
> type="xs:string" />
>  <xs:element minOccurs="0" name="bankName" nillable="true"
> type="xs:string" />
>  <xs:element minOccurs="0" name="city" nillable="true" type="xs:string"
> />
>  <xs:element minOccurs="0" name="country" nillable="true"
> type="xs:string" />
>  <xs:element minOccurs="0" name="zip" nillable="true" type="xs:string"
> />
>  </xs:sequence>
>  </xs:complexType>
> - <xs:complexType name="BankResult">
> - <xs:sequence>
>  <xs:element minOccurs="0" name="bankCodeNumber" nillable="true"
> type="xs:string" />
>  <xs:element minOccurs="0" name="bankIdCode" nillable="true"
> type="xs:string" />
>  <xs:element minOccurs="0" name="bankName" nillable="true"
> type="xs:string" />
>  <xs:element minOccurs="0" name="bankNetwork" nillable="true"
> type="xs:string" />
>  <xs:element minOccurs="0" name="cdMethod" nillable="true"
> type="xs:string" />
>  <xs:element minOccurs="0" name="city" nillable="true" type="xs:string"
> />
>  <xs:element minOccurs="0" name="clearingArea" nillable="true"
> type="xs:string" />
>  <xs:element minOccurs="0" name="country" nillable="true"
> type="xs:string" />
>  <xs:element minOccurs="0" name="errorMsg" nillable="true"
> type="xs:string" />
>  <xs:element minOccurs="0" name="iban" nillable="true" type="xs:string"
> />
>  <xs:element minOccurs="0" name="mvals" nillable="true"
> type="xs:string" />
>  <xs:element minOccurs="0" name="officeType" nillable="true"
> type="xs:string" />
>  <xs:element minOccurs="0" name="quality" nillable="true"
> type="xs:string" />
>  <xs:element minOccurs="0" name="resultAccount" type="xs:int" />
>  <xs:element minOccurs="0" name="resultClass" type="xs:int" />
>  <xs:element minOccurs="0" name="zip" nillable="true" type="xs:string"
> />
>  </xs:sequence>
>  </xs:complexType>
>  </xs:schema>
> - <xs:schema xmlns:ax23="http://ws.uniserv/xsd";
> attributeFormDefault="qualified" elementFormDefault="qualified"
> targetNamespace="http://ws.uniserv/xsd";>
> - <xs:complexType name="Authentication">
> - <xs:sequence>
>  <xs:element minOccurs="0" name="password" nillable="true"
> type="xs:string" />
>  <xs:element minOccurs="0" name="registrationNumber" nillable="true"
> type="xs:string" />
>  </xs:sequence>
>  </xs:complexType>
>  </xs:schema>
> - <xs:schema xmlns:ax21="http://rmi.java/xsd";
> attributeFormDefault="qualified" elementFormDefault="qualified"
> targetNamespace="http://rmi.java/xsd";>
> - <xs:complexType name="RemoteException">
> - <xs:complexContent>
> - <xs:extension base="ns3:IOException">
> - <xs:sequence>
>  <xs:element minOccurs="0" name="cause" nillable="true"
> type="xs:anyType" />
>  <xs:element minOccurs="0" name="message" nillable="true"
> type="xs:string" />
>  <xs:element minOccurs="0" name="detail" nillable="true"
> type="xs:anyType" />
>  </xs:sequence>
>  </xs:extension>
>  </xs:complexContent>
>  </xs:complexType>
>  </xs:schema>
> - <xs:schema xmlns:ax22="http://io.java/xsd";
> attributeFormDefault="qualified" elementFormDefault="qualified"
> targetNamespace="http://io.java/xsd";>
> - <xs:complexType name="IOException">
> - <xs:complexContent>
> - <xs:extension base="ns4:Exception">
>  <xs:sequence />
>  </xs:extension>
>  </xs:complexContent>
>  </xs:complexType>
>  </xs:schema>
> - <xs:schema xmlns:ns="http://bank.ws.uniserv";
> attributeFormDefault="qualified" elementFormDefault="qualified"
> targetNamespace="http://bank.ws.uniserv";>
> - <xs:complexType name="Exception">
> - <xs:sequence>
>  <xs:element minOccurs="0" name="Exception" nillable="true"
> type="xs:anyType" />
>  </xs:sequence>
>  </xs:complexType>
> - <xs:element name="RemoteException">
> - <xs:complexType>
> - <xs:sequence>
>  <xs:element minOccurs="0" name="RemoteException" nillable="true"
> type="ns2:RemoteException" />
>  </xs:sequence>
>  </xs:complexType>
>  </xs:element>
> - <xs:element name="checkAccount">
> - <xs:complexType>
> - <xs:sequence>
>  <xs:element minOccurs="0" name="param0" nillable="true"
> type="ns1:Authentication" />
>  <xs:element minOccurs="0" name="param1" nillable="true"
> type="ns0:Parameter" />
>  <xs:element minOccurs="0" name="param2" nillable="true"
> type="ns0:Bank" />
>  </xs:sequence>
>  </xs:complexType>
>  </xs:element>
> - <xs:element name="checkAccountResponse">
> - <xs:complexType>
> - <xs:sequence>
>  <xs:element maxOccurs="unbounded" minOccurs="0" nillable="true"
> type="ns0:BankResult" />
>  </xs:sequence>
>  </xs:complexType>
>  </xs:element>
>  </xs:schema>
>  </wsdl:types>
> - <wsdl:message name="checkAccountRequest">
>  <wsdl:part name="parameters" element="ns4:checkAccount" />
>  </wsdl:message>
> - <wsdl:message name="checkAccountResponse">
>  <wsdl:part name="parameters" element="ns4:checkAccountResponse" />
>  </wsdl:message>
> - <wsdl:message name="RemoteException">
>  <wsdl:part name="parameters" element="ns4:RemoteException" />
>  </wsdl:message>
> - <wsdl:portType name="BankValidatorPortType">
> - <wsdl:operation name="checkAccount">
>  <wsdl:input message="ns4:checkAccountRequest"
> wsaw:Action="urn:checkAccount" />
>  <wsdl:output message="ns4:checkAccountResponse"
> wsaw:Action="urn:checkAccountResponse" />
>  <wsdl:fault message="ns4:RemoteException" name="RemoteException"
> wsaw:Action="urn:checkAccountRemoteException" />
>  </wsdl:operation>
>  </wsdl:portType>
> - <wsdl:binding name="BankValidatorSOAP11Binding"
> type="ns4:BankValidatorPortType">
>  <soap:binding transport="http://schemas.xmlsoap.org/soap/http";
> style="document" />
> - <wsdl:operation name="checkAccount">
>  <soap:operation soapAction="urn:checkAccount" style="document" />
> - <wsdl:input>
>  <soap:body use="literal" />
>  </wsdl:input>
> - <wsdl:output>
>  <soap:body use="literal" />
>  </wsdl:output>
> - <wsdl:fault name="RemoteException">
>  <soap:fault use="literal" name="RemoteException" />
>  </wsdl:fault>
>  </wsdl:operation>
>  </wsdl:binding>
> - <wsdl:binding name="BankValidatorSOAP12Binding"
> type="ns4:BankValidatorPortType">
>  <soap12:binding transport="http://schemas.xmlsoap.org/soap/http";
> style="document" />
> - <wsdl:operation name="checkAccount">
>  <soap12:operation soapAction="urn:checkAccount" style="document" />
> - <wsdl:input>
>  <soap12:body use="literal" />
>  </wsdl:input>
> - <wsdl:output>
>  <soap12:body use="literal" />
>  </wsdl:output>
> - <wsdl:fault name="RemoteException">
>  <soap12:fault use="literal" name="RemoteException" />
>  </wsdl:fault>
>  </wsdl:operation>
>  </wsdl:binding>
> - <wsdl:binding name="BankValidatorHttpBinding"
> type="ns4:BankValidatorPortType">
>  <http:binding verb="POST" />
> - <wsdl:operation name="checkAccount">
>  <http:operation location="BankValidator/checkAccount" />
> - <wsdl:input>
>  <mime:content type="text/xml" part="checkAccount" />
>  </wsdl:input>
> - <wsdl:output>
>  <mime:content type="text/xml" part="checkAccount" />
>  </wsdl:output>
>  </wsdl:operation>
>  </wsdl:binding>
> - <wsdl:service name="BankValidator">
> - <wsdl:port name="BankValidatorSOAP11port_http"
> binding="ns4:BankValidatorSOAP11Binding">
>  <soap:address location="http://linux/axis2/services/BankValidator"; />
>  </wsdl:port>
> - <wsdl:port name="BankValidatorSOAP12port_http"
> binding="ns4:BankValidatorSOAP12Binding">
>  <soap12:address location="http://linux/axis2/services/BankValidator";
> />
>  </wsdl:port>
> - <wsdl:port name="BankValidatorHttpport"
> binding="ns4:BankValidatorHttpBinding">
>  <http:address location="http://linux/axis2/services/BankValidator"; />
>  </wsdl:port>
>  </wsdl:service>
>  </wsdl:definitions>
>
>
> Thanks,
> Fadila
>
>
> -----Original Message-----
> From: keith chapman [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 07, 2008 5:32 PM
> To: [email protected]
> Subject: Re: WSDL2Java Exception
>
> Hi Fadila,
>
> Would it be possible for you to post your WSDL and schema here please.
> That'll make it easy for us to help you out.  And which axis version is
> your server using?
>
> Thanks,
> Keith.
>
>
> On Wed, May 7, 2008 at 5:02 PM, <[EMAIL PROTECTED]> wrote:
>
>
>
>        Hi,
>
>        I'm using axis2 1.3. I've deployed a new webservice and I can
> see it in
>        the list of deployed services.
>        I would like to generate the client stub using the wsdl created
> by axis.
>
>        But whenn I call WSDL2Java the following exception is thrown:
>
>         [java] org.apache.axis2.wsdl.codegen.CodeGenerationException:
>        java.lang.RuntimeException:
> java.lang.reflect.InvocationTargetException
>            [java]     at
>
> org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180)
>            [java]     at
> org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
>        .......
>         [java] Caused by:
> org.apache.axis2.schema.SchemaCompilationException:
>        Missing name attribute! Please check your schema!
>            [java]     at
>
> org.apache.axis2.schema.SchemaCompiler.process(SchemaCompiler.java:2089)
>            [java]     at
>
> org.apache.axis2.schema.SchemaCompiler.processParticle(SchemaCompiler.ja
>        va:1788)
>            [java]     at
>
> org.apache.axis2.schema.SchemaCompiler.processComplexType(SchemaCompiler
>        .java:977)
>            [java]     at
>
> org.apache.axis2.schema.SchemaCompiler.processAnonymousComplexSchemaType
>        (SchemaCompiler.java:886)
>            [java]     at
>
> org.apache.axis2.schema.SchemaCompiler.processSchema(SchemaCompiler.java
>        :867)
>
>        I'm a bit confused because the wsdl is created by axis.
>
>        Any help is welcome!
>
>        Thanks,
>        Fadila
>
>
> ---------------------------------------------------------------------
>        To unsubscribe, e-mail: [EMAIL PROTECTED]
>        For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
>
> --
> Keith Chapman
> Senior Software Engineer
> WSO2 Inc.
> Oxygenating the Web Service Platform.
> http://wso2.org/
>
> blog: http://www.keith-chapman.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.

Reply via email to