Hi,

 

From the Axis user’s guide, it says for each entry in the type section, a java class will be generated by WSDL2Java.

 

I have a wsdl file which defines 5 XMl data types in schema part. Eclipse can generate 5 java classes (ContentType, ListRequestType, ReturnedResultCount, SearchString and SummaryRequestType) based on the schema. This makes sense.

 

If I use WSDL2Java to generate client side, I can only get 3 java classes (ContentType, ListRequestType and SummaryRequestType).

 

Could someone tell me why? Do I need to give some options to generate the other twos? The WSDL file is as following.

 

Thanks a lot.  

Helen

 

 

<?xml version="1.0" encoding="UTF-8"?>

<xsd:schema

    targetNamespace="http://www.company.com/RID.xsd1"

    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"

    xmlns:xsd="http://www.w3.org/2001/XMLSchema"

    xmlns:xsd1="http://www.company.com/RID.xsd1">

    <xsd:simpleType name="summaryRequestType">

        <xsd:restriction base="xsd:string">

            <xsd:enumeration value="SUMMARY-RADIOLOGY"/>

            <xsd:enumeration value="SUMMARY-CARDIOLOGY"/>

            <xsd:enumeration value="SUMMARY"/>

            <xsd:enumeration value="SUMMARY-LABORATORY"/>

        </xsd:restriction>

    </xsd:simpleType>

    <xsd:simpleType name="listRequestType">

        <xsd:restriction base="xsd:string">

            <xsd:enumeration value="LIST-ALLERGIES"/>

            <xsd:enumeration value="LIST-MEDS"/>

        </xsd:restriction>

    </xsd:simpleType>

    <!-- Please list all content types available, and remove those not available. -->

    <xsd:simpleType name="contentType">

        <xsd:restriction base="xsd:string">

            <xsd:enumeration value="text/html"/>

        </xsd:restriction>

    </xsd:simpleType>

    <!-- Indicates that this item is a returned rows restriction -->

    <xsd:simpleType name="ReturnedResultCount">

        <xsd:restriction base="xsd:positiveInteger">     </xsd:restriction>

    </xsd:simpleType>

    <!-- Please use the string "Search" as a prefix for all search criteria, and list below -->

    <!-- Indicates that this item is a search string -->

    <xsd:simpleType name="SearchString">

        <xsd:restriction base="xsd:string">     </xsd:restriction>

    </xsd:simpleType>

</xsd:schema>

Reply via email to