I am trying to write a carbon component by referring link
<http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/>


I can generate the correct WSDL file for a simple service
But when the service class is kind of complex, I get the following issue,
when trying to test the wsdl using SOAP UI

*Source:* https://10.100.4.135:9443/services/DashboardAdminService?wsdl
*Error:* type 'Enum@http://www.w3.org/2001/XMLSchema' not found.

I googled the issue and found this on stackoverflow
<http://stackoverflow.com/questions/6017441/generate-wsdl-file-and-webservice-client-based-on-wsdl-file-in-maven>

But I am unable to solve the issue
What can I do to solve this?

Note- I think the problem is when trying to convert complex objects(objects
inside objects) into xml
I have attached below the WSDL file here, in it, the "widgets" element is a
complex object in the corresponding service class

Thank You and Kind Regards
-- 
Pubudu Dodangoda
BSc Engineering(Hon's) Undergraduate
Department of Computer Science Engineering
University of Moratuwa
0716053681 / 0775192994
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:ns1="http://org.apache.axis2/xsd"; xmlns:ns="http://admin.dashboard.analytics.carbon.wso2.org"; xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"; xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; targetNamespace="http://admin.dashboard.analytics.carbon.wso2.org";>

    <wsdl:documentation>DashboardAdminService</wsdl:documentation>
    <wsdl:types>
        <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://data.admin.dashboard.analytics.carbon.wso2.org/xsd";>
            <xs:complexType name="DataView">
                <xs:sequence>
                    <xs:element maxOccurs="unbounded" minOccurs="0" name="columns" nillable="true" type="xs:string"></xs:element>
                    <xs:element minOccurs="0" name="dataSource" nillable="true" type="xs:string"></xs:element>
                    <xs:element minOccurs="0" name="filter" nillable="true" type="xs:string"></xs:element>
                    <xs:element minOccurs="0" name="name" nillable="true" type="xs:string"></xs:element>
                    <xs:element minOccurs="0" name="type" nillable="true" type="xs:string"></xs:element>
                    <xs:element minOccurs="0" name="widgets" nillable="true" type="xs:anyType"></xs:element>
                </xs:sequence>
            </xs:complexType>
        </xs:schema>
        <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://context.carbon.wso2.org/xsd";>
            <xs:complexType name="RegistryType">
                <xs:complexContent>
                    <xs:extension base="xs:Enum">
                        <xs:sequence></xs:sequence>
                    </xs:extension>
                </xs:complexContent>
            </xs:complexType>
        </xs:schema>
        <xs:schema xmlns:ax26="http://context.carbon.wso2.org/xsd"; xmlns:ax24="http://data.admin.dashboard.analytics.carbon.wso2.org/xsd"; attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://admin.dashboard.analytics.carbon.wso2.org";>
            <xs:import namespace="http://data.admin.dashboard.analytics.carbon.wso2.org/xsd";></xs:import>
            <xs:import namespace="http://context.carbon.wso2.org/xsd";></xs:import>
            <xs:element name="registryTest">
                <xs:complexType>
                    <xs:sequence></xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="getDataView">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="name" nillable="true" type="xs:string"></xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="getDataViewResponse">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="return" nillable="true" type="ax23:DataView"></xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="setDataview">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="dataview" nillable="true" type="ax23:DataView"></xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="readFromRegistry">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="url" nillable="true" type="ax25:RegistryType"></xs:element>
                        <xs:element minOccurs="0" name="targetClass" nillable="true" type="xs:string"></xs:element>
                        <xs:element minOccurs="0" name="args2" nillable="true" type="xs:anyType"></xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="readFromRegistryResponse">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="return" nillable="true" type="xs:anyType"></xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="writeToRegistry">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="registryType" nillable="true" type="xs:string"></xs:element>
                        <xs:element minOccurs="0" name="url" nillable="true" type="xs:anyType"></xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:schema>
    </wsdl:types>
    <wsdl:message name="setDataviewRequest">
        <wsdl:part name="parameters" element="ns:setDataview"></wsdl:part>
    </wsdl:message>
    <wsdl:message name="registryTestRequest">
        <wsdl:part name="parameters" element="ns:registryTest"></wsdl:part>
    </wsdl:message>
    <wsdl:message name="readFromRegistryRequest">
        <wsdl:part name="parameters" element="ns:readFromRegistry"></wsdl:part>
    </wsdl:message>
    <wsdl:message name="readFromRegistryResponse">
        <wsdl:part name="parameters" element="ns:readFromRegistryResponse"></wsdl:part>
    </wsdl:message>
    <wsdl:message name="getDataViewRequest">
        <wsdl:part name="parameters" element="ns:getDataView"></wsdl:part>
    </wsdl:message>
    <wsdl:message name="getDataViewResponse">
        <wsdl:part name="parameters" element="ns:getDataViewResponse"></wsdl:part>
    </wsdl:message>
    <wsdl:message name="writeToRegistryRequest">
        <wsdl:part name="parameters" element="ns:writeToRegistry"></wsdl:part>
    </wsdl:message>
    <wsdl:portType name="DashboardAdminServicePortType">
        <wsdl:operation name="setDataview">
            <wsdl:input message="ns:setDataviewRequest" wsaw:Action="urn:setDataview"></wsdl:input>
        </wsdl:operation>
        <wsdl:operation name="registryTest">
            <wsdl:input message="ns:registryTestRequest" wsaw:Action="urn:registryTest"></wsdl:input>
        </wsdl:operation>
        <wsdl:operation name="readFromRegistry">
            <wsdl:input message="ns:readFromRegistryRequest" wsaw:Action="urn:readFromRegistry"></wsdl:input>
            <wsdl:output message="ns:readFromRegistryResponse" wsaw:Action="urn:readFromRegistryResponse"></wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="getDataView">
            <wsdl:input message="ns:getDataViewRequest" wsaw:Action="urn:getDataView"></wsdl:input>
            <wsdl:output message="ns:getDataViewResponse" wsaw:Action="urn:getDataViewResponse"></wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="writeToRegistry">
            <wsdl:input message="ns:writeToRegistryRequest" wsaw:Action="urn:writeToRegistry"></wsdl:input>
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="DashboardAdminServiceSoap11Binding" type="ns:DashboardAdminServicePortType">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http"; style="document"></soap:binding>
        <wsdl:operation name="setDataview">
            <soap:operation soapAction="urn:setDataview" style="document"></soap:operation>
            <wsdl:input>
                <soap:body use="literal"></soap:body>
            </wsdl:input>
        </wsdl:operation>
        <wsdl:operation name="registryTest">
            <soap:operation soapAction="urn:registryTest" style="document"></soap:operation>
            <wsdl:input>
                <soap:body use="literal"></soap:body>
            </wsdl:input>
        </wsdl:operation>
        <wsdl:operation name="readFromRegistry">
            <soap:operation soapAction="urn:readFromRegistry" style="document"></soap:operation>
            <wsdl:input>
                <soap:body use="literal"></soap:body>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"></soap:body>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="getDataView">
            <soap:operation soapAction="urn:getDataView" style="document"></soap:operation>
            <wsdl:input>
                <soap:body use="literal"></soap:body>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"></soap:body>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="writeToRegistry">
            <soap:operation soapAction="urn:writeToRegistry" style="document"></soap:operation>
            <wsdl:input>
                <soap:body use="literal"></soap:body>
            </wsdl:input>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="DashboardAdminServiceSoap12Binding" type="ns:DashboardAdminServicePortType">
        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"; style="document"></soap12:binding>
        <wsdl:operation name="setDataview">
            <soap12:operation soapAction="urn:setDataview" style="document"></soap12:operation>
            <wsdl:input>
                <soap12:body use="literal"></soap12:body>
            </wsdl:input>
        </wsdl:operation>
        <wsdl:operation name="registryTest">
            <soap12:operation soapAction="urn:registryTest" style="document"></soap12:operation>
            <wsdl:input>
                <soap12:body use="literal"></soap12:body>
            </wsdl:input>
        </wsdl:operation>
        <wsdl:operation name="readFromRegistry">
            <soap12:operation soapAction="urn:readFromRegistry" style="document"></soap12:operation>
            <wsdl:input>
                <soap12:body use="literal"></soap12:body>
            </wsdl:input>
            <wsdl:output>
                <soap12:body use="literal"></soap12:body>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="getDataView">
            <soap12:operation soapAction="urn:getDataView" style="document"></soap12:operation>
            <wsdl:input>
                <soap12:body use="literal"></soap12:body>
            </wsdl:input>
            <wsdl:output>
                <soap12:body use="literal"></soap12:body>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="writeToRegistry">
            <soap12:operation soapAction="urn:writeToRegistry" style="document"></soap12:operation>
            <wsdl:input>
                <soap12:body use="literal"></soap12:body>
            </wsdl:input>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="DashboardAdminServiceHttpBinding" type="ns:DashboardAdminServicePortType">
        <http:binding verb="POST"></http:binding>
        <wsdl:operation name="setDataview">
            <http:operation location="setDataview"></http:operation>
            <wsdl:input>
                <mime:content type="text/xml" part="parameters"></mime:content>
            </wsdl:input>
        </wsdl:operation>
        <wsdl:operation name="registryTest">
            <http:operation location="registryTest"></http:operation>
            <wsdl:input>
                <mime:content type="text/xml" part="parameters"></mime:content>
            </wsdl:input>
        </wsdl:operation>
        <wsdl:operation name="readFromRegistry">
            <http:operation location="readFromRegistry"></http:operation>
            <wsdl:input>
                <mime:content type="text/xml" part="parameters"></mime:content>
            </wsdl:input>
            <wsdl:output>
                <mime:content type="text/xml" part="parameters"></mime:content>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="getDataView">
            <http:operation location="getDataView"></http:operation>
            <wsdl:input>
                <mime:content type="text/xml" part="parameters"></mime:content>
            </wsdl:input>
            <wsdl:output>
                <mime:content type="text/xml" part="parameters"></mime:content>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="writeToRegistry">
            <http:operation location="writeToRegistry"></http:operation>
            <wsdl:input>
                <mime:content type="text/xml" part="parameters"></mime:content>
            </wsdl:input>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="DashboardAdminService">
        <wsdl:port name="DashboardAdminServiceHttpsSoap11Endpoint" binding="ns:DashboardAdminServiceSoap11Binding">
            <soap:address location="https://10.100.4.135:9443/services/DashboardAdminService.DashboardAdminServiceHttpsSoap11Endpoint/";></soap:address>
        </wsdl:port>
        <wsdl:port name="DashboardAdminServiceHttpsSoap12Endpoint" binding="ns:DashboardAdminServiceSoap12Binding">
            <soap12:address location="https://10.100.4.135:9443/services/DashboardAdminService.DashboardAdminServiceHttpsSoap12Endpoint/";></soap12:address>
        </wsdl:port>
        <wsdl:port name="DashboardAdminServiceHttpsEndpoint" binding="ns:DashboardAdminServiceHttpBinding">
            <http:address location="https://10.100.4.135:9443/services/DashboardAdminService.DashboardAdminServiceHttpsEndpoint/";></http:address>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to