axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhixiang He" <...@i3archive.com>
Subject RE: Help -- WSDL2Java Question
Date Thu, 13 Oct 2005 14:05:56 GMT
Hi, Gunter

 

After read all classes generated by Eclipse and WSDL2Java, I know what's going on.

As you said, WSDL2Java uses java types mapping. Eclipse does not care about whether there
is a mapping; it generates a class for each data type defined in schema, even though it's
a String.

 

I am curious about how Eclipse generates class for simple type, like String, via WSDL2Java?

 

Thank you so much,

Helen

________________________________

From: Grossberger, Guenter [mailto:Guenter.Grossberger@softwareag.com] 
Sent: Thursday, October 13, 2005 9:24 AM
To: axis-user@ws.apache.org
Subject: RE: Help -- WSDL2Java Question

 

Hi!

 

The answer is very simple (and I have to say I didn't look at the schema closely):

 

ReturnedResultCount is a positiveInteger and SearchString a String. Therefore no Java classes
are generated but the bis types are used.

Best regards,

--
DI Günter Grossberger
Consultant             Tel: +43 1 329 50 161
Software AG Österreich Fax: +43 1 329 50 171
Guglgasse 7-9          GSM: +43 676 833 29 261
1030 Wien              http://www.softwareag.com/austria <http://www.softwareag.com/austria>


 

	 

	
________________________________


	From: Zhixiang He [mailto:zhe@i3archive.com] 
	Sent: Wednesday, October 12, 2005 9:17 PM
	To: axis-user@ws.apache.org
	Subject: RE: Help -- WSDL2Java Question

	Hi, Guenter

	 

	Here is the complete WSDL.

	 

	Thank you,

	Helen

	 

	 

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

	<wsdl:definitions

	    name="RID"

	    targetNamespace="http://www.i3archive.com/RID.wsdl"

	    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"

	    xmlns:tns="http://www.i3archive.com/RID.wsdl"

	    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"

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

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

	    <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Created using
Cape Clear Studio SOA Editor - http://www.capeclear.com</wsdl:documentation>

	    <wsdl:types>

	        <xsd:schema

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

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

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

	            xmlns:xsd1="http://www.i3archive.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:enumeration value="SUMMARY-SURGERY"/>

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

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

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

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

	                </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>

	    </wsdl:types>

	    <wsdl:message name="RetrieveListInfoHttpGetOut">

	        <wsdl:part name="Body" type="xsd:string"/>

	    </wsdl:message>

	    <wsdl:message name="RetrieveDocumentHttpGetOut">

	        <wsdl:part name="Body" type="xsd:string"/>

	    </wsdl:message>

	    <wsdl:message name="RetrieveSummaryInfoHttpGetOut">

	        <wsdl:part name="Body" type="xsd:string"/>

	    </wsdl:message>

	    <wsdl:message name="RetrieveDocumentHttpGetIn">

	        <wsdl:part name="documentUID" type="xsd1:SearchString"/>

	        <wsdl:part name="contentType" type="xsd1:contentType"/>

	    </wsdl:message>

	    <wsdl:message name="RetrieveListInfoHttpGetIn">

	        <wsdl:part name="requestType" type="xsd1:listRequestType"/>

	        <wsdl:part name="patientID" type="xsd1:SearchString"/>

	    </wsdl:message>

	    <wsdl:message name="RetrieveSummaryInfoHttpGetIn">

	        <wsdl:part name="requestType" type="xsd1:summaryRequestType"/>

	        <wsdl:part name="patientID" type="xsd1:SearchString"/>

	        <wsdl:part name="lowerDateTime" type="xsd:dateTime"/>

	        <wsdl:part name="upperDateTime" type="xsd:dateTime"/>

	        <wsdl:part name="mostRecentResults" type="xsd1:ReturnedResultCount"/>

	    </wsdl:message>

	    <wsdl:portType name="IHERetrieveForDisplayHttpGet">

	        <wsdl:operation name="RetrieveSummaryInfo">

	            <wsdl:input message="tns:RetrieveSummaryInfoHttpGetIn"/>

	            <wsdl:output message="tns:RetrieveSummaryInfoHttpGetOut"/>

	        </wsdl:operation>

	        <wsdl:operation name="RetrieveListInfo">

	            <wsdl:input message="tns:RetrieveListInfoHttpGetIn"/>

	            <wsdl:output message="tns:RetrieveListInfoHttpGetOut"/>

	        </wsdl:operation>

	        <wsdl:operation name="RetrieveDocument">

	            <wsdl:input message="tns:RetrieveDocumentHttpGetIn"/>

	            <wsdl:output message="tns:RetrieveDocumentHttpGetOut"/>

	        </wsdl:operation>

	    </wsdl:portType>

	    <wsdl:binding

	        name="IHERetrieveForDisplayHttpGet"

	        type="tns:IHERetrieveForDisplayHttpGet">

	        <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>

	        <wsdl:operation name="RetrieveSummaryInfo">

	            <soap:operation

	                soapAction="capeconnect:RID:IHERetrieveForDisplayHttpGet#RetrieveSummaryInfo"/>

	            <wsdl:input>

	                <soap:body

	                    parts="requestType patientID lowerDateTime upperDateTime mostRecentResults"

	                    use="literal"/>

	            </wsdl:input>

	            <wsdl:output>

	                <soap:body parts="Body" use="literal"/>

	            </wsdl:output>

	        </wsdl:operation>

	        <wsdl:operation name="RetrieveListInfo">

	            <soap:operation

	                soapAction="capeconnect:RID:IHERetrieveForDisplayHttpGet#RetrieveListInfo"/>

	            <wsdl:input>

	                <soap:body use="literal"/>

	            </wsdl:input>

	            <wsdl:output>

	                <soap:body use="literal"/>

	            </wsdl:output>

	        </wsdl:operation>

	        <wsdl:operation name="RetrieveDocument">

	            <soap:operation

	                soapAction="capeconnect:RID:IHERetrieveForDisplayHttpGet#RetrieveDocument"/>

	            <wsdl:input>

	                <soap:body use="literal"/>

	            </wsdl:input>

	            <wsdl:output>

	                <soap:body use="literal"/>

	            </wsdl:output>

	        </wsdl:operation>

	    </wsdl:binding>

	    <wsdl:service name="RID">

	        <wsdl:port binding="tns:IHERetrieveForDisplayHttpGet" name="RIDPort">

	            <soap:address location="http://localhost:8000/axis/services/RID"/>

	        </wsdl:port>

	    </wsdl:service>

	</wsdl:definitions>

	
________________________________


	From: Grossberger, Guenter [mailto:Guenter.Grossberger@softwareag.com] 
	Sent: Wednesday, October 12, 2005 3:06 PM
	To: axis-user@ws.apache.org
	Subject: RE: Help -- WSDL2Java Question

	 

	Hi!

	 

	Maybe some of the types are not used in your WSDL. Please send the complete WSDL!

	 

	Best regards,
	
	--
	DI Günter Grossberger
	Consultant             Tel: +43 1 329 50 161
	Software AG Österreich Fax: +43 1 329 50 171
	Guglgasse 7-9          GSM: +43 676 833 29 261
	1030 Wien              http://www.softwareag.com/austria <http://www.softwareag.com/austria>


	 

		 

		
________________________________


		From: Zhixiang He [mailto:zhe@i3archive.com] 
		Sent: Wednesday, October 12, 2005 8:43 PM
		To: axis-user@ws.apache.org
		Subject: Help -- WSDL2Java Question

		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>


Mime
View raw message